Public Member Functions | |
| TEMPLATE ($templateid) | |
| getID () | |
| createFromName ($name) | |
| getIdFromName ($name) | |
| updateGeneralInfo ($name, $desc) | |
| update ($type, $content) | |
| deleteAllParts () | |
| createNew ($name, $desc) | |
| read ($name) | |
| fill ($template, $values) | |
| exists ($name) | |
| existsID ($id) | |
| getNameFromId ($id) | |
| getDesc ($id) | |
Public Attributes | |
| $id | |
http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group
Definition at line 21 of file TEMPLATE.php.
| TEMPLATE::TEMPLATE | ( | $ | templateid | ) |
| TEMPLATE::getID | ( | ) |
Definition at line 29 of file TEMPLATE.php.
Referenced by deleteAllParts(), update(), and updateGeneralInfo().
| TEMPLATE::createFromName | ( | $ | name | ) |
Definition at line 34 of file TEMPLATE.php.
References getIdFromName(), and TEMPLATE().
Referenced by SKINIMPORT::writeToDatabase().
| TEMPLATE::getIdFromName | ( | $ | name | ) |
Definition at line 39 of file TEMPLATE.php.
References $query, mysql_fetch_object(), and sql_query().
Referenced by createFromName().
| TEMPLATE::updateGeneralInfo | ( | $ | name, | |
| $ | desc | |||
| ) |
Updates the general information about the template
Definition at line 51 of file TEMPLATE.php.
References $query, getID(), and sql_query().
| TEMPLATE::update | ( | $ | type, | |
| $ | content | |||
| ) |
Updates the contents of one part of the template
Definition at line 62 of file TEMPLATE.php.
References $id, getID(), sql_query(), and sql_table().
| TEMPLATE::deleteAllParts | ( | ) |
Deletes all template parts from the database
Definition at line 78 of file TEMPLATE.php.
References getID(), sql_query(), and sql_table().
| TEMPLATE::createNew | ( | $ | name, | |
| $ | desc | |||
| ) |
Creates a new template
(static)
Definition at line 87 of file TEMPLATE.php.
References $manager, mysql_insert_id(), sql_query(), and sql_table().
Referenced by ADMIN::action_templateclone(), ADMIN::action_templatenew(), and SKINIMPORT::writeToDatabase().
| TEMPLATE::read | ( | $ | name | ) |
Reads a template and returns an array with the parts. (static)
| $name | name of the template file |
Definition at line 121 of file TEMPLATE.php.
References $query, mysql_fetch_object(), sql_query(), and sql_table().
Referenced by MANAGER::getTemplate().
| TEMPLATE::fill | ( | $ | template, | |
| $ | values | |||
| ) |
fills a template with values (static)
| $template | Template to be used | |
| $values | Array of all the values |
Definition at line 147 of file TEMPLATE.php.
Referenced by ADMIN::_showActivationPage(), BODYACTIONS::createImageCode(), BODYACTIONS::createMediaCode(), BODYACTIONS::createPopupCode(), ACTIONS::parse_preview(), BLOG::search(), MEMBER::sendActivationLink(), BLOG::showArchiveList(), BLOG::showBlogList(), and BLOG::showCategoryList().
| TEMPLATE::exists | ( | $ | name | ) |
Definition at line 162 of file TEMPLATE.php.
References mysql_num_rows(), sql_query(), and sql_table().
Referenced by ADMIN::action_templateclone(), ADMIN::action_templatenew(), ADMIN::action_templateupdate(), and SKINIMPORT::checkTemplateNameClashes().
| TEMPLATE::existsID | ( | $ | id | ) |
Definition at line 169 of file TEMPLATE.php.
References $id, mysql_num_rows(), sql_query(), and sql_table().
Referenced by SKINEXPORT::addTemplate().
| TEMPLATE::getNameFromId | ( | $ | id | ) |
Definition at line 175 of file TEMPLATE.php.
References $id, quickQuery(), and sql_table().
Referenced by ADMIN::action_templateclone(), ADMIN::action_templatedelete(), ADMIN::action_templateedit(), ADMIN::action_templateupdate(), and SKINEXPORT::addTemplate().
| TEMPLATE::getDesc | ( | $ | id | ) |
Definition at line 180 of file TEMPLATE.php.
References $id, $query, mysql_fetch_object(), and sql_query().
Referenced by ADMIN::action_templateclone(), ADMIN::action_templatedelete(), ADMIN::action_templateedit(), and SKINEXPORT::export().
| TEMPLATE::$id |
Definition at line 23 of file TEMPLATE.php.
Referenced by existsID(), getDesc(), getNameFromId(), and update().
1.5.5