[CMSModule] element index

All elements
c g h i l s
c
top
CleanArray
GBFilePicker::CleanArray() in GBFilePicker.module.php
Removes empty elements from an array.
(can be useful when using function explode to create the array from a csv)
CleanPath
GBFilePicker::CleanPath() in GBFilePicker.module.php
Replaces all multiple DIRECTORY_SEPARATOR, dots and (multiple) slashes with one single DIRECTORY_SEPARATOR to make a clean secure path parameter
CleanURL
GBFilePicker::CleanURL() in GBFilePicker.module.php
Replaces all multiple slashes, dots and (multiple) backslashes with one single slash to make a clean secure url parameter
ContainsIllegalChars
GBFilePicker::ContainsIllegalChars() in GBFilePicker.module.php
Checks if a filename contains illegal chars
Taken from TinyMCE Module.
CreateFileDropdown
GBFilePicker::CreateFileDropdown() in GBFilePicker.module.php
Create a dropdown form element containing a list of files that match certain conditions
CreateFilePickerInput
GBFilePicker::CreateFilePickerInput() in GBFilePicker.module.php
Creates the filepicker input.
CreateThumbnail
GBFilePicker::CreateThumbnail() in GBFilePicker.module.php
Creates the thumbnail of a given image file.
g
top
GBFilePicker
GBFilePicker in GBFilePicker.module.php
Main class of the GBFilePicker Module
GBFilePicker.module.php
GBFilePicker.module.php in GBFilePicker.module.php
GetActionIcon
GBFilePicker::GetActionIcon() in GBFilePicker.module.php
Gets the icon for the file operation.
If FileManager is installed it uses FileManager icons.
Otherwise it uses own icons
GetFileIcon
GBFilePicker::GetFileIcon() in GBFilePicker.module.php
Gets the icon for a file.
If FileManager is installed it uses FileManager icons.
Otherwise it uses own icons.
GetFiles
GBFilePicker::GetFiles() in GBFilePicker.module.php
Return an array containing a list of files in a directory.
Performs a non recursive search.
GetFileType
GBFilePicker::GetFileType() in GBFilePicker.module.php
Gets the file type of a file.
GetInputFiles
GBFilePicker::GetInputFiles() in GBFilePicker.module.php
Return an array containing a list of files in a directory related to a certain input.
Performs a non recursive search.
GetThemesList
GBFilePicker::GetThemesList() in GBFilePicker.module.php
Returns a list of available themes
GetThumbnail
GBFilePicker::GetThumbnail() in GBFilePicker.module.php
Returns the thumbnail of a given image file.
GetThumbnailSize
GBFilePicker::GetThumbnailSize() in GBFilePicker.module.php
returns the calculated size of the thumbnail
h
top
HandleFileResizing
GBFilePicker::HandleFileResizing() in GBFilePicker.module.php
resizes images
Adapted from TinyMCE filepicker.
i
top
IsDirEmpty
GBFilePicker::IsDirEmpty() in GBFilePicker.module.php
Checks if a directory is empty
Taken from TinyMCE Module (extracted from filepicker).
IsFalse
GBFilePicker::IsFalse() in GBFilePicker.module.php
Checks if a value is really meant to be "false".
Can be usefull when checking smarty params for the value false
IsTrue
GBFilePicker::IsTrue() in GBFilePicker.module.php
Checks if a value is really meant to be "true".
Can be usefull when checking smarty params for the value true
IsVarEmpty
GBFilePicker::IsVarEmpty() in GBFilePicker.module.php
Checks if a var is empty.
If $var is an array it recursivley checks all elements.
l
top
Loaded
GBFilePicker::Loaded() in GBFilePicker.module.php
Indicates if GBFilePicker output is already done
can be useful to avoid ouput of javascript and css twice
s
top
SetParameters
GBFilePicker::SetParameters() in GBFilePicker.module.php
SortFiles
GBFilePicker::SortFiles() in GBFilePicker.module.php
Sorts the files by filename; shows directories first
this function is meant to be called from the php usort() function: usort($array,array($this,'SortFiles')
Taken from TinyMCE filepicker.
c g h i l s