PHP Class Theme_model, 68kb

Inheritance: extends WY_Model
Mostrar archivo Open project: 68kb/68kb Class Usage Examples

Public Methods

Method Description
__construct ( ) : void Constructor
activate ( $dir = '' ) : boolean Activate a theme
is_really_writable ( $file ) : boolean Check if a file is writable.
load_active_theme ( $theme ) : boolean Load Active Theme
load_themes ( $default ) : arr Load All Other Themes
show_admin ( $theme_name ) : mixed Show Theme Admin File
write_css ( $file, $data ) : boolean Write the options to the css file

Method Details

__construct() public method

Constructor
public __construct ( ) : void
return void

activate() public method

Activate a theme
public activate ( $dir = '' ) : boolean
return boolean

is_really_writable() public method

Check if a file is writable.
public is_really_writable ( $file ) : boolean
return boolean

load_active_theme() public method

Load the config file for the active theme.
public load_active_theme ( $theme ) : boolean
return boolean

load_themes() public method

Scans the themes directory and loads the config files if found.
public load_themes ( $default ) : arr
return arr

show_admin() public method

See the developer theme admin file for usage.
public show_admin ( $theme_name ) : mixed
return mixed

write_css() public method

Write the options to the css file
public write_css ( $file, $data ) : boolean
return boolean