KTML 4 PHP Classes
[ class tree: KTML 4 PHP Classes ] [ index: KTML 4 PHP Classes ] [ all elements ]

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:

return:  error object or null
access:  public


Parameters

string   $folder   absolute path of the folder which contains the file
string   $file   the file name
[ Top ]



KTML4_checkFolder [line 148]

nothing KTML4_checkFolder( string $folder)

Check if a folder exists. If not, create the specified folder.



Tags:

access:  public


Parameters

string   $folder   absolute path of the folder.
[ Top ]



KTML4_cleanContent [line 189]

string KTML4_cleanContent( string $content)

Clean KTML content based on the allowed_tags_list / denied_tags_list globals.



Tags:

return:  the stripped text
access:  public


Parameters

string   $content   text to be parsed
[ Top ]



KTML4_debug [line 291]

void KTML4_debug( mixed $var)



[ Top ]



KTML4_deleteImageInfo [line 136]

nothing KTML4_deleteImageInfo( string $folder, string $file)

Delete the informations file of an image.



Tags:

access:  public


Parameters

string   $folder   absolute path of the folder which contains the image
string   $file   the image file name
[ Top ]



KTML4_deleteThumbnails [line 73]

nothing KTML4_deleteThumbnails( string $folder, mixed $oldName, string $file)

Delete the thumbnails of an image.



Tags:

access:  public


Parameters

string   $folder   absolute path of the folder which contains the image
string   $file   the image file name
[ Top ]



KTML4_del_undo [line 54]

KTML4 KTML4_del_undo( string $folder, string $file)

Delete the undo of a specified file.



Tags:

return:  error object or null
access:  public


Parameters

string   $folder   absolute path of the folder which contains the file
string   $file   the file name
[ Top ]



KTML4_escapeAttribute [line 286]

string KTML4_escapeAttribute( string $val)

Escape the & " > < from a string with the html entities;



Tags:

return:  the escaped value;


Parameters

string   $val   the value to be escaped;
[ Top ]



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:

return:  the image informations
access:  public


Parameters

string   $folder   absolute path of the folder which contains the image
string   $file   the image file name
[ Top ]



KTML4_isImage [line 172]

boolean KTML4_isImage( string $fileName)

Check if the argument file is an image.



Tags:

return:  true if the file is an image
access:  public


Parameters

string   $fileName   the file
[ Top ]



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:

return:  the new file name
access:  public


Parameters

string   $fileName   the file name.
[ Top ]



KTML4_prepareErrorMsg [line 276]

string KTML4_prepareErrorMsg( string $errorMsg)

Remove rich content from error messages.



Tags:

return:  the stripped error message
access:  public


Parameters

string   $errorMsg   the error message
[ Top ]



KTML4_prepareGlobals [line 218]

nothing KTML4_prepareGlobals( )

Prepare the allowed_tags_list / denied_tags_list globals for internal use.



Tags:

access:  public


[ Top ]



KTML4_undo [line 11]

KTML4 KTML4_undo( string $folder, string $file)

Revert the changes of a file, overwriting it with its undo file.



Tags:

return:  error object or null
access:  public


Parameters

string   $folder   absolute path of the folder which contains the file
string   $file   the file name
[ Top ]




Documentation generated on Mon, 20 Feb 2006 11:29:31 +0200 by phpDocumentor 1.3.0RC3