* * * [CLASS/FUNCTION INDEX of SCRIPT] * * * * 71: class fileListTree extends t3lib_browseTree * 81: function webPageTree() * 92: function wrapIcon($icon,&$row) * 130: function wrapStop($str,$row) * 146: function wrapTitle($title,$row,$bank=0) * 165: function printTree($treeArr = '') * 271: function PMicon($row,$a,$c,$nextCount,$exp) * 292: function PMiconATagWrap($icon, $cmd, $isExpand = true) * 309: function getBrowsableTree() * 377: function getTree($uid, $depth=999, $depthData='',$blankLineCode='',$subCSSclass='') * * * TOTAL FUNCTIONS: 9 * (This index is automatically created/updated by the extension "extdeveval") * */ require_once (PATH_t3lib.'class.t3lib_foldertree.php'); /** * Extension class for the t3lib_filetree class, needed for drag and drop and ajax functionality * * @author Sebastian Kurfuerst * @author Benjamin Mack * @package TYPO3 * @subpackage core * @see class t3lib_browseTree */ class filelistFolderTree extends t3lib_folderTree { var $ext_IconMode; var $ajaxStatus = false; // Indicates, whether the ajax call was successful, i.e. the requested page has been found /** * Calls init functions * * @return void */ function filelistFolderTree() { parent::t3lib_folderTree(); } /** * Wrapping icon in browse tree * * @param string Icon IMG code * @param array Data row for element. * @return string Page icon */ function wrapIcon($icon,&$row) { // Add title attribute to input icon tag $theFolderIcon = $this->addTagAttributes($icon,($this->titleAttrib ? $this->titleAttrib.'="'.$this->getTitleAttrib($row).'"' : '')); // Wrap icon in click-menu link. if (!$this->ext_IconMode) { $theFolderIcon = $GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon($theFolderIcon,$row['path'],'',0); } elseif (!strcmp($this->ext_IconMode,'titlelink')) { $aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'\','.$this->bank.');'; $theFolderIcon=''.$theFolderIcon.''; } // Wrap icon in a drag/drop span. return ''.$theFolderIcon.''; } /** * Wrapping $title in a-tags. * * @param string Title string * @param string Item record * @param integer Bank pointer (which mount point number) * @return string * @access private */ function wrapTitle($title,$row,$bank=0) { $aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'\','.$bank.');'; $CSM = ''; if ($GLOBALS['TYPO3_CONF_VARS']['BE']['useOnContextMenuHandler']) { $CSM = ' oncontextmenu="'.htmlspecialchars($GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon('',$row['path'],'',0,'&bank='.$this->bank,'',TRUE)).'"'; } $theFolderTitle=''.$title.''; // Wrap title in a drag/drop span. return ''.$theFolderTitle.''; } /** * Compiles the HTML code for displaying the structure found inside the ->tree array * * @param array "tree-array" - if blank string, the internal ->tree array is used. * @return string The HTML code for the tree */ function printTree($treeArr='') { $titleLen = intval($this->BE_USER->uc['titleLen']); if (!is_array($treeArr)) $treeArr = $this->tree; $out = '