Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

localFolderTree::TBE_FolderTree Class Reference

Inherits localFolderTree.

List of all members.

Public Member Functions

 ext_isLinkable ($v)
 Returns true if the input "record" contains a folder which can be linked.
 wrapTitle ($title, $v)
 Wrapping the title in a link, if applicable.

Public Attributes

 $ext_noTempRecyclerDirs = 0


Member Function Documentation

localFolderTree::TBE_FolderTree::ext_isLinkable v  ) 
 

Returns true if the input "record" contains a folder which can be linked.

Parameters:
array Array with information about the folder element. Contains keys like title, uid, path, _title
Returns:
boolean True is returned if the path is NOT a recycler or temp folder AND if ->ext_noTempRecyclerDirs is not set.

Reimplemented from localFolderTree.

Definition at line 602 of file browse_links.php.

00602                                  {
00603       if ($this->ext_noTempRecyclerDirs && (substr($v['path'],-7)=='_temp_/' || substr($v['path'],-11)=='_recycler_/')) {
00604          return 0;
00605       } return 1;
00606    }

localFolderTree::TBE_FolderTree::wrapTitle title,
v
 

Wrapping the title in a link, if applicable.

Parameters:
string Title, ready for output.
array The 'record'
Returns:
string Wrapping title string.

Reimplemented from localFolderTree.

Definition at line 615 of file browse_links.php.

00615                                  {
00616       if ($this->ext_isLinkable($v))   {
00617          $aOnClick = 'return jumpToUrl(\'browse_links.php?act='.$GLOBALS['SOBE']->act.'&mode='.$GLOBALS['SOBE']->mode.'&expandFolder='.rawurlencode($v['path']).'\');';
00618          return '<a href="#" onclick="'.htmlspecialchars($aOnClick).'">'.$title.'</a>';
00619       } else {
00620          return '<span class="typo3-dimmed">'.$title.'</span>';
00621       }
00622    }


Member Data Documentation

localFolderTree::TBE_FolderTree::$ext_noTempRecyclerDirs = 0
 

Definition at line 594 of file browse_links.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 3 01:06:26 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913