Documentation automatically generated from the source-code using phpDocumentor.
Official Homepage: xao-php.sourceforge.net
XAO
Official homepage | API home | class tree: XAO | index: XAO | all elements

Class: InputControl

Source Location: Program_Root/XAO_InputControl.php

Class InputControl

Class Overview

Collection for grouping InputFields and other InputControls.

WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING DO NOT ATTEMPT TO USE THIS CLASS. IT IS A WORK IN PROGRESS. IT IS VAPOURWARE. IT PROBABLY HAS NOT EVEN BEEN THROUGH THE INTERPRETER/PARSER YET. IT WILL NOT WORK. THE DESIGN WILL CHANGE. THERE'S STILL MUCH WORK TO BE DONE. LEAVE IT. This class provides a standard API for specifying GUI controls for user-input. Naturally the XSLT templates will be responsible for implementing them but the server (this class) is responsible for the input requirements (the spec). Input controls should be able to "consume" other input controls. The leaves of this tree are the InputFields themselves. InputControls will be categoriesed into "types" according to their meaning/context. For instnace, the most common type will be a "form". This type will be obligated to include information such as uriProc, strMethod, strContentType, strEncoding. Each type will have an initialisation method. Developers wishing to add new types of controls simply inherit this class and add new initialisation methods (or override existing ones to modify them). As with individual InputFields, an InputControl may specify it's own requirements that are subject to validation. For instance, a control may say that if Field1 is not filled in, then Field2 is compulsory.

Located in Program_Root/XAO_InputControl.php [line 59]

XaoRoot
   |
   --DomDoc
      |
      --InputControl
Author(s):
  • Terence Kearns
Information Tags:
Link:  http://xao-php.sourceforge.net
License:  LGPL
Copyright:  Terence Kearns 2003
Version:  0.2

Properties

Methods

[ Top ]
Inherited Properties and Methods
Inherited Properties Inherited Methods

Inherited From DomDoc

DomDoc::$ndErr
DomDoc::$ndRoot
DomDoc::$objDoc
DomDoc::$objErr

Inherited From XaoRoot

XaoRoot::$arrCacheParams
XaoRoot::$fncErrCallbackFunc
XaoRoot::$idXaoNamespace
XaoRoot::$strDebugData
XaoRoot::$strError
XaoRoot::$strXaoNamespacePrefix

Inherited From DomDoc

DomDoc::DomDoc()
Constructor method
DomDoc::Arr2Atts()
Turn an associative array into attributes
DomDoc::arrNdXPath()
Return a list of nodes resulting from an XPath Query
DomDoc::blnTestElementNode()
Test if the supplied node is on object of type "domelement"
DomDoc::blnTestXmlName()
Do a reliable test for a valid element name
DomDoc::CommitToFile()
mass storage serialisation
DomDoc::ConsumeDocData()
Import well-balenced XML data to append below $this->ndRoot
DomDoc::ndAppendToNode()
quickly add a new element under an exising element node.
DomDoc::ndAppendToRoot()
quickly add a new element under the root element.
DomDoc::ndConsumeDoc()
Import a foreign PHP DOM XML document and append it below $this->ndRoot
DomDoc::ndConsumeFile()
Import an XML document from a file and append it below $this->ndRoot
DomDoc::ndConsumeFragData()
Import well-balenced XML data to append below $this->ndRoot
DomDoc::ndGetOneEl()
fetch a single element node by name
DomDoc::ndImportChildFrag()
Import a fragment from a foreign PHP DOM XML document
DomDoc::ProcessCustomTags()
Process all nodes (domelements) due for processing.
DomDoc::SetCustomTagName()
Have all elements of a specified name processed by a call-back function.
DomDoc::SetCustomTagQuery()
Use an XPath to nominate nodes for processing by a call-back function.
DomDoc::Throw()
Base error logger
DomDoc::xmlGetDoc()
Serialise and return the entire document object as stand-alone XML.
DomDoc::xmlGetFrag()
Serialise and return the entire document as an XML fragment.

Inherited From XaoRoot

XaoRoot::arrSetErrFnc()
XaoRoot::blnTestSafeName()
XaoRoot::Throw()
Generic/default error handler.

[ Top ]
Property Summary
mixed   $ndFields  

[ Top ]
Method Summary
InputControl   InputControl()  
void   ndAddField()  

[ Top ]
Methods
Constructor InputControl  [line 63]

  InputControl InputControl( mixed $strName, mixed $strType, mixed $arrParams  )



[ Top ]
ndAddField  [line 73]

  void ndAddField( mixed $arrParams  )



[ Top ]

Documentation generated on Tue, 23 Sep 2003 18:34:03 +1000 by phpDocumentor 1.2.2