All Classes Namespaces Files Functions Variables Pages
BrowseTreeView Class Reference
Inheritance diagram for BrowseTreeView:
AbstractTreeView ElementBrowserPageTreeView PageTreeView ExportPageTreeView ElementBrowserPageTreeView

Public Member Functions

 init ($clause= '', $orderByFields= '')
 getTitleAttrib ($row)
 wrapIcon ($icon, $row)
 getTitleStr ($row, $titleLen=30)
- Public Member Functions inherited from AbstractTreeView
 __construct ()
 init ($clause= '', $orderByFields= '')
 addField ($field, $noCheck=false)
 reset ()
 getBrowsableTree ()
 printTree ($treeArr= '')
 PMicon ($row, $a, $c, $nextCount, $isOpen)
 PM_ATagWrap ($icon, $cmd, $bMark= '', $isOpen=false)
 wrapTitle ($title, $row, $bank=0)
 wrapIcon ($icon, $row)
 addTagAttributes ($icon, $attr)
 wrapStop ($str, $row)
 expandNext ($id)
 initializePositionSaving ()
 savePosition ()
 getRootIcon ($rec)
 getIcon ($row)
 getTitleStr ($row, $titleLen=30)
 getTitleAttrib ($row)
 getId ($row)
 getJumpToParam ($row)
 getTree ($uid, $depth=999, $depthData= '')
 getCount ($uid)
 getRootRecord ()
 getRecord ($uid)
 getDataInit ($parentId)
 getDataCount (&$res)
 getDataNext (&$res)
 getDataFree (&$res)
 setDataFromArray (&$dataArr, $traverse=false, $pid=0)
 setDataFromTreeArray (&$treeArr, &$treeLookupArr)

Public Attributes

 $treeName = 'browsePages'
 $table = 'pages'
 $domIdPrefix = 'pages'
 $ext_showNavTitle = false
- Public Attributes inherited from AbstractTreeView
 $expandFirst = 0
 $expandAll = 0
 $thisScript = ''
 $titleAttrib = 'title'
 $ext_IconMode = false
 $addSelfId = 0
 $title = 'no title'
 $showDefaultTitleAttribute = false
 $BE_USER = ''
 $MOUNTS = null
 $table = ''
 $parentField = 'pid'
 $clause = ''
 $orderByFields = ''
 $fieldArray = ['uid', 'pid', 'title']
 $defaultList = 'uid,pid,tstamp,sorting,deleted,perms_userid,perms_groupid,perms_user,perms_group,perms_everybody,crdate,cruser_id'
 $treeName = ''
 $domIdPrefix = 'row'
 $makeHTML = 1
 $setRecs = 0
 $subLevelID = '_SUB_LEVEL'
 $ids = []
 $ids_hierarchy = []
 $orig_ids_hierarchy = []
 $buffer_idH = []
 $specUIDmap = []
 $data = false
 $dataLookup = false
 $tree = []
 $stored = []
 $bank = 0
 $recs = []

Additional Inherited Members

- Protected Member Functions inherited from AbstractTreeView
 determineScriptUrl ()
 getThisScript ()
 getLanguageService ()
 getBackendUser ()

Detailed Description

Generate a page-tree, browsable.

Definition at line 24 of file BrowseTreeView.php.

Member Function Documentation

getTitleAttrib (   $row)

Creates title attribute content for pages. Uses API function in which will retrieve lots of useful information for pages.

array$rowThe table row.

Definition at line 109 of file BrowseTreeView.php.

References BackendUtility\titleAttribForPages().

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.

array$rowThe input row array (where the key "title" is used for the title)
int$titleLenTitle length (30)
string The title.

Definition at line 144 of file BrowseTreeView.php.

References AbstractTreeView\$title, AbstractTreeView\getBackendUser(), and GeneralUtility\makeInstance().

Referenced by ElementBrowserPageTreeView\printTree(), and PageTreeView\printTree().

init (   $clause = '',
  $orderByFields = '' 

Initialize, setting what is necessary for browsing pages. Using the current user.

string$clauseAdditional clause for selecting pages.
string$orderByFieldsrecord ORDER BY field

Definition at line 82 of file BrowseTreeView.php.

References AbstractTreeView\$clause, $GLOBALS, AbstractTreeView\getBackendUser(), and GeneralUtility\intExplode().

Referenced by ExportPageTreeView\__construct(), PageTreeView\__construct(), ElementBrowserPageTreeView\__construct(), and ExportPageTreeView\ext_tree().

wrapIcon (   $icon,

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

string$iconThe image tag for the icon
array$rowThe row for the current element
string The processed icon input value. private

Definition at line 122 of file BrowseTreeView.php.

References AbstractTreeView\getId(), AbstractTreeView\getJumpToParam(), GeneralUtility\quoteJSvalue(), and BackendUtility\wrapClickMenuOnIcon().

Member Data Documentation

$domIdPrefix = 'pages'

Definition at line 67 of file BrowseTreeView.php.

$ext_showNavTitle = false

Definition at line 72 of file BrowseTreeView.php.

Initial value:
= [

Definition at line 29 of file BrowseTreeView.php.

$table = 'pages'

Definition at line 61 of file BrowseTreeView.php.

$treeName = 'browsePages'

Definition at line 55 of file BrowseTreeView.php.