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

t3lib_pageTree Class Reference

Inherited by localPageTree, and localPageTree.

List of all members.

Public Member Functions

 init ($clause='')
 Init function REMEMBER to feed a $clause which will filter out non-readable pages!
 expandNext ($id)
 Returns true/false if the next level for $id should be expanded - and all levels should, so we always return 1.
 PMicon ($row, $a, $c, $nextCount, $exp)
 Generate the plus/minus icon for the browsable tree.
 initializePositionSaving ()
 Get stored tree structure AND updating it if needed according to incoming PM GET var.

Public Attributes

 $fieldArray = Array('uid','title','doktype','php_tree_stop')
 $defaultList = 'uidpidtstampsortingdeletedperms_useridperms_groupidperms_userperms_groupperms_everybodycrdatecruser_id'
 $setRecs = 0


Member Function Documentation

t3lib_pageTree::expandNext id  ) 
 

Returns true/false if the next level for $id should be expanded - and all levels should, so we always return 1.

Parameters:
integer ID (uid) to test for (see extending classes where this is checked againts session data)
Returns:
boolean

Reimplemented in localPageTree.

Definition at line 106 of file class.t3lib_pagetree.php.

00106                               {
00107       return 1;
00108    }

t3lib_pageTree::init clause = ''  ) 
 

Init function REMEMBER to feed a $clause which will filter out non-readable pages!

Parameters:
string Part of where query which will filter out non-readable pages.
Returns:
void

Definition at line 90 of file class.t3lib_pagetree.php.

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

00090                               {
00091       parent::init(' AND NOT deleted '.$clause, 'sorting');
00092 
00093       if (t3lib_extMgm::isLoaded('cms'))  {
00094          $this->fieldArray=array_merge($this->fieldArray,array('hidden','starttime','endtime','fe_group','module','extendToSubpages'));
00095       }
00096       $this->table='pages';
00097       $this->treeName='pages';
00098    }

t3lib_pageTree::initializePositionSaving  ) 
 

Get stored tree structure AND updating it if needed according to incoming PM GET var.

  • Here we just set it to nothing since we want to just render the tree, nothing more.

Returns:
void private

Definition at line 138 of file class.t3lib_pagetree.php.

00138                                        {
00139       $this->stored=array();
00140    }

t3lib_pageTree::PMicon row,
a,
c,
nextCount,
exp
 

Generate the plus/minus icon for the browsable tree.

In this case, there is no plus-minus icon displayed.

Parameters:
array record for the entry
integer The current entry number
integer The total number of entries. If equal to $a, a 'bottom' element is returned.
integer The number of sub-elements to the current element.
boolean The element was expanded to render subelements if this flag is set.
Returns:
string Image tag with the plus/minus icon. private
See also:
t3lib_treeView::PMicon()

Definition at line 123 of file class.t3lib_pagetree.php.

References $a.

00123                                                 {
00124       $PM = 'join';
00125       $BTM = ($a==$c)?'bottom':'';
00126       $icon = '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/'.$PM.$BTM.'.gif','width="18" height="16"').' alt="" />';
00127       return $icon;
00128    }


Member Data Documentation

t3lib_pageTree::$defaultList = 'uidpidtstampsortingdeletedperms_useridperms_groupidperms_userperms_groupperms_everybodycrdatecruser_id'
 

Definition at line 80 of file class.t3lib_pagetree.php.

t3lib_pageTree::$fieldArray = Array('uid','title','doktype','php_tree_stop')
 

Definition at line 79 of file class.t3lib_pagetree.php.

t3lib_pageTree::$setRecs = 0
 

Definition at line 81 of file class.t3lib_pagetree.php.


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