concrete/src/Legacy/PageList.php
public function filterByParentID($cParentID)
    {
        $db = Loader::db();
        if (is_array($cParentID)) {
            $cth = '(';
            for ($i = 0; $i < count($cParentID); ++$i) {
                if ($i > 0) {
                    $cth .= ',';
                }
                $cth .= $db->quote($cParentID[$i]);
            }
            $cth .= ')';
            $this->filter(false, "(p1.cParentID in {$cth})");
        } else {
            $this->filterByCParentID = $cParentID;
            $this->filter('p1.cParentID', $cParentID);
        }
    }
public function filterByParentID($cParentID)
    {
        $db = Loader::db();
        if (is_array($cParentID)) {
            $cth = '(';
            for ($i = 0; $i < count($cParentID); ++$i) {
                if ($i > 0) {
                    $cth .= ',';
                }
                $cth .= $db->quote($cParentID[$i]);
            }
            $cth .= ')';
            $this->filter(false, "(p1.cParentID in {$cth})");
        } else {
            $this->filterByCParentID = $cParentID;
            $this->filter('p1.cParentID', $cParentID);
        }
    }
public function filterByParentID ( $ cParentID ) { $ db = Loader :: db ( ) ; if ( is_array ( $ cParentID ) ) { $ cth = '(' ; for ( $ i = 0 ; $ i < count ( $ cParentID ) ; ++ $ i ) { if ( $ i > 0 ) { $ cth .= ',' ; } $ cth .= $ db -> quote ( $ cParentID [ $ i ] ) ; } $ cth .= ')' ; $ this -> filter ( false , "(p1.cParentID in {$cth})" ) ; } else { $ this -> filterByCParentID = $ cParentID ; $ this -> filter ( 'p1.cParentID' , $ cParentID ) ; } }
Sets the parent ID that we will grab pages from.

@param mixed $cParentID
Sets the parent ID that we will grab pages from .