[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/acp/ -> acp_styles.php (summary)

(no description)

Copyright: (c) 2005 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 3976 lines (118 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

acp_styles:: (28 methods):
  main()
  frontend()
  edit_template()
  template_cache()
  edit_theme()
  edit_imageset()
  remove()
  remove_component()
  display_component_options()
  component_in_use()
  export()
  details()
  load_css_file()
  db_theme_data()
  store_templates()
  template_cache_filelist()
  clear_template_cache()
  install()
  add()
  test_installed()
  install_style()
  install_element()
  check_inheritance()
  get_super()
  store_in_db()
  _store_in_db()
  store_in_fs()
  _store_in_fs()


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


remove_component($component, $component_id, $new_id, $style_id = false)   X-Ref
Remove template/theme/imageset entry from the database


display_component_options($component, $component_id, $style_row = false, $style_id = false)   X-Ref
Display the options which can be used to replace a style/template/theme/imageset

return: boolean Returns true if the component is the only component and can not be deleted.

component_in_use($component, $component_id, $style_id = false)   X-Ref
Check whether the component is still used by another style or component


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, $template_root_path = false, $template_path = false, $theme_root_path = false, $theme_path = false, $imageset_root_path = false, $imageset_path = false)   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


check_inheritance($mode, $id)   X-Ref
Checks downwards dependencies

returns: false if no component inherits, array with name, path and id for each subtemplate otherwise
param: string $mode The element type to check - only template is supported
param: int $id The template id

get_super($mode, $id)   X-Ref
Checks upwards dependencies

returns: false if the component does not inherit, array with name, path and id otherwise
param: string $mode The element type to check - only template is supported
param: int $id The template id

store_in_db($mode, $id)   X-Ref
Moves a template set and its subtemplates to the database

param: string $mode The component to move - only template is supported
param: int $id The template id

_store_in_db($mode, $id, $path)   X-Ref
Moves a template set to the database

param: string $mode The component to move - only template is supported
param: int $id The template id
param: string $path TThe path to the template files

store_in_fs($mode, $id)   X-Ref
Moves a template set and its subtemplates to the filesystem

param: string $mode The component to move - only template is supported
param: int $id The template id

_store_in_fs($mode, $id, $path)   X-Ref
Moves a template set to the filesystem

param: string $mode The component to move - only template is supported
param: int $id The template id
param: string $path The path to the template



Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1