Model_Folder

class Nos\Media\Model_Folder

Extends Nos\Orm\Model.

Relations

property Nos\Media\Model_Folder::$children
property Nos\Media\Model_Folder::$media
property Nos\Media\Model_Folder::$parent

Behaviours

Methods

Nos\Media\Model_Folder::delete_from_disk()
Returns:True or false depending on whether the deletion was successful.

Delete the folder and all its content (recursively).

Nos\Media\Model_Folder::delete_public_cache()
Returns:True or false depending on whether the deletion was successful.

Delete all the public and cached entries (image thumbnails) of this folder

Nos\Media\Model_Folder::path($file = '')
Parameters:
  • $file (string) – A file name to append to the path.
Returns:

Absolute folder path.

Nos\Media\Model_Folder::count_media()
Returns:Number of media contained in the folder and all its sub-folders.
Nos\Media\Model_Folder::count_media_usage()
Returns:Number of media in use (by the applications) contained in this folder and all its sub-folders.
Read the Docs v: chiba.1
Versions
latest
chiba.2
chiba.1
0.2
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.