| [ Index ] |
PHP Cross Reference of phpBB 3.0 Beta 3 |
[Source view] [Print]
(no description)
| Copyright: | (c) 2005 phpBB Group |
| License: | http://opensource.org/licenses/gpl-license.php GNU Public License |
| Version: | $Id: acp_styles.php,v 1.58 2006/11/03 21:04:09 acydburn Exp $ |
| File Size: | 3059 lines (92 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
acp_styles:: (19 methods):
main()
frontend()
edit_template()
template_cache()
edit_theme()
edit_imageset()
remove()
export()
details()
load_css_file()
db_theme_data()
store_templates()
template_cache_filelist()
clear_template_cache()
install()
add()
test_installed()
install_style()
install_element()
Class: acp_styles - X-Ref
| main($id, $mode) X-Ref |
| No description |
| frontend($mode, $options, $actions) X-Ref |
| Build Frontend with supplied options |
| edit_template($template_id) X-Ref |
| Provides a template editor which allows saving changes to template files on the filesystem or in the database. param: int $template_id specifies which template set is being edited |
| template_cache($template_id) X-Ref |
| Allows the admin to view cached versions of template files and clear single template cache files param: int $template_id specifies which template's cache is shown |
| edit_theme($theme_id) X-Ref |
| Provides a css editor and a basic easier to use stylesheet editing tool for less experienced (or lazy) users param: int $theme_id specifies which theme is being edited |
| edit_imageset($imageset_id) X-Ref |
| Edit imagesets param: int $imageset_id specifies which imageset is being edited |
| remove($mode, $style_id) X-Ref |
| Remove style/template/theme/imageset |
| export($mode, $style_id) X-Ref |
| Export style or style elements |
| details($mode, $style_id) X-Ref |
| Display details |
| load_css_file($path, $filename) X-Ref |
| Load css file contents |
| db_theme_data($theme_row, $stylesheet = false, $root_path = '') X-Ref |
| 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 param: array $theme_row is an associative array containing the theme's current database entry param: mixed $stylesheet can either be the new content for the stylesheet or false to load from the standard file param: string $root_path should only be used in case you want to use a different root path than "{$phpbb_root_path}styles/{$theme_row['theme_path']}" return: string Stylesheet data for theme_data column in the theme table |
| store_templates($mode, $style_id, $template_path, $filelist) X-Ref |
| Store template files into db |
| template_cache_filelist($template_path) X-Ref |
| Returns an array containing all template filenames for one template that are currently cached. param: string $template_path contains the name of the template's folder in /styles/ return: array of filenames that exist in /styles/$template_path/template/ (without extension!) |
| clear_template_cache($template_row, $file_ary = false) X-Ref |
| Destroys cached versions of template files param: array $template_row contains the template's row in the STYLES_TEMPLATE_TABLE database table param: mixed $file_ary is optional and may contain an array of template file names which should be refreshed in the cache. |
| install($mode) X-Ref |
| Install Style/Template/Theme/Imageset |
| add($mode) X-Ref |
| Add new style |
| test_installed($element, &$error, $root_path, $reqd_name, &$id, &$name, &$copyright) X-Ref |
| Is this element installed? If not, grab its cfg details |
| install_style(&$error, $action, $root_path, &$id, $name, $path, $copyright, $active, $default, &$style_row) X-Ref |
| Install/Add style |
| install_element($mode, &$error, $action, $root_path, &$id, $name, $path, $copyright, $store_db = 0) X-Ref |
| Install/add an element, doing various checks as we go |
| Generated: Wed Nov 22 00:35:05 2006 | Cross-referenced by PHPXref 0.6 |