Overview  Package  Tree cmsdAm 0.8

cmsdAm

Class cmsdam_filecontainer

cmsdAm.cmsdam_filecontainer

class cmsdam_filecontainer

This is the cmsdAm file containers handling class.

You can use this class to save files, contents, text, or everything you want on the server's filesystem. Your (binary safe) file content will be associated to a name and is only visible from your website. cmsdAm uses hashing mechanisms to store your files, that can be viewed from your sections. Files can be only accessed by the same logged user, from the same server name and with the same lang that created the file. This is to make sure that anyone modify files used by other and increase security to your cmsdAm powered website. Statistics scripts (will be written soon) let you know about files not used for a long period of time.

Class instance: $cms->filecontainer

Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>

Field Summary
public var$conf

You should not use this variable from your section

public var$logs

You should not use this variable from your section

public var$i18n

You should not use this variable from your section

public var$users

You should not use this variable from your section

Method Summary
public voidcmsdam_filecontainer

Class constructor

private void_check_writable

Directory is writeble...

public voiddelete_file

Delete a file stored on the server filesystem

public voidadd_file

Add a file on the server's filesystem.

Field Detail

conf

public var $conf

You should not use this variable from your section


logs

public var $logs

You should not use this variable from your section


i18n

public var $i18n

You should not use this variable from your section


users

public var $users

You should not use this variable from your section

Method Detail

cmsdam_filecontainer()

public void cmsdam_filecontainer()

Class constructor

Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>

_check_writable()

private void _check_writable()

Directory is writeble...

Internal use!

Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>

delete_file()

public void delete_file(var $content_name)

Delete a file stored on the server filesystem

Parameters:
$content_name
Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>

add_file()

public void add_file(var $content_name,
                     var $content_data)

Add a file on the server's filesystem.

$content_data is binary safe.

Parameters:
$content_name
$content_data
Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>

Overview  Package  Tree cmsdAm 0.8