* * * [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") * */ /** * Extension class for the t3lib_filetree class, needed for drag and drop and ajax functionality * * @author Sebastian Kurfürst * @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 /** * Init parent class */ public function __construct() { parent::__construct(); } /** * Compatibility constructor. * * @deprecated since TYPO3 4.6 and will be removed in TYPO3 6.0. Use __construct() instead. */ public function filelistFolderTree() { t3lib_div::logDeprecatedFunction(); // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the // statically called non-static method inherits $this from the caller's scope. filelistFolderTree::__construct(); } /** * Wrapping icon in browse tree * * @param string Icon IMG code * @param array Data row for element. * @return string Page icon */ function wrapIcon($theFolderIcon, &$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 = ' 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 = '