‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Tree\View\PageTreeView Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tree\View\PageTreeView:
TYPO3\CMS\Backend\Tree\View\AbstractTreeView TYPO3\CMS\Backend\Tree\View\NewRecordPageTreeView

Public Member Functions

 init ($clause='', $orderByFields='')
 
bool expandNext ($id)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Tree\View\AbstractTreeView
 __construct ()
 
 addField ($field, $noCheck=false)
 
 reset ()
 
int getTree ($uid, $depth=999, $depthData='')
 

Protected Member Functions

string PMicon ($row, $a, $c, $nextCount, $isExpand)
 
string getTitleStr ($row, $titleLen=30)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Tree\View\AbstractTreeView
string PM_ATagWrap ($bMark='', $isOpen=false)
 
string getIcon (array $row)
 
string getTitleAttrib ($row)
 
int getCount ($uid)
 
mixed getDataInit ($parentId)
 
array bool getDataNext (&$res)
 
 getLanguageService ()
 
 getBackendUser ()
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Backend\Tree\View\AbstractTreeView
string $orderByFields = ''
 
int $makeHTML = 1
 
array $ids = array( )
 
array $ids_hierarchy = array( )
 
array $orig_ids_hierarchy = array( )
 
array $buffer_idH = array( )
 
array $tree = array( )
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Tree\View\AbstractTreeView
string $table = 'pages'
 
string $parentField = 'pid'
 
string $clause = ''
 
array $fieldArray
 
string $defaultList = 'uid,pid,tstamp,sorting,deleted,perms_userid,perms_groupid,perms_user,perms_group,perms_everybody,crdate'
 

Detailed Description

Generate a page-tree, non-browsable.

This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.

Definition at line 27 of file PageTreeView.php.

Member Function Documentation

◆ expandNext()

bool TYPO3\CMS\Backend\Tree\View\PageTreeView::expandNext (   $id)

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

Parameters
int$id‪ID (uid) to test for (see extending classes where this is checked against session data)
Returns
‪bool

Reimplemented from TYPO3\CMS\Backend\Tree\View\AbstractTreeView.

Reimplemented in TYPO3\CMS\Backend\Tree\View\NewRecordPageTreeView.

Definition at line 47 of file PageTreeView.php.

◆ getTitleStr()

string TYPO3\CMS\Backend\Tree\View\PageTreeView::getTitleStr (   $row,
  $titleLen = 30 
)
protected

Returns the title for the input record. If blank, a "no title" label (localized) will be returned. Do NOT htmlspecialchar the string from this function - has already been done.

Parameters
array$row‪The input row array (where the key "title" is used for the title)
int$titleLen‪Title length (30)
Returns
‪string The title.

Reimplemented from TYPO3\CMS\Backend\Tree\View\AbstractTreeView.

Definition at line 77 of file PageTreeView.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs(), and TYPO3\CMS\Backend\Tree\View\AbstractTreeView\getLanguageService().

◆ init()

TYPO3\CMS\Backend\Tree\View\PageTreeView::init (   $clause = '',
  $orderByFields = '' 
)

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

Parameters
string$clause‪Part of where query which will filter out non-readable pages.
string$orderByFields‪Record ORDER BY field

Reimplemented from TYPO3\CMS\Backend\Tree\View\AbstractTreeView.

Definition at line 36 of file PageTreeView.php.

References TYPO3\CMS\Backend\Tree\View\AbstractTreeView\$clause, and TYPO3\CMS\Backend\Tree\View\AbstractTreeView\$orderByFields.

◆ PMicon()

string TYPO3\CMS\Backend\Tree\View\PageTreeView::PMicon (   $row,
  $a,
  $c,
  $nextCount,
  $isExpand 
)
protected

Generate the plus/minus icon for the browsable tree. In this case, there is no plus-minus icon displayed.

Parameters
array$row‪Record for the entry
int$a‪The current entry number
int$c‪The total number of entries. If equal to $a, a 'bottom' element is returned.
int$nextCount‪The number of sub-elements to the current element.
bool$isExpand‪The element was expanded to render subelements if this flag is set.
Returns
‪string Image tag with the plus/minus icon.
See also
AbstractTreeView::PMicon()

Reimplemented from TYPO3\CMS\Backend\Tree\View\AbstractTreeView.

Definition at line 64 of file PageTreeView.php.