OssnThemes Class Reference
Inheritance diagram for OssnThemes:
OssnSite OssnDatabase OssnBase

Public Member Functions

 getActive ()
 
 total ()
 
 getThemes ()
 
 upload ()
 
 getActivePath ()
 
 loadActive ()
 
 Enable ($theme)
 
 deletetheme ($theme)
 
 isOld ($element)
 
- Public Member Functions inherited from OssnSite
 getSettings ($settings)
 
 getAllSettings ()
 
 UpdateSettings ($settings, $values, $wheres)
 
- Public Member Functions inherited from OssnDatabase
 Connect ()
 
 insert ($params)
 
 statement ($query)
 
 execute ()
 
 update ($params=array())
 
 select ($params, $multi= '')
 
 fetch ($data=false)
 
 delete ($params)
 
 getLastEntry ()
 
 constructWheres (array $array, $operator="AND")
 
 generateLimit ($data_limit=false, $page_limit=false, $offset=false)
 
- Public Member Functions inherited from OssnBase
 getGUID ()
 
 getID ()
 
 getParam ($param)
 
 isParam ($param)
 

Static Public Member Functions

static getTheme ($name)
 
static checkRequirments ($element)
 

Detailed Description

Definition at line 12 of file OssnThemes.php.

Member Function Documentation

static checkRequirments (   $element)
static

Check theme requirments

Parameters
string$elementA valid theme xml file
Returns
false|array

Definition at line 193 of file OssnThemes.php.

deletetheme (   $theme)

Delete theme

Returns
boolean

Definition at line 163 of file OssnThemes.php.

Enable (   $theme)

Enable Theme

string $name Theme id;

Returns
boolean

Definition at line 143 of file OssnThemes.php.

getActive ( )

Get active theme

Returns
string;

Definition at line 38 of file OssnThemes.php.

getActivePath ( )

Get active theme startup file

Returns
string

Definition at line 115 of file OssnThemes.php.

static getTheme (   $name)
static

Get theme details

Parameters
string$nameTheme id;
Returns
object|false;

Definition at line 20 of file OssnThemes.php.

getThemes ( )

Get components list

Returns
components ids;

Definition at line 56 of file OssnThemes.php.

isOld (   $element)

Check if theme is older than 3.x

Parameters
string$elementComponent xml string.
Returns
boolean

Definition at line 176 of file OssnThemes.php.

loadActive ( )

Get active theme startup file

Returns
string

Definition at line 124 of file OssnThemes.php.

total ( )

Get total themes

Returns
integer

Definition at line 47 of file OssnThemes.php.

upload ( )

Upload component

Requires component package file,

Returns
boolean

Definition at line 80 of file OssnThemes.php.


The documentation for this class was generated from the following file: