A class representing a template category.
Templates can be optionally organized into categories, this class manages the category itself.
package |
CMS |
---|---|
license |
GPL |
since | 2.0 |
author |
Robert Campbell calguy1000@gmail.com |
get_id() : integer
integer
get_name() : string
string
set_name(\sting $str)
The category name must be unique, and can only contain certain characters.
\sting
$strThe template type name.
get_description() : string
string
set_description(string $str)
string
$strThe description
get_item_order() : integer
integer
set_item_order(integer $idx)
The item order must be unique and incremental no validation is done on the item order in this method.
integer
$idxget_modified() : integer
integer
The unix timestamp from the database
validate()
save()
delete()
This method will delete the object from the database, and erase the item order and id values from this object, suitable for re-saving
load(integer|string $val) : self
integer|string
$valEither the integer category id, or the category name
self
get_all(string $prefix = '') : array
string
$prefixAn optional category name prefix.
array
Array of CmsLayoutTemplateCategory objects