SKIN Class Reference

List of all members.

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


Detailed Description

Definition at line 24 of file SKIN.php.


Member Function Documentation

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 (  ) 

Definition at line 55 of file SKIN.php.

Referenced by deleteAllParts(), and updateGeneralInfo().

SKIN::getName (  ) 

Definition at line 56 of file SKIN.php.

Referenced by parse().

SKIN::getDescription (  ) 

Definition at line 57 of file SKIN.php.

SKIN::getContentType (  ) 

Definition at line 58 of file SKIN.php.

Referenced by parse().

SKIN::getIncludeMode (  ) 

Definition at line 59 of file SKIN.php.

Referenced by parse().

SKIN::getIncludePrefix (  ) 

Definition at line 60 of file SKIN.php.

Referenced by parse().

SKIN::exists ( name  )  [static]

Checks if a skin with a given shortname exists

Parameters:
string $name Skin short name
Returns:
int number of skins with the given ID

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

Parameters:
string $id Skin ID
Returns:
int number of skins with the given 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

Parameters:
string $name Skin shortname
Returns:
object SKIN

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

Parameters:
string $name Skin shortname
Returns:
int Skin ID

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

Parameters:
string $name
Returns:
string Skin short 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  ) 

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().


Member Data Documentation

SKIN::$isValid

Definition at line 27 of file SKIN.php.

SKIN::$id

Definition at line 30 of file SKIN.php.

Referenced by existsID(), getNameFromId(), and SKIN().

SKIN::$description

Definition at line 31 of file SKIN.php.

SKIN::$contentType

Definition at line 32 of file SKIN.php.

SKIN::$includeMode

Definition at line 33 of file SKIN.php.

Referenced by createNew(), and updateGeneralInfo().

SKIN::$includePrefix

Definition at line 34 of file SKIN.php.

Referenced by createNew(), and updateGeneralInfo().

SKIN::$name

Definition at line 35 of file SKIN.php.

Referenced by createFromName(), createNew(), exists(), getIdFromName(), and updateGeneralInfo().


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