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

Public Member Functions

 __construct ()
 
 setLinkParameterProvider (LinkParameterProviderInterface $linkParameterProvider)
 
 wrapTitle ($title, $v, $ext_pArrPages=false)
 
 printTree ($treeArr= '')
 
 ext_isLinkable ($doktype, $uid)
 
 PM_ATagWrap ($icon, $cmd, $bMark= '', $isOpen=false)
 
 wrapIcon ($icon, $row)
 
- 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_pArrPages = true
 
- Public Attributes inherited from BrowseTreeView
 $fieldArray
 
 $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 = []
 

Protected Attributes

 $linkParameterProvider
 

Additional Inherited Members

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

Detailed Description

Class which generates the selectable page tree

Browsable tree, used in PagePositionMaps (move elements), the Link Wizard and the Database Browser (for which it will be extended)

Definition at line 27 of file backend/Classes/Tree/View/ElementBrowserPageTreeView.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

ext_isLinkable (   $doktype,
  $uid 
)

Returns TRUE if a doktype can be linked.

Parameters
int$doktypeDoktype value to test
int$uiduid to test.
Returns
bool

Definition at line 162 of file backend/Classes/Tree/View/ElementBrowserPageTreeView.php.

References PageRepository\DOKTYPE_SPACER.

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

PM_ATagWrap (   $icon,
  $cmd,
  $bMark = '',
  $isOpen = false 
)

Wrap the plus/minus icon in a link

Parameters
string$iconHTML string to wrap, probably an image tag.
string$cmdCommand for 'PM' get var
string$bMarkIf set, the link will have an anchor point (=$bMark) and a name attribute (=$bMark)
bool$isOpen
Returns
string Link-wrapped input string

Definition at line 176 of file backend/Classes/Tree/View/ElementBrowserPageTreeView.php.

References AbstractTreeView\getThisScript(), GeneralUtility\implodeArrayForUrl(), and GeneralUtility\quoteJSvalue().

setLinkParameterProvider ( LinkParameterProviderInterface  $linkParameterProvider)
Parameters
LinkParameterProviderInterface$linkParameterProvider
Returns
void

Definition at line 62 of file backend/Classes/Tree/View/ElementBrowserPageTreeView.php.

References ElementBrowserPageTreeView\$linkParameterProvider, and LinkParameterProviderInterface\getScriptUrl().

wrapIcon (   $icon,
  $row 
)

Wrapping the image tag, $icon, for the row, $row

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

Definition at line 194 of file backend/Classes/Tree/View/ElementBrowserPageTreeView.php.

wrapTitle (   $title,
  $v,
  $ext_pArrPages = false 
)

Wrapping the title in a link, if applicable.

Parameters
string$titleTitle, (must be ready for output, that means it must be htmlspecialchars()'ed).
array$vThe record
bool$ext_pArrPages(ignored)
Returns
string Wrapping title string.

Definition at line 76 of file backend/Classes/Tree/View/ElementBrowserPageTreeView.php.

References AbstractTreeView\$title, ElementBrowserPageTreeView\ext_isLinkable(), GeneralUtility\makeInstance(), and LinkService\TYPE_PAGE.

Referenced by ElementBrowserPageTreeView\printTree().

Member Data Documentation

$ext_showPageId = false
$linkParameterProvider
protected