concrete/src/Page/Statistics.php
public static function incrementParents($cID)
    {
        $db = Loader::db();
        $cParentID = $db->GetOne("select cParentID from Pages where cID = ?", array($cID));

        $q = "update Pages set cChildren = cChildren+1 where cID = ?";

        $cpc = Page::getByID($cParentID);
        $cpc->refreshCache();

        $r = $db->query($q, array($cParentID));
    }
public static function incrementParents($cID)
    {
        $db = Loader::db();
        $cParentID = $db->GetOne("select cParentID from Pages where cID = ?", array($cID));

        $q = "update Pages set cChildren = cChildren+1 where cID = ?";

        $cpc = Page::getByID($cParentID);
        $cpc->refreshCache();

        $r = $db->query($q, array($cParentID));
    }
public static function incrementParents ( $ cID ) { $ db = Loader :: db ( ) ; $ cParentID = $ db -> GetOne ( "select cParentID from Pages where cID = ?" , array ( $ cID ) ) ; $ q = "update Pages set cChildren = cChildren+1 where cID = ?" ; $ cpc = Page :: getByID ( $ cParentID ) ; $ cpc -> refreshCache ( ) ; $ r = $ db -> query ( $ q , array ( $ cParentID ) ) ; }
For a particular page ID, grabs all the pages of this page, and increments the cTotalChildren number for them.
For a particular page ID grabs all the pages of this page and increments the cTotalChildren number for them .