Class Page

Description

Located in /lib/Page.php (line 16)


	
			
Variable Summary
 string $category
 string $content
 string $description
 string $headnote
 string $id
 string $keywords
 string $language
 array $modules
 array $templates
 string $title
Method Summary
 void createNew (string $id, string $title, string $category, string $content, string $language)
 bool existsInLanguage (string $id, string $lang)
 string getCategoryImage ()
 void getIdByTitle (string $title)
 void getPhotoElement ()
 void getTitleById (string $id)
 void idExists (string $id)
 void load (string $id, mixed $language, string $lang)
 void loadMetaData ()
 array loadModules ()
 array loadTemplates ()
Variables
string $category = '' (line 35)

Category that this page falls under and thus displays the sidelines of

  • access: public
string $content = '' (line 47)

The main portion the page, the page text

  • access: public
string $description = '' (line 59)

Meta-data: Description

  • access: public
string $headnote = '' (line 77)

Any processing notes need for the user to see.

  • access: public
string $id = '' (line 23)

Pages unique id. Shared by all pages that contain the same content regardless of language.

  • access: public
string $keywords = '' (line 53)

Meta-data: Keywords

  • access: public
string $language = '' (line 41)

Natural language of this page.

  • access: public
array $modules = array() (line 71)

Any modules needed to display this page.

  • access: public
array $templates = array() (line 65)

Any special templates applied to this page.

  • access: public
string $title = '' (line 29)

Page display title.

  • access: public
Methods
createNew (line 249)

Adds a new page to the database.

  • static:
  • access: public
void createNew (string $id, string $title, string $category, string $content, string $language)
  • string $id: language neutral identifier
  • string $title: the display title for the page
  • string $category: processing category (for sidebar, etc.)
  • string $content: the important part :)
  • string $language: natural language of content
existsInLanguage (line 317)

Returns true if the page is available in the requested language, false otherwise.

  • static:
  • access: public
bool existsInLanguage (string $id, string $lang)
  • string $id
  • string $lang
getCategoryImage (line 213)

Gets the name of the category symbol from the database.

  • access: public
string getCategoryImage ()
getIdByTitle (line 264)

Retrieves a page_id from the databaes based on the title.

  • static:
  • access: public
void getIdByTitle (string $title)
  • string $title
getPhotoElement (line 228)

Gets the name of the category photo element from the database.

  • access: public
void getPhotoElement ()
getTitleById (line 297)

Returns display title of requsted page by page_id.

  • static:
  • access: public
void getTitleById (string $id)
  • string $id
idExists (line 281)

Returns true if the page exists. false otherise

  • static:
  • access: public
void idExists (string $id)
  • string $id
load (line 87)

Loads from database.

void load (string $id, mixed $language, string $lang)
  • string $id: page_id to load
  • string $lang: language to load in (uses default if not available)
loadMetaData (line 186)

Loads meta data from database.

If no meta data are available, loads default values from the database.

  • access: public
void loadMetaData ()
loadModules (line 149)

Loads modules from the database.

  • access: public
array loadModules ()
loadTemplates (line 120)

Loads all related templates

  • access: public
array loadTemplates ()

Documentation generated on Mon, 25 Oct 2004 15:26:18 -0700 by phpDocumentor 1.3.0RC3