/**
  * Initialize, setting what is necessary for browsing pages.
  * Using the current user.
  *
  * @param	string		Additional clause for selecting pages.
  * @return	void
  */
 function init($clause = '')
 {
     // this will hide records from display - it has nothing todo with user rights!!
     $clauseExludePidList = '';
     if ($pidList = $GLOBALS['BE_USER']->getTSConfigVal('options.hideRecords.pages')) {
         if ($pidList = $GLOBALS['TYPO3_DB']->cleanIntList($pidList)) {
             $clauseExludePidList = ' 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 . $clauseExludePidList, '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 explicitely 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_swapmode', 't3ver_state', 't3ver_move_id'));
     if (t3lib_extMgm::isLoaded('cms')) {
         $this->fieldArray = array_merge($this->fieldArray, array('hidden', 'starttime', 'endtime', 'fe_group', 'module', 'extendToSubpages', 'is_siteroot', 'nav_hide'));
     }
 }
 /**
  * Init function
  * REMEMBER to feed a $clause which will filter out non-readable pages!
  *
  * @param	string		Part of where query which will filter out non-readable pages.
  * @return	void
  */
 function init($clause = '')
 {
     parent::init(' AND deleted=0 ' . $clause, 'sorting');
     if (t3lib_extMgm::isLoaded('cms')) {
         $this->fieldArray = array_merge($this->fieldArray, array('hidden', 'starttime', 'endtime', 'fe_group', 'module', 'extendToSubpages', 'nav_hide'));
     }
     $this->table = 'pages';
     $this->treeName = 'pages';
 }
 /**
  * Constructor function of the class
  *
  * @return	void
  */
 function t3lib_folderTree()
 {
     parent::init();
     $this->MOUNTS = $GLOBALS['FILEMOUNTS'];
     $this->treeName = 'folder';
     $this->titleAttrib = '';
     //don't apply any title
     $this->domIdPrefix = 'folder';
 }
 /**
  * Initialize the tree class. Needs to be overwritten
  * Will set ->fieldsArray, ->backPath and ->clause
  *
  * @param	string		record WHERE clause
  * @param	string		record ORDER BY field
  * @return	void
  */
 function setTable($table)
 {
     global $TCA, $LANG;
     $this->thisScript = t3lib_div::getIndpEnv('SCRIPT_NAME');
     $this->table = $table;
     $this->parentField = $GLOBALS['TCA'][$this->table]['ctrl']['treeParentField'];
     $this->title = $LANG->sL($GLOBALS['TCA'][$this->table]['ctrl']['title']);
     parent::init();
 }
 /**
  * Init function
  * REMEMBER to feed a $clause which will filter out non-readable pages!
  *
  * @param	string		Part of where query which will filter out non-readable pages.
  * @return	void
  */
 function init($clause = '')
 {
     global $LANG, $BACK_PATH;
     parent::init(' AND deleted=0 ' . $clause, 'tx_dam_cat.sorting,tx_dam_cat.title');
     $this->table = 'tx_dam_cat';
     $this->fieldArray = array_merge($this->fieldArray, array('hidden', 'starttime', 'endtime', 'fe_group'));
     $this->parentField = 'parent_id';
     $this->treeName = 'txdamCat';
     $this->domIdPrefix = $this->treeName;
     $this->title = $LANG->sL('LLL:EXT:dam/lib/locallang.xml:categories', 1);
     $this->iconName = 'cat.gif';
     $this->iconPath = $BACK_PATH . PATH_txdam_rel . 'i/';
     #$this->clause=' AND deleted=0 ORDER BY sorting,title';
     #$this->fieldArray = Array('uid','title');
     $this->defaultList = 'uid,pid,tstamp,sorting';
     $this->ext_IconMode = '1';
     // no context menu on icons
 }