TYPO3  7.6
Public Member Functions | Public Attributes | List of all members
PageTreeView Class Reference
Inheritance diagram for PageTreeView:
BrowseTreeView AbstractTreeView

Public Member Functions

 __construct ()
 
 wrapTitle ($title, $row, $bank=0)
 
 printTree ($treeArr= '')
 
 PMicon ($row, $a, $c, $nextCount, $exp)
 
 PMiconATagWrap ($icon, $cmd, $isExpand=true)
 
 getBrowsableTree ()
 
- Public Member Functions inherited from BrowseTreeView
 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

 $ext_showPageId = false
 
 $ext_showNavTitle = false
 
 $ext_IconMode
 
 $ext_separateNotinmenuPages
 
 $ext_alphasortNotinmenuPages
 
 $ajaxStatus = false
 
- Public Attributes inherited from BrowseTreeView
 $fieldArray
 
 $treeName = 'browsePages'
 
 $table = 'pages'
 
 $domIdPrefix = 'pages'
 
- 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 = array('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 = array()
 
 $ids_hierarchy = array()
 
 $orig_ids_hierarchy = array()
 
 $buffer_idH = array()
 
 $specUIDmap = array()
 
 $data = false
 
 $dataLookup = false
 
 $tree = array()
 
 $stored = array()
 
 $bank = 0
 
 $recs = array()
 

Additional Inherited Members

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

Detailed Description

Browse pages in Web module

Definition at line 26 of file View/PageTreeView.php.

Constructor & Destructor Documentation

__construct ( )

Calls init functions

Definition at line 63 of file View/PageTreeView.php.

References BrowseTreeView\init().

Member Function Documentation

getBrowsableTree ( )

Will create and return the HTML code for a browsable tree Is based on the mounts found in the internal array ->MOUNTS (set in the constructor)

Returns
string HTML code for the browsable tree

Definition at line 290 of file View/PageTreeView.php.

References AbstractTreeView\$ids, AbstractTreeView\getIcon(), AbstractTreeView\getRecord(), AbstractTreeView\getRootIcon(), AbstractTreeView\getRootRecord(), AbstractTreeView\getThisScript(), AbstractTreeView\getTree(), AbstractTreeView\initializePositionSaving(), PageTreeView\printTree(), and AbstractTreeView\reset().

PMicon (   $row,
  $a,
  $c,
  $nextCount,
  $exp 
)

Generate the plus/minus icon for the browsable tree.

Parameters
array$rowRecord for the entry
int$aThe current entry number
int$cThe total number of entries. If equal to $a, a "bottom" element is returned.
int$nextCountThe number of sub-elements to the current element.
bool$expThe element was expanded to render subelements if this flag is set.
Returns
string Image tag with the plus/minus icon. private
See Also
::PMicon()

Definition at line 254 of file View/PageTreeView.php.

References PageTreeView\PMiconATagWrap().

PMiconATagWrap (   $icon,
  $cmd,
  $isExpand = true 
)

Wrap the plus/minus icon in a link

Parameters
string$iconHTML string to wrap, probably an image tag.
string$cmdCommand for 'PM' get var
bool$isExpandLink-wrapped input string
Returns
string private

Definition at line 273 of file View/PageTreeView.php.

References GeneralUtility\quoteJSvalue().

Referenced by PageTreeView\PMicon().

printTree (   $treeArr = '')

Compiles the HTML code for displaying the structure found inside the ->tree array

Parameters
array | string$treeArr"tree-array" - if blank string, the internal ->tree array is used.
Returns
string The HTML code for the tree

Definition at line 146 of file View/PageTreeView.php.

References AbstractTreeView\$tree, GeneralUtility\_GP(), elseif, AbstractTreeView\getId(), BrowseTreeView\getTitleStr(), if, and PageTreeView\wrapTitle().

Referenced by PageTreeView\getBrowsableTree().

wrapTitle (   $title,
  $row,
  $bank = 0 
)

Wrapping $title in a-tags.

Parameters
string$titleTitle string
string$rowItem record
int$bankBank pointer (which mount point number)
Returns
string private

Definition at line 122 of file View/PageTreeView.php.

References AbstractTreeView\$bank, $GLOBALS, AbstractTreeView\$title, GeneralUtility\callUserFunction(), AbstractTreeView\getId(), AbstractTreeView\getJumpToParam(), GeneralUtility\implodeAttributes(), GeneralUtility\quoteJSvalue(), and BackendUtility\wrapClickMenuOnIcon().

Referenced by PageTreeView\printTree().

Member Data Documentation

$ajaxStatus = false

Definition at line 58 of file View/PageTreeView.php.

$ext_alphasortNotinmenuPages

Definition at line 51 of file View/PageTreeView.php.

$ext_IconMode

Definition at line 41 of file View/PageTreeView.php.

$ext_separateNotinmenuPages

Definition at line 46 of file View/PageTreeView.php.

$ext_showNavTitle = false

Definition at line 36 of file View/PageTreeView.php.

$ext_showPageId = false

Definition at line 31 of file View/PageTreeView.php.