Public Member Functions | |
getHtml ($gotuid, $gotmoduleComponentId, $gotaction) | |
actionView () | |
actionEdit () | |
processView ($line) | |
processSave ($content) | |
createModule (&$moduleComponentId) | |
deleteModule ($moduleComponentId) | |
copyModule ($moduleComponentId) | |
Static Public Member Functions | |
static | getFileAccessPermission ($pageId, $moduleComponentId, $userId, $fileName) |
static | getUploadableFileProperties (&$fileTypesArray, &$maxFileSizeInBytes) |
Definition at line 36 of file safedit.lib.php.
actionEdit | ( | ) |
function actionEdit: Edit interface for all safedit module instances will be called from $this->getHtml function
Definition at line 110 of file safedit.lib.php.
actionView | ( | ) |
function actionView: View interface for all safedit module instances will be called from $this->getHtml function
Definition at line 60 of file safedit.lib.php.
copyModule | ( | $ | moduleComponentId | ) |
function copyModule: duplicates all sections with a new page_modulecomponentid
Definition at line 361 of file safedit.lib.php.
createModule | ( | &$ | moduleComponentId | ) |
function createModule: safedit module pages needs no initialization. will be called when safedit module instance is created.
Definition at line 340 of file safedit.lib.php.
deleteModule | ( | $ | moduleComponentId | ) |
function deleteModule: delete all sections with page_modulecomponentid = to the passed argument will be called when safedit module instance is getting deleted.
Definition at line 352 of file safedit.lib.php.
static getFileAccessPermission | ( | $ | pageId, | |
$ | moduleComponentId, | |||
$ | userId, | |||
$ | fileName | |||
) | [static] |
interface to upload.lib.php
getFileAccessPermission, getUploadableFileProperties
Implements fileuploadable.
Definition at line 326 of file safedit.lib.php.
getHtml | ( | $ | gotuid, | |
$ | gotmoduleComponentId, | |||
$ | gotaction | |||
) |
function getHtml: Gateway through which CMS interacts with module This function will be called from getContent function of cms/content.lib.php
Definition at line 46 of file safedit.lib.php.
static getUploadableFileProperties | ( | &$ | fileTypesArray, | |
&$ | maxFileSizeInBytes | |||
) | [static] |
Definition at line 330 of file safedit.lib.php.
processSave | ( | $ | content | ) |
function processSave: in safedit module {,},| are reserved to specify links so remove reserved chars if inappropriately placed Eg: something } something | link } something
a invalid link description as above has to be avoided actually it wont bother, the output of processView for the above input will be: something } something so warn for wrong description, give suggestion or remove it
Definition at line 296 of file safedit.lib.php.
processView | ( | $ | line | ) |
function processView: processView function will process the line and insert links, if any intended will be called from $this->actionView function it is assumed that only a single line is passed as argument, and if a link description exists, will be valid
Since all html tags in the page's content will be striped by the safe_html() function We'll be using the following scheme to describe a link a safedit pages:
some_content {some_content} some_content | link_target the some_content enclosed by {} will be converted to link with href=link_target if {} is not found, then the whole line is converted to link with href=link_target
Definition at line 270 of file safedit.lib.php.