A class to manage a collection (or theme) of Templates and Stylesheets
| package |
CMS |
|---|---|
| license |
GPL |
| since | 2.0 |
| author |
Robert Campbell calguy1000@gmail.com |
get_id() : integer
integer
get_name() : string
string
set_name(string $str)
string $strget_default() : boolean
boolean
set_default(boolean $flag)
Sets the dirty flag. Note, only one theme can be the default.
boolean $flagget_description() : string
string
set_description(string $str)
string $strget_created() : integer
integer
get_modified() : integer
integer
has_stylesheets() : boolean
boolean
get_stylesheets() : array
array
of integers
set_stylesheets(array $id_array)
array $id_arrayArray of integer stylesheet ids.
add_stylesheet(mixed $css)
mixed $cssEither an integer stylesheet id, or a CmsLayoutStylesheet object
delete_stylesheet(mixed $css)
mixed $cssEither an integer stylesheet id, or a CmsLayoutStylesheet object
has_templates() : boolean
boolean
get_templates() : array
array
of integers
set_templates(array $id_array)
array $id_arrayArray of integer template ids
add_template(mixed $tpl)
mixed $tplAccepts either an integer template id, or an instance of a CmsLayoutTemplate object
delete_template(mixed $tpl)
mixed $tplEither an integer template id, or a CmsLayoutTemplate object
validate()
save()
delete(boolean $force = FALSE)
boolean $forceForce deleting the theme even if there are templates attached
load(mixed $x) : \CmsLayoutCollection
mixed $xget_all(string $quick = FALSE) : array
string $quickDo not load the templates and stylesheets.
array
Array of CmsLayoutCollection objects.
get_list()
suggest_name(string $newname = '') : string
string $newname string