Procedural File: ktml4_functions.inc.php
Source Location: /ktml4_functions.inc.php
Page Details:
KTML4_add_undo [line 36]
KTML4 KTML4_add_undo(
string $folder, string $file)
|
|
Create an undo for the specified file.
Tags:
Parameters
| string |
$folder |
absolute path of the folder which contains the file |
| string |
$file |
the file name |
KTML4_checkFolder [line 148]
nothing KTML4_checkFolder(
string $folder)
|
|
Check if a folder exists. If not, create the specified folder.
Tags:
Parameters
| string |
$folder |
absolute path of the folder. |
KTML4_cleanContent [line 189]
string KTML4_cleanContent(
string $content)
|
|
Clean KTML content based on the allowed_tags_list / denied_tags_list globals.
Tags:
Parameters
| string |
$content |
text to be parsed |
KTML4_debug [line 291]
void KTML4_debug(
mixed $var)
|
|
KTML4_deleteImageInfo [line 136]
nothing KTML4_deleteImageInfo(
string $folder, string $file)
|
|
Delete the informations file of an image.
Tags:
Parameters
| string |
$folder |
absolute path of the folder which contains the image |
| string |
$file |
the image file name |
KTML4_deleteThumbnails [line 73]
nothing KTML4_deleteThumbnails(
string $folder, mixed $oldName, string $file)
|
|
Delete the thumbnails of an image.
Tags:
Parameters
| string |
$folder |
absolute path of the folder which contains the image |
| string |
$file |
the image file name |
KTML4_del_undo [line 54]
KTML4 KTML4_del_undo(
string $folder, string $file)
|
|
Delete the undo of a specified file.
Tags:
Parameters
| string |
$folder |
absolute path of the folder which contains the file |
| string |
$file |
the file name |
KTML4_escapeAttribute [line 286]
string KTML4_escapeAttribute(
string $val)
|
|
Escape the & " > < from a string with the html entities;
Tags:
Parameters
| string |
$val |
the value to be escaped; |
KTML4_getImageInfo [line 103]
array KTML4_getImageInfo(
string $folder, string $file)
|
|
Retrieve image informations from its cache file. Create the cache file if it doesn't exist.
Tags:
Parameters
| string |
$folder |
absolute path of the folder which contains the image |
| string |
$file |
the image file name |
KTML4_isImage [line 172]
boolean KTML4_isImage(
string $fileName)
|
|
Check if the argument file is an image.
Tags:
Parameters
| string |
$fileName |
the file |
KTML4_makeValidFilename [line 161]
string KTML4_makeValidFilename(
string $fileName)
|
|
Check if a file name does not contain invalid characters. If it does, replace them with underscore.
Tags:
Parameters
| string |
$fileName |
the file name. |
KTML4_prepareErrorMsg [line 276]
string KTML4_prepareErrorMsg(
string $errorMsg)
|
|
Remove rich content from error messages.
Tags:
Parameters
| string |
$errorMsg |
the error message |
KTML4_prepareGlobals [line 218]
nothing KTML4_prepareGlobals(
)
|
|
Prepare the allowed_tags_list / denied_tags_list globals for internal use.
Tags:
KTML4_undo [line 11]
KTML4 KTML4_undo(
string $folder, string $file)
|
|
Revert the changes of a file, overwriting it with its undo file.
Tags:
Parameters
| string |
$folder |
absolute path of the folder which contains the file |
| string |
$file |
the file name |
|