Public Member Functions | |
| SKIN ($id) | |
| getID () | |
| getName () | |
| getDescription () | |
| getContentType () | |
| getIncludeMode () | |
| getIncludePrefix () | |
| parse ($type) | |
| getContent ($type) | |
| update ($type, $content) | |
| deleteAllParts () | |
| updateGeneralInfo ($name, $desc, $type= 'text/html', $includeMode= 'normal', $includePrefix= '') | |
| getFriendlyNames () | |
| getAllowedActionsForType ($type) | |
Static Public Member Functions | |
| exists ($name) | |
| existsID ($id) | |
| createFromName ($name) | |
| getIdFromName ($name) | |
| getNameFromId ($id) | |
| createNew ($name, $desc, $type= 'text/html', $includeMode= 'normal', $includePrefix= '') | |
Public Attributes | |
| $isValid | |
| $id | |
| $description | |
| $contentType | |
| $includeMode | |
| $includePrefix | |
| $name | |
Definition at line 24 of file SKIN.php.
| SKIN::SKIN | ( | $ | id | ) |
Definition at line 37 of file SKIN.php.
References $id, mysql_fetch_object(), mysql_num_rows(), sql_query(), and sql_table().
Referenced by createFromName(), and parse().
| SKIN::getID | ( | ) |
| SKIN::exists | ( | $ | name | ) | [static] |
Checks if a skin with a given shortname exists
| string | $name Skin short name |
Definition at line 68 of file SKIN.php.
References $name, quickQuery(), and sql_table().
Referenced by ADMIN::action_skinclone(), ADMIN::action_skineditgeneral(), ADMIN::action_skinnew(), and SKINIMPORT::checkSkinNameClashes().
| SKIN::existsID | ( | $ | id | ) | [static] |
Checks if a skin with a given ID exists
| string | $id Skin ID |
Definition at line 78 of file SKIN.php.
References $id, quickQuery(), and sql_table().
Referenced by SKINEXPORT::addSkin(), and doError().
| SKIN::createFromName | ( | $ | name | ) | [static] |
Returns a skin given its shortname
| string | $name Skin shortname |
Definition at line 88 of file SKIN.php.
References $name, getIdFromName(), and SKIN().
Referenced by SKINIMPORT::writeToDatabase().
| SKIN::getIdFromName | ( | $ | name | ) | [static] |
Returns a skin ID given its shortname
| string | $name Skin shortname |
Definition at line 98 of file SKIN.php.
References $name, $query, mysql_fetch_object(), and sql_query().
Referenced by createFromName(), and selectSkin().
| SKIN::getNameFromId | ( | $ | id | ) | [static] |
Returns a skin shortname given its ID
| string | $name |
Definition at line 113 of file SKIN.php.
References $id, quickQuery(), and sql_table().
Referenced by SKINEXPORT::addSkin().
| SKIN::createNew | ( | $ | name, | |
| $ | desc, | |||
| $ | type = 'text/html', |
|||
| $ | includeMode = 'normal', |
|||
| $ | includePrefix = '' | |||
| ) | [static] |
Creates a new skin, with the given characteristics.
Definition at line 122 of file SKIN.php.
References $includeMode, $includePrefix, $manager, $name, mysql_insert_id(), sql_query(), and sql_table().
Referenced by ADMIN::action_skinclone(), ADMIN::action_skinnew(), and SKINIMPORT::writeToDatabase().
| SKIN::parse | ( | $ | type | ) |
Definition at line 154 of file SKIN.php.
References $actions, $CONF, $manager, getAllowedActionsForType(), getContent(), getContentType(), getIncludeMode(), getIncludePrefix(), getName(), sendContentType(), PARSER::setProperty(), and SKIN().
| SKIN::getContent | ( | $ | type | ) |
Definition at line 197 of file SKIN.php.
References $query, mysql_num_rows(), mysql_result(), and sql_query().
Referenced by parse().
| SKIN::update | ( | $ | type, | |
| $ | content | |||
| ) |
Updates the contents of one part of the skin
Definition at line 210 of file SKIN.php.
References $skinid, sql_query(), and sql_table().
| SKIN::deleteAllParts | ( | ) |
Deletes all skin parts from the database
Definition at line 225 of file SKIN.php.
References getID(), sql_query(), and sql_table().
| SKIN::updateGeneralInfo | ( | $ | name, | |
| $ | desc, | |||
| $ | type = 'text/html', |
|||
| $ | includeMode = 'normal', |
|||
| $ | includePrefix = '' | |||
| ) |
Updates the general information about the skin
Definition at line 232 of file SKIN.php.
References $includeMode, $includePrefix, $name, $query, getID(), and sql_query().
| SKIN::getFriendlyNames | ( | ) |
static: returns an array of friendly names
Definition at line 246 of file SKIN.php.
References $query, mysql_fetch_array(), sql_query(), and sql_table().
Referenced by ADMIN::action_skinedittype().
| SKIN::getAllowedActionsForType | ( | $ | type | ) |
Definition at line 267 of file SKIN.php.
References $blogid.
Referenced by ADMIN::action_skinedittype(), parse(), and parseFile().
| SKIN::$id |
| SKIN::$includeMode |
| SKIN::$includePrefix |
| SKIN::$name |
Definition at line 35 of file SKIN.php.
Referenced by createFromName(), createNew(), exists(), getIdFromName(), and updateGeneralInfo().
1.5.5