constructor __construct [line 21]
Page __construct(
Application
$oParentApp, [DOMNode
$oPageNode = NULL])
|
|
Construct a new page object
Parameters:
method addComponent [line 918]
Adds an existing component to this page's XML
Tags:
Parameters:
method createCopyOfComponent [line 442]
void createCopyOfComponent(
mixed
$oOriginalComponent, mixed
$sCopyComponentId, mixed
$bCopyOnSamePage)
|
|
Tags:
method createNewComponent [line 417]
Component createNewComponent(
string
$sType, string
$sId, [integer
$iX = 0], [integer
$iY = 0], [integer
$iZ = 0])
|
|
Creates a new component of a given type and adds the XML node for same component under this page
Tags:
Parameters:
method deleteCodePage [line 876]
Deletes the corresponding code file that had been automatically created
This function is used to "clean up" when pages are deleted or renamed
Tags:
method generateCode [line 888]
Generates a file containing the code to implement the page behavior
Tags:
method getAccessRestriction [line 106]
string getAccessRestriction(
)
|
|
Returns the access restrictions for this page
Tags:
method getActivePageId [line 399]
string getActivePageId(
)
|
|
Returns the id of the currently selected page or the "virtual" "global" page
Tags:
method getCodeForPageComponents [line 730]
string getCodeForPageComponents(
)
|
|
Creates the HTML/Javascript/PHP code necessary to implement the components' functionality
Tags:
method getCodeForPageProperties [line 552]
string getCodeForPageProperties(
)
|
|
Returns the code for page header, includes all the page properties i.e. background color, script file
This checks if any of the components on the page need to put any code before the HTML tag and appends all the code and puts it before the HTML tag. It checks if there are any form elements on the page. If so it adds a form tag in the page. If the page was opened in edit mode then it adds a hidden field "editMode" so that on submitting from this form the edit mode is passed on to another page as well. TODO: should we add the hidden editMode input field always, or only when we have a form element in the page.
Tags:
method getCodePageFilePath [line 865]
string getCodePageFilePath(
)
|
|
Returns the full file path of the page that is automatically generated
Tags:
method getCodePageName [line 835]
string getCodePageName(
)
|
|
Returns the file name of the page that is automatically generated
Tags:
method getCodePageNameById [line 845]
string getCodePageNameById(
string
$sPageId)
|
|
Returns the file name of the page that is automatically generated for a particular page
Tags:
Parameters:
method getCodePageUrl [line 855]
Returns the full web path of the page that is automatically generated
Tags:
method getComponentMaxZ [line 208]
Returns the maximum z value currently used by any component
Tags:
method getComponents [line 174]
Returns an array of all Component objects that comprise the page
Tags:
method getComponentsByType [line 229]
array getComponentsByType(
string
$sType)
|
|
Returns an array of all Component objects that comprise the page and are of a given type
Tags:
Parameters:
method getDbSaveFields [line 275]
Returns the list of components to be saved into the database as defined by the user. As in:
<saveValue dbFieldName="" /> Currently the XML stores a blank if the inputText field is not to be saved in the database. This function is duplicated on the application level as well. It makes more sense ther since we are always interested in the application. We remove this function later if no need arises.
Tags:
method getDom [line 40]
Returns a reference to the DOMDocument representing the application
Tags:
method getGlobalAndLocalComponents [line 249]
array getGlobalAndLocalComponents(
)
|
|
Returns an array containing references to all the components within the page and also all globally defined components
Tags:
method getId [line 78]
Returns the id as it is in XML node, if the page exists.
Tags:
method getMouseCaptureCode [line 823]
string getMouseCaptureCode(
)
|
|
Returns the piece of code to get the mouse location. This is accomplished through a javascript file, mousecapture.js TODO: This function is not called when in run mode.
Tags:
method getNumComponents [line 191]
Returns the number of components that comprise the page
Tags:
method getParentApp [line 31]
Returns the parent Application of this page
Tags:
method getPropertyNodeByType [line 515]
DOMNode getPropertyNodeByType(
string
$sPropertyType)
|
|
Gets an XML node for a given property, by searching for the property under the given page in the XML.
Tags:
Parameters:
method getValueForProperty [line 533]
string getValueForProperty(
string
$sPropertyType)
|
|
Gets value for a given property, by searching for the property under the given page in the XML.
Tags:
Parameters:
method getXmlNode [line 49]
Returns the XML node for the page.
Tags:
method handlePropertiesUi [line 472]
void handlePropertiesUi(
)
|
|
Responds to user input from the edit page screen, sets the background color of the page to be the new color if specified.
Tags:
method hasAnyComponents [line 302]
If the page exists, then it checks in the XML node for the page whether it has any components or not if so it returns true else false.
Tags:
method hasAnyFormElements [line 318]
bool hasAnyFormElements(
)
|
|
If the page exists, then it checks in the XML node for the page whether it has any form components i.e. input text and/or button. or not. if so it returns true else false.
Tags:
method isActive [line 380]
Checks to see is $_SESSION['pageId'] is set to the id of this page
Tags:
method isAnyActive [line 390]
Checks to see if any page is currently set as active
Tags:
method isHomePage [line 134]
Checks if this page is set as homepage for the current application, by reading the attribute isHomePage from the XML file.
$return string "1", if this page is a home page, otherwise "0"
Tags:
method saveToXml [line 481]
saves temporary values from "edit page" screen to XML
Tags:
method setAccessRestriction [line 122]
void setAccessRestriction(
string
$sAccessRestriction)
|
|
Sets the access restrictions for this page
Tags:
Parameters:
method setActive [line 351]
Sets this page as the active page by setting $_SESSION['pageId'] to the id of this page and if the active page is not yet generated it generates the code for the same too.
Tags:
method setActiveGlobal [line 364]
Sets the global page as the active page
Tags:
method setAsHomePage [line 148]
Sets the current page as the home page for the application by adding the attribute isHomePage="1"
and re-generating the index.php in the application's root folder to redirect to the homepage
Tags:
method setId [line 88]
void setId(
string
$sPageId)
|
|
Sets the id in the XML node, if the page exists.
Tags:
Parameters:
method unsetActive [line 371]
unsets the active page
Tags:
method unsetAsHomePage [line 163]
Unsets the current page as the home page for the application by removing the attribute isHomePage
Tags: