STPHPObject | --STPHPApplication
Located in File: Program_Root/stphpapplication.php
stphplib
Roberto Gerola <roberto.gerola@speedtech.it>
0.8
Class Variable Summary |
$author
The author of the application Default Value:
|
$copyright
The copyright of the application Default Value:
|
$language
The language of the application Default Value:
|
$locale
The localization object Default Value:
|
$localeBasePath
The localization base path Default Value:
|
$localeDefaultLanguage
The localization default language Default Value:
|
$localeKeyLanguage
The localization key language Default Value:
|
$localizationActive
The status of the localization support Default Value:
|
$sess_id
The sessions id of the application Default Value:
|
$theme
The theme of the application Default Value:
|
$title
The title of the application Default Value:
|
$version
The version of the application Default Value:
|
$wndMain
The pointer to the main window Default Value:
|
Inherited Class Variable Summary | ||||||
Inherited From Class STPHPObject
|
Inherited Method Summary | ||||||||||
Inherited From Class STPHPObject
|
Method Summary |
STPHPApplication constructor STPHPApplication ( $name )
Creates the object |
void activateLocalization ( )
Activate the localization support |
void deactivateLocalization ( )
Deactivate the localization support |
void dtor ( )
Destructor |
string getAuthor ( )
Gets the author of the application |
string getCopyright ( )
Gets the copyright of the application |
string getLanguage ( )
Gets the language of the application |
string getLocaleKeyLanguage ( )
Gets the language of the keys localization file |
string getLocaleText ( $text )
Return a translated string |
void getSessionVariable ( $variable )
Sets a variable in the session |
string getTheme ( )
Gets the theme of the application |
string getTitle ( )
Gets the title of the application |
string getVersion ( )
Gets the version of the application |
void init ( [$compress = TRUE] )
Starts the application |
bool localizationIsActive ( )
Returns if the localization support is active |
void setAuthor ( $value )
Sets the author of the application |
void setCopyright ( $value )
Sets the copyright of the application |
void setLanguage ( $value )
Sets the language of the application |
void setLocaleBasePath ( $localeBasePath )
Sets the base path for the localization files |
void setLocaleDefaultLanguage ( $localeDefaultLanguage )
Sets the default language for the application |
void setLocaleKeyLanguage ( $localeKeyLanguage )
Sets the language of the keys localization files |
void setSessionVariable ( $variable, $value )
Sets a variable in the session |
void setTheme ( $value )
Sets the theme of the application |
void setTitle ( $value )
Sets the title of the application |
void setVersion ( $value )
Sets the version of the application |
void setWndMain ( &$window )
Sets the main window of the application |
Variable Detail |
private
private
private
private
private
private
private
private
private
private
private
private
private
Method Detail |
STPHPApplication constructor STPHPApplication ( $name )
Creates the object- string $name:
public
void activateLocalization ( )
Activate the localization supportpublic
void deactivateLocalization ( )
Deactivate the localization supportpublic
void dtor ( )
Overrides: STPHPObject::dtor()
DestructorDestroys all the resources associated with the object
public
string getAuthor ( )
Gets the author of the applicationThe author
public
string getCopyright ( )
Gets the copyright of the applicationThe copyright
public
string getLanguage ( )
Gets the language of the applicationThe language
public
string getLocaleKeyLanguage ( )
Gets the language of the keys localization fileThe key language
public
string getLocaleText ( $text )
Return a translated string- string $text: The text to translate
The translated value
public
void getSessionVariable ( $variable )
Sets a variable in the session- string $variable: The variable name to set
- string $value: The variable value to set
public
string getTheme ( )
Gets the theme of the applicationThe theme
public
string getTitle ( )
Gets the title of the applicationThe title
public
string getVersion ( )
Gets the version of the applicationThe version
public
void init ( [$compress = TRUE] )
Starts the application- bool $compress: TRUE if the output must be compressed (new line and tab characters removed)
public
bool localizationIsActive ( )
Returns if the localization support is activepublic
void setAuthor ( $value )
Sets the author of the application- string $value: The author
public
void setCopyright ( $value )
Sets the copyright of the application- string $value: The copyright
public
void setLanguage ( $value )
Sets the language of the application- string $value: The language
public
void setLocaleBasePath ( $localeBasePath )
Sets the base path for the localization files- string $localeBasePath: The base path
public
void setLocaleDefaultLanguage ( $localeDefaultLanguage )
Sets the default language for the application- string $localeDefaultLanguage: The default language
public
void setLocaleKeyLanguage ( $localeKeyLanguage )
Sets the language of the keys localization files- string $value: The theme
public
void setSessionVariable ( $variable, $value )
Sets a variable in the session- string $variable: The variable name to set
- string $value: The variable value to set
public
void setTheme ( $value )
Sets the theme of the application- string $value: The theme
public
void setTitle ( $value )
Sets the title of the application- string $value: The title
public
void setVersion ( $value )
Sets the version of the application- string $value: The version
public
void setWndMain ( &$window )
Sets the main window of the application- STPHPWindow &$window: The pointer to the main window
public