/** * Init function * REMEMBER to feed a $clause which will filter out non-readable pages! * * @param string $clause Part of where query which will filter out non-readable pages. * @param string $orderByFields Record ORDER BY field * @return void * @todo Define visibility */ public function init($clause = '', $orderByFields = '') { parent::init(' AND deleted=0 ' . $clause, 'sorting'); $this->fieldArray = array_merge($this->fieldArray, array('hidden', 'starttime', 'endtime', 'fe_group', 'module', 'extendToSubpages', 'nav_hide')); $this->table = 'pages'; $this->treeName = 'pages'; }
/** * Initialize, setting what is necessary for browsing pages. * Using the current user. * * @param string $clause Additional clause for selecting pages. * @param string $orderByFields record ORDER BY field * @return void * @todo Define visibility */ public function init($clause = '', $orderByFields = '') { // This will hide records from display - it has nothing todo with user rights!! $clauseExcludePidList = ''; if ($pidList = $GLOBALS['BE_USER']->getTSConfigVal('options.hideRecords.pages')) { if ($pidList = $GLOBALS['TYPO3_DB']->cleanIntList($pidList)) { $clauseExcludePidList = ' AND pages.uid NOT IN (' . $pidList . ')'; } } // This is very important for making trees of pages: Filtering out deleted pages, pages with no access to and sorting them correctly: parent::init(' AND ' . $GLOBALS['BE_USER']->getPagePermsClause(1) . ' ' . $clause . $clauseExcludePidList, 'sorting'); $this->table = 'pages'; $this->setTreeName('browsePages'); $this->domIdPrefix = 'pages'; $this->iconName = ''; $this->title = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']; $this->MOUNTS = $GLOBALS['WEBMOUNTS']; if ($pidList) { // Remove mountpoint if explicitly set in options.hideRecords.pages (see above) $hideList = explode(',', $pidList); $this->MOUNTS = array_diff($this->MOUNTS, $hideList); } $this->fieldArray = array_merge($this->fieldArray, array('doktype', 'php_tree_stop', 't3ver_id', 't3ver_state', 't3ver_wsid', 't3ver_state', 't3ver_move_id')); if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('cms')) { $this->fieldArray = array_merge($this->fieldArray, array('hidden', 'starttime', 'endtime', 'fe_group', 'module', 'extendToSubpages', 'is_siteroot', 'nav_hide')); } }
/** * Constructor function of the class */ public function __construct() { parent::init(); $this->storages = $this->BE_USER->getFileStorages(); $this->treeName = 'folder'; // Don't apply any title $this->titleAttrib = ''; $this->domIdPrefix = 'folder'; }
/** * Init function * REMEMBER to feed a $clause which will filter out non-readable pages! * * @param string $clause Part of where query which will filter out non-readable pages. * @param string $orderByFields Record ORDER BY field * @return void * @todo Define visibility */ public function init($clause = '', $orderByFields = '') { parent::init(' AND deleted=0 ' . $clause, 'sorting'); if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('cms')) { $this->fieldArray = array_merge($this->fieldArray, array('hidden', 'starttime', 'endtime', 'fe_group', 'module', 'extendToSubpages', 'nav_hide')); } $this->table = 'pages'; $this->treeName = 'pages'; }
/** * Initialize, setting what is necessary for browsing pages. * Using the current user. * * @param string $clause Additional clause for selecting pages. * @param string $orderByFields record ORDER BY field * @return void */ public function init($clause = '', $orderByFields = '') { // This will hide records from display - it has nothing to do with user rights!! $clauseExcludePidList = ''; if ($pidList = $this->getBackendUser()->getTSConfigVal('options.hideRecords.pages')) { if ($pidList = $this->getDatabaseConnection()->cleanIntList($pidList)) { $clauseExcludePidList = ' AND pages.uid NOT IN (' . $pidList . ')'; } } // This is very important for making trees of pages: Filtering out deleted pages, pages with no access to and sorting them correctly: parent::init(' AND ' . $this->getBackendUser()->getPagePermsClause(1) . ' ' . $clause . $clauseExcludePidList, 'sorting'); $this->title = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']; $this->MOUNTS = $this->getBackendUser()->returnWebmounts(); if ($pidList) { // Remove mountpoint if explicitly set in options.hideRecords.pages (see above) $hideList = explode(',', $pidList); $this->MOUNTS = array_diff($this->MOUNTS, $hideList); } }
/** * Init function * REMEMBER to feed a $clause which will filter out non-readable pages! * * @param string $clause Part of where query which will filter out non-readable pages. * @param string $orderByFields Record ORDER BY field * @return void */ public function init($clause = '', $orderByFields = '') { parent::init(' AND deleted=0 ' . $clause, 'sorting'); }
/** * Constructor function of the class */ public function __construct() { parent::init(); $this->storages = $this->BE_USER->getFileStorages(); }