function levelsToSelect($levelIds, $mode)
    {
        $levelsToSelect = array();
        foreach ($this->schema->getLevels() as $level) {
            if (self::INCLUDE_PARTIALS == $mode && !$levelIds[$level]) {
                continue;
            }
            if (self::INCLUDE_PARTIALS == $mode && !$levelIds[$level]) {
                continue;
            }
            array_push($levelsToSelect, $level);
        }
        return $levelsToSelect;
    }
function levelsToSelect($levelIds, $mode)
    {
        $levelsToSelect = array();
        foreach ($this->schema->getLevels() as $level) {
            if (self::INCLUDE_PARTIALS == $mode && !$levelIds[$level]) {
                continue;
            }
            if (self::INCLUDE_PARTIALS == $mode && !$levelIds[$level]) {
                continue;
            }
            array_push($levelsToSelect, $level);
        }
        return $levelsToSelect;
    }
function levelsToSelect ( $ levelIds , $ mode ) { $ levelsToSelect = array ( ) ; foreach ( $ this -> schema -> getLevels ( ) as $ level ) { if ( self :: INCLUDE_PARTIALS == $ mode && ! $ levelIds [ $ level ] ) { continue ; } if ( self :: INCLUDE_PARTIALS == $ mode && ! $ levelIds [ $ level ] ) { continue ; } array_push ( $ levelsToSelect , $ level ) ; } return $ levelsToSelect ; }
Figures out which levels need to be selected based on the level IDs being searched & what mode
Figures out which levels need to be selected based on the level IDs being searched & what mode