Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

t3lib_browseTree Class Reference

Inherited by localPageTree, and localPageTree.

List of all members.

Public Member Functions

 init ($clause='')
 Initialize, setting what is necessary for browsing pages.
 getTitleAttrib ($row)
 Creates title attribute content for pages.
 wrapIcon ($icon, $row)
 Wrapping the image tag, $icon, for the row, $row (except for mount points).


Member Function Documentation

t3lib_browseTree::getTitleAttrib row  ) 
 

Creates title attribute content for pages.

Uses API function in t3lib_BEfunc which will retrieve lots of useful information for pages.

Parameters:
array The table row.
Returns:
string

Definition at line 107 of file class.t3lib_browsetree.php.

References t3lib_BEfunc::titleAttribForPages().

00107                                  {
00108       return t3lib_BEfunc::titleAttribForPages($row,'1=1 '.$this->clause,0);
00109    }

t3lib_browseTree::init clause = ''  ) 
 

Initialize, setting what is necessary for browsing pages.

Using the current user.

Parameters:
string Additional clause for selecting pages.
Returns:
void

Definition at line 83 of file class.t3lib_browsetree.php.

References t3lib_extMgm::isLoaded(), and table().

Referenced by localPageTree::localPageTree().

00083                               {
00084          // This is very important for making trees of pages: Filtering out deleted pages, pages with no access to and sorting them correctly:
00085       parent::init(' AND '.$GLOBALS['BE_USER']->getPagePermsClause(1).' '.$clause, 'sorting');
00086 
00087       $this->table = 'pages';
00088       $this->setTreeName('browsePages');
00089       $this->domIdPrefix = 'pages';
00090       $this->iconName = '';
00091       $this->title = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'];
00092       $this->MOUNTS = $GLOBALS['WEBMOUNTS'];
00093 
00094       $this->fieldArray = array_merge($this->fieldArray,array('doktype','php_tree_stop','t3ver_id'));
00095       if (t3lib_extMgm::isLoaded('cms'))  {
00096          $this->fieldArray = array_merge($this->fieldArray,array('hidden','starttime','endtime','fe_group','module','extendToSubpages'));
00097       }
00098    }

t3lib_browseTree::wrapIcon icon,
row
 

Wrapping the image tag, $icon, for the row, $row (except for mount points).

Parameters:
string The image tag for the icon
array The row for the current element
Returns:
string The processed icon input value. private

Reimplemented in localPageTree, localPageTree, and localPageTree.

Definition at line 119 of file class.t3lib_browsetree.php.

00119                                  {
00120          // Add title attribute to input icon tag
00121       $theIcon = $this->addTagAttributes($icon,($this->titleAttrib ? $this->titleAttrib.'="'.$this->getTitleAttrib($row).'"' : ''));
00122 
00123          // Wrap icon in click-menu link.
00124       if (!$this->ext_IconMode)  {
00125          $theIcon = $GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon($theIcon,$this->treeName,$this->getId($row),0);
00126       } elseif (!strcmp($this->ext_IconMode,'titlelink'))   {
00127          $aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'_'.$this->bank.'\');';
00128          $theIcon='<a href="#" onclick="'.htmlspecialchars($aOnClick).'">'.$theIcon.'</a>';
00129       }
00130       return $theIcon;
00131    }


The documentation for this class was generated from the following file:
Generated on Sun Oct 3 01:06:46 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913