concrete/src/Page/Page.php
public function getCollectionChildren()
    {
        $children = [];
        $db = Database::connection();
        $q = 'select cID from Pages where cParentID = ? and cIsTemplate = 0 order by cDisplayOrder asc';
        $r = $db->executeQuery($q, [$this->getCollectionID()]);
        if ($r) {
            while ($row = $r->fetchRow()) {
                if ($row['cID'] > 0) {
                    $c = self::getByID($row['cID']);
                    $children[] = $c;
                }
            }
        }

        return $children;
    }
public function getCollectionChildren()
    {
        $children = [];
        $db = Database::connection();
        $q = 'select cID from Pages where cParentID = ? and cIsTemplate = 0 order by cDisplayOrder asc';
        $r = $db->executeQuery($q, [$this->getCollectionID()]);
        if ($r) {
            while ($row = $r->fetchRow()) {
                if ($row['cID'] > 0) {
                    $c = self::getByID($row['cID']);
                    $children[] = $c;
                }
            }
        }

        return $children;
    }
public function getCollectionChildren ( ) { $ children = [ ] ; $ db = Database :: connection ( ) ; $ q = 'select cID from Pages where cParentID = ? and cIsTemplate = 0 order by cDisplayOrder asc' ; $ r = $ db -> executeQuery ( $ q , [ $ this -> getCollectionID ( ) ] ) ; if ( $ r ) { while ( $ row = $ r -> fetchRow ( ) ) { if ( $ row [ 'cID' ] > 0 ) { $ c = self :: getByID ( $ row [ 'cID' ] ) ; $ children [ ] = $ c ; } } } return $ children ; }
Get the immediate children of the this page.

@return \Concrete\Core\Page\Page[]
Get the immediate children of the this page .