TEMPLATE Class Reference

List of all members.

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


Detailed Description

A class representing a template

http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group

Version:
Id
TEMPLATE.php 1116 2007-02-03 08:24:29Z kimitake
Version:
NucleusJP
TEMPLATE.php,v 1.7 2007/02/04 06:28:46 kimitake Exp

Definition at line 21 of file TEMPLATE.php.


Member Function Documentation

TEMPLATE::TEMPLATE ( templateid  ) 

Definition at line 25 of file TEMPLATE.php.

Referenced by createFromName().

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)

Parameters:
$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)

Parameters:
$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  ) 

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  ) 

TEMPLATE::getDesc ( id  ) 


Member Data Documentation

TEMPLATE::$id

Definition at line 23 of file TEMPLATE.php.

Referenced by existsID(), getDesc(), getNameFromId(), and update().


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



Generated on Wed Jun 25 17:26:03 2008 by  doxygen 1.5.5