‪TYPO3CMS  11.5
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)
 
string PMicon ($row, $a, $c, $nextCount, $isExpand)
 
string getTitleStr ($row, $titleLen=30)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Tree\View\AbstractTreeView
 __construct ()
 
 addField ($field, $noCheck=false)
 
 reset ()
 
string PM_ATagWrap ($bMark='', $isOpen=false)
 
string addTagAttributes ($icon, $attr)
 
string getRootIcon ($rec)
 
string getIcon ($row)
 
string getTitleAttrib ($row)
 
int getTree ($uid, $depth=999, $depthData='')
 
int getCount ($uid)
 
array getRootRecord ()
 
mixed getDataInit ($parentId)
 
int getDataCount (&$res)
 
array bool getDataNext (&$res)
 
 getDataFree (&$res)
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Backend\Tree\View\AbstractTreeView
string $thisScript = ''
 
string $title = 'no title'
 
TYPO3 CMS Core Authentication BackendUserAuthentication string $BE_USER = ''
 
string $table = 'pages'
 
string $parentField = 'pid'
 
string $clause = ''
 
string $orderByFields = ''
 
array $fieldArray
 
string $defaultList = 'uid,pid,tstamp,sorting,deleted,perms_userid,perms_groupid,perms_user,perms_group,perms_everybody,crdate,cruser_id'
 
int $makeHTML = 1
 
array $ids = array( )
 
array $ids_hierarchy = array( )
 
array $orig_ids_hierarchy = array( )
 
array $buffer_idH = array( )
 
array $tree = array( )
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Tree\View\AbstractTreeView
 determineScriptUrl ()
 
string getThisScript ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Detailed Description

Generate a page-tree, non-browsable.

Definition at line 23 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 43 of file PageTreeView.php.

◆ getTitleStr()

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

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 74 of file PageTreeView.php.

References TYPO3\CMS\Backend\Tree\View\AbstractTreeView\$title, 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 32 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 
)

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 61 of file PageTreeView.php.