Login |  Register 
Your PHP skills tool showed me were I needed to improve and how to do it!
Tom
 

RocksPage Class

Description

This is an abstract class that contains all the basics for a page.

  • author: Dominic Skinner
  • version: 0.2.1
  • abstract:

Located in /RocksPage.php (line 14)



	
			
Method Summary
RocksPage __construct ([string $templateFileName = null], [string $configFileName = null])
void __destruct ()
void AssignTemplateVariable (string $varName, string $varValue, [string $defaultValue = null])
void Database ()
void Form ()
void Session ()
Methods
Constructor __construct (line 28)

This creates the page

  • access: public
RocksPage __construct ([string $templateFileName = null], [string $configFileName = null])
  • string $templateFileName: this is the name of the template file
  • string $configFileName: this is the configFileName if this is null then the default is used
Destructor __destruct (line 34)
void __destruct ()
AssignTemplateVariable (line 96)

This allows class inheriting from this to add a variable to the template

  • access: protected
void AssignTemplateVariable (string $varName, string $varValue, [string $defaultValue = null])
  • string $varName: the name of the variable to add
  • string $varValue: the value of the variable to add
  • string $defaultValue: the default value of the variable to add, it is null be default
Database (line 52)

This allows class inheriting from this to have access to the database object

  • access: protected
void Database ()
Form (line 69)

This allows class inheriting from this to have access to the pages form

  • access: protected
void Form ()
Session (line 81)

This allows class inheriting from this to have access to the session

  • access: protected
void Session ()

No comments have been provided.
security image

Written by Dominic Skinner
Last Updated: 2011-10-25 16:00:38