Class STPHPWindow

STPHPObject
   |
   --STPHPComponent
      |
      --STPHPWindow

Classes extended from STPHPWindow:

Located in File: Program_Root/stphpwindow.php


The class that represents a window


Class Variable Summary
$codeFiles
The list of code files (JavaScript code)
Default Value: -><-
$cssFiles
The list of CSS files
Default Value: -><-
$metaRows
The list of META tag
Default Value: -><-

Inherited Class Variable Summary
Inherited From Class STPHPComponent
Variable Default Value Description
$attributes -><- The list of attributes
$components -><- The list of components
$configuration -><- The pointer to configuration XML node
$formParent -><- The form owner name
Inherited From Class STPHPObject
Variable Default Value Description
$name -><- The name of the object

Inherited Method Summary
Inherited From Class STPHPComponent
Function Description
constructor STPHPComponent ( [$name = ] ) Creates the object
addCodeFile ( $file ) Adds a code file (Javascript)
addComponent ( &$component ) Adds a component at the end of the components list
addCssFile ( $file ) Adds a CSS file
addVSpace ( $units ) Adds vertical spaces
appendAttributes ( $attributes ) Appends an array of attributes at the current values
appendComponent ( &$component ) Appends a component at the end of the components list
attributeIsEmpty ( $key ) Returns if attribute is empty
dtor ( ) Destructor
getAttribute ( $key ) Gets the value of an attribute
getFormParent ( ) Returns the form owner name
getTranslatedAttribute ( $key ) Translate an attribute to the current language
insertComponent ( &$component ) Inserts a component at the beginning of the components list
setAttribute ( $key, $val ) Sets an attribute
setConfiguration ( &$configuration ) Load the attributes from a STPHPXMLElement object
setFormParent ( $form ) Sets the form owner name of the component (used by JS functions)
translateAttribute ( $key ) Set an attribute to its translated value
write ( ) Designs the object at runtime
Inherited From Class STPHPObject
Function Description
constructor STPHPObject ( [$name = ] ) Creates the object
dtor ( ) Destructor
errorLog ( $message ) Print an error to the log system
getName ( ) Returns the name of the object

Method Summary
STPHPWindow constructor STPHPWindow ( $name )
Creates the object
void addCodeFile ( $codeFile )
Add a code file
void addCssFile ( $cssFile )
Add a CSS file
void addMetaRow ( $metaRow )
Add a META tag
void dtor ( )
Destructor
array getCodeFiles ( )
Returns the array of codes files
array getCssFiles ( )
Returns the array of CSS files
string write ( )
Designs the object at runtime
Variable Detail

$codeFiles

Data type: array
The list of code files (JavaScript code)


$cssFiles

Data type: array
The list of CSS files


$metaRows

Data type: array
The list of META tag



Method Detail

constructor STPHPWindow

STPHPWindow constructor STPHPWindow ( $name )

Creates the object

Function Parameters:
- string $name:
Function Info:
Access - public

addCodeFile

void addCodeFile ( $codeFile )

Overrides: STPHPComponent::addCodeFile()

Add a code file

Function Parameters:
- string $codeFile: The code file name to add
Function Info:
Access - public

addCssFile

void addCssFile ( $cssFile )

Overrides: STPHPComponent::addCssFile()

Add a CSS file

Function Parameters:
- string $cssFile: The CSS file name to add
Function Info:
Access - public

addMetaRow

void addMetaRow ( $metaRow )

Add a META tag

Function Parameters:
- string $metaRow: The meta row to add
Function Info:
Access - public

dtor

void dtor ( )

Overrides: STPHPComponent::dtor()

Destructor
Destroys all the resources associated with the object
Function Parameters:
Function Info:
Access - public

getCodeFiles

array getCodeFiles ( )

Returns the array of codes files

Function Parameters:
Function Info:
Access - public

getCssFiles

array getCssFiles ( )

Returns the array of CSS files

Function Parameters:
Function Info:
Access - public

write

string write ( )

Overrides: STPHPComponent::write()

Designs the object at runtime
Available attributes :
- VISIBLE : defines if the component must be designed or not
- CLASS : defines the CSS class
Function Parameters:
Function Info:
Return - the code that represents the object at runtime
Access - private