Class: Skin
Source Location: /blogs/inc/skins/model/_skin.class.php
Class Skin
|
Skin Class Located in /blogs/inc/skins/model/_skin.class.php [line 38] DataObject | --SkinAuthor(s):
|
| Child Class | Description |
|---|---|
| intense_Skin | Specific code for this skin. |
| _sitemap_Skin | Specific code for this skin. |
| _rss_Skin | Specific code for this skin. |
| custom_Skin | Specific code for this skin. |
| pluralism_Skin | Specific code for this skin. |
| natural_pink_Skin | Specific code for this skin. |
| _atom_Skin | Specific code for this skin. |
| evopress_Skin | Specific code for this skin. |
| _rdf_Skin | Specific code for this skin. |
| _rss2_Skin | Specific code for this skin. |
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From DataObject |
Inherited From DataObject
|
| static void | disp_skinshot() | Display skinshot for skin folder in various places. |
| Skin | Skin() | Constructor |
| void | container() | Display a container |
| boolean | dbinsert() | Insert object into DB based on previously recorded changes. |
| boolean | dbupdate() | Update the DB based on previously recorded changes |
| void | dbupdate_settings() | Save skin specific settings for current blgo to DB |
| void | db_save_containers() | Save containers |
| void | discover_containers() | Discover containers included in skin file |
| void | display_init() | Get ready for displaying the skin. |
| array | get_containers() | |
| void | get_default_name() | Get default name for the skin. |
| void | get_default_type() | Get default type for the skin. |
| void | get_name() | Get the customized name for the skin. |
| void | get_param_definitions() | Get definitions for editable params |
| string | get_path() | Get current skin path |
| void | get_setting() | Get a skin specific param value from current Blog |
| string | get_url() | Get current skin URL |
| void | install() | Install current skin to DB |
| boolean | load_from_Request() | Load data from Request form fields. |
| void | load_params_from_Request() | Load params |
| void | set_setting() | Set a skin specific param value for current Blog |
| string | TS_() | Translate and escape single quotes. |
| string | T_() | Translate a given string, in the Skin's context. |
The translations keyed by locale. They get loaded through include() of _global.php.
API Tags:| See: | Skin::T_() |
|
Display skinshot for skin folder in various places.
Including for NON installed skins.
Parameters:| $skin_folder: | ||
| $skin_name: | ||
| $function: | ||
| $selected: | ||
| $select_url: | ||
| $function_url: |
|
Constructor
Parameters:| table | $db_row: | Database row |
| $skin_folder: |
|
Display a container
Parameters:| string | $sco_name: | |
| array | $params: |
Information Tags:
| Todo: | fp> if it doesn't get any skin specific, move it outta here! :P fp> Do we need Skin objects in the frontoffice at all? -- Do we want to include the dispatcher into the Skin object? WARNING: globals fp> We might want to customize the container defaults. -- Per blog or per skin? |
|
Insert object into DB based on previously recorded changes.
API Tags:
| Return: | true |
- DataObject::dbinsert()
- Insert object into DB based on previously recorded changes.
|
Update the DB based on previously recorded changes
API Tags:
| Return: | true |
- DataObject::dbupdate()
- Update the DB based on previously recorded changes
|
Save skin specific settings for current blgo to DB
|
Save containers
to be called by dbinsert / dbupdate
|
Discover containers included in skin file
|
Get ready for displaying the skin.
This may register some CSS or JS...
- intense_Skin::display_init() : Get ready for displaying the skin.
- custom_Skin::display_init() : Get ready for displaying the skin.
- evopress_Skin::display_init() : Get ready for displaying the skin.
|
Get default name for the skin.
Note: the admin can customize it.
- intense_Skin::get_default_name() : Get default name for the skin.
- _sitemap_Skin::get_default_name() : Get default name for the skin.
- _rss_Skin::get_default_name() : Get default name for the skin.
- custom_Skin::get_default_name() : Get default name for the skin.
- pluralism_Skin::get_default_name() : Get default name for the skin.
- natural_pink_Skin::get_default_name() : Get default name for the skin.
- _atom_Skin::get_default_name() : Get default name for the skin.
- evopress_Skin::get_default_name() : Get default name for the skin.
- _rdf_Skin::get_default_name() : Get default name for the skin.
- _rss2_Skin::get_default_name() : Get default name for the skin.
|
Get default type for the skin.
- intense_Skin::get_default_type() : Get default type for the skin.
- _sitemap_Skin::get_default_type() : Get default type for the skin.
- _rss_Skin::get_default_type() : Get default type for the skin.
- custom_Skin::get_default_type() : Get default type for the skin.
- pluralism_Skin::get_default_type() : Get default type for the skin.
- natural_pink_Skin::get_default_type() : Get default type for the skin.
- _atom_Skin::get_default_type() : Get default type for the skin.
- evopress_Skin::get_default_type() : Get default type for the skin.
- _rdf_Skin::get_default_type() : Get default type for the skin.
- _rss2_Skin::get_default_type() : Get default type for the skin.
|
Get definitions for editable params
Parameters:| local | $params: | params like 'for_editing' => true |
API Tags:
| See: | Plugin::GetDefaultSettings() |
Information Tags:
| Todo: | this is destined to be overridden by derived Skin classes |
- intense_Skin::get_param_definitions() : Get definitions for editable params
- custom_Skin::get_param_definitions() : Get definitions for editable params
- evopress_Skin::get_param_definitions() : Get definitions for editable params
|
Get a skin specific param value from current Blog
Parameters:| $parname: |
|
Load data from Request form fields.
API Tags:
| Return: | true if loaded data seems valid. |
|
Set a skin specific param value for current Blog
Parameters:| string | $parname: | parameter name |
| mixed | $parvalue: | parameter value |
|
Translate and escape single quotes.
This is to be used mainly for Javascript strings.
Parameters:| string | $string: | String to translate |
| string | $req_locale: | Locale to use |
API Tags:
| Return: | The translated and escaped string. |
| Uses: | Skin::T_() |
Information Tags:
| Since: | 3.2.0 (after beta) |
|
Translate a given string, in the Skin's context.
This means, that the translation is obtained from the Skin's "locales" folder.
It uses the global/regular T_() function as a fallback.
Parameters:| string | $string: | The string (english), that should be translated |
| string | $req_locale: | Requested locale ($current_locale gets used by default) |
API Tags:
| Return: | The translated string. |
| Usedby: | Skin::T_() |
| Usedby: | Skin::TS_() |
| Uses: | Skin::T_() |
Information Tags:
| Since: | 3.2.0 (after beta) |
