acp_styles
public class acp_styles
| Field Summary | |
|---|---|
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| Method Summary | |
|---|---|
| void | add(mixed mode) Add new style |
| void | check_inheritance(string mode, int id) Checks downwards dependencies |
| void | clear_template_cache(array template_row, mixed file_ary) Destroys cached versions of template files |
| void | component_in_use(mixed component, mixed component_id, bool style_id) Check whether the component is still used by another style or component |
| string | db_theme_data(array theme_row, mixed stylesheet, string root_path) Returns a string containing the value that should be used for the theme_data column in the theme database table. |
| void | details(mixed mode, mixed style_id) Display details |
| void | display_component_options(mixed component, mixed component_id, bool style_row, bool style_id) Display the options which can be used to replace a style/template/theme/imageset |
| void | edit_imageset(int imageset_id) Edit imagesets |
| void | edit_template(int template_id) Provides a template editor which allows saving changes to template files on the filesystem or in the database. |
| void | edit_theme(int theme_id) Provides a css editor and a basic easier to use stylesheet editing tool for less experienced (or lazy) users |
| void | export(mixed mode, mixed style_id) Export style or style elements |
| void | frontend(mixed mode, mixed options, mixed actions) Build Frontend with supplied options |
| void | get_super(string mode, int id) Checks upwards dependencies |
| void | install(mixed mode) Install Style/Template/Theme/Imageset |
| void | install_element(mixed mode, mixed error, mixed action, mixed root_path, mixed id, mixed name, mixed path, mixed copyright, int store_db) Install/add an element, doing various checks as we go |
| void | install_style(mixed error, mixed action, mixed root_path, mixed id, mixed name, mixed path, mixed copyright, mixed active, mixed default, mixed style_row, bool template_root_path, bool template_path, bool theme_root_path, bool theme_path, bool imageset_root_path, bool imageset_path) Install/Add style |
| void | load_css_file(mixed path, mixed filename) Load css file contents |
| void | main(mixed id, mixed mode) |
| void | remove(mixed mode, mixed style_id) Remove style/template/theme/imageset |
| void | remove_component(mixed component, mixed component_id, mixed new_id, bool style_id) Remove template/theme/imageset entry from the database |
| void | store_in_db(string mode, int id) Moves a template set and its subtemplates to the database |
| void | store_in_fs(string mode, int id) Moves a template set and its subtemplates to the filesystem |
| void | store_templates(mixed mode, mixed style_id, mixed template_path, mixed filelist) Store template files into db |
| void | template_cache(int template_id) Allows the admin to view cached versions of template files and clear single template cache files |
| array | template_cache_filelist(string template_path) Returns an array containing all template filenames for one template that are currently cached. |
| void | test_installed(mixed element, mixed error, mixed root_path, mixed reqd_name, mixed id, mixed name, mixed copyright) $reqd_template = (isset($installcfg['required_template'])) ? $installcfg['required_template'] : false; $reqd_theme = (isset($installcfg['required_theme'])) ? $installcfg['required_theme'] : false; $reqd_imageset = (isset($installcfg['required_imageset'])) ? $installcfg['required_imageset'] : false;Check to see if each element is already installed, if it is grab the id foreach ($element_ary as $element => $table) { $style_row = array_merge($style_row, array( $element . |
public mixed $imageset_cfg
public mixed $imageset_keys
public mixed $style_cfg
public mixed $template_cfg
public mixed $theme_cfg
public mixed $u_action
public void add(mixed mode)
Add new style
public void check_inheritance(string mode, int id)
Checks downwards dependencies
public void clear_template_cache(array template_row, mixed file_ary)
Destroys cached versions of template files
public void component_in_use(mixed component, mixed component_id, bool style_id)
Check whether the component is still used by another style or component
public string db_theme_data(array theme_row, mixed stylesheet, string root_path)
Returns a string containing the value that should be used for the theme_data column in the theme database table. Includes contents of files loaded via @import
public void details(mixed mode, mixed style_id)
Display details
public void display_component_options(mixed component, mixed component_id, bool style_row, bool style_id)
Display the options which can be used to replace a style/template/theme/imageset
public void edit_imageset(int imageset_id)
Edit imagesets
public void edit_template(int template_id)
Provides a template editor which allows saving changes to template files on the filesystem or in the database.
public void edit_theme(int theme_id)
Provides a css editor and a basic easier to use stylesheet editing tool for less experienced (or lazy) users
public void export(mixed mode, mixed style_id)
Export style or style elements
public void frontend(mixed mode, mixed options, mixed actions)
Build Frontend with supplied options
public void get_super(string mode, int id)
Checks upwards dependencies
public void install(mixed mode)
Install Style/Template/Theme/Imageset
public void install_element(mixed mode, mixed error, mixed action, mixed root_path, mixed id, mixed name, mixed path, mixed copyright, int store_db)
Install/add an element, doing various checks as we go
public void install_style(mixed error, mixed action, mixed root_path, mixed id, mixed name, mixed path, mixed copyright, mixed active, mixed default, mixed style_row, bool template_root_path, bool template_path, bool theme_root_path, bool theme_path, bool imageset_root_path, bool imageset_path)
Install/Add style
public void load_css_file(mixed path, mixed filename)
Load css file contents
public void main(mixed id, mixed mode)
public void remove(mixed mode, mixed style_id)
Remove style/template/theme/imageset
public void remove_component(mixed component, mixed component_id, mixed new_id, bool style_id)
Remove template/theme/imageset entry from the database
public void store_in_db(string mode, int id)
Moves a template set and its subtemplates to the database
public void store_in_fs(string mode, int id)
Moves a template set and its subtemplates to the filesystem
public void store_templates(mixed mode, mixed style_id, mixed template_path, mixed filelist)
Store template files into db
public void template_cache(int template_id)
Allows the admin to view cached versions of template files and clear single template cache files
public array template_cache_filelist(string template_path)
Returns an array containing all template filenames for one template that are currently cached.
public void test_installed(mixed element, mixed error, mixed root_path, mixed reqd_name, mixed id, mixed name, mixed copyright)
$reqd_template = (isset($installcfg['required_template'])) ? $installcfg['required_template'] : false; $reqd_theme = (isset($installcfg['required_theme'])) ? $installcfg['required_theme'] : false; $reqd_imageset = (isset($installcfg['required_imageset'])) ? $installcfg['required_imageset'] : false;
Check to see if each element is already installed, if it is grab the id foreach ($element_ary as $element => $table) { $style_row = array_merge($style_row, array( $element . '_id' => 0, $element . '_name' => '', $element . '_copyright' => '') );
$this->test_installed($element, $error, $root_path, ${'reqd_' . $element}, $style_row[$element . '_id'], $style_row[$element . '_name'], $style_row[$element . '_copyright']); Is this element installed? If not, grab its cfg details