Tariqa  3.0
 All Data Structures Namespaces Files Functions Variables Enumerations
TreeFolder Class Reference
Inheritance diagram for TreeFolder:
BriefcaseFolder CountryTree FilesTree OxanFolder PreferencesCountryTree ThemesTree TimezonesTree

Public Member Functions

 __construct ($template_file, $select_nodes=true, $null_id=null)
 getSubFolders ($folder_id)
 getFiles ($folder_id)
 folderHTML ($name, $folder_id, $folder_type=null)

Constructor & Destructor Documentation

__construct ( template_file,
select_nodes = true,
null_id = null 
)

Constructs the object

Parameters:
string$template_fileThe template file to load
boolean$select_nodesIf true, select the nodes in the tree when clicking on them [OPTIONAL]
string$null_idThe tree id in case that the folder is null (we are searching for the folders without parent [OPTIONAL]) public
Returns:
void

Reimplemented in CountryTree.


Member Function Documentation

folderHTML ( name,
folder_id,
folder_type = null 
)

Generates the HTML tree for a given folder

Parameters:
string$nameThe name of the folder
int$folder_idThe folder identifier
string$folder_typeThe folder type [OPTIONAL] public
Returns:
string
getFiles ( folder_id) [abstract]

Returns the files of the current folder as an associative array

Parameters:
int$folder_idThe folder identifier public
Returns:
array|boolean

Reimplemented in BriefcaseFolder, CountryTree, FilesTree, TimezonesTree, OxanFolder, PreferencesCountryTree, and ThemesTree.

getSubFolders ( folder_id) [abstract]

Returns the subfolders of the current folder as an associative array with all the subfolders

Parameters:
int$folder_idThe folder identifier public
Returns:
array|boolean

Reimplemented in BriefcaseFolder, CountryTree, TimezonesTree, OxanFolder, PreferencesCountryTree, FilesTree, and ThemesTree.


The documentation for this class was generated from the following file: