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: InputField

Source Location: Program_Root/XAO_InputField.php

Class InputField

Class Overview

Collection requirements for a single information item.

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 facilities for building and storing specifications for the input of a single information item. The InputControl class was designed to group InputField objects. While there is no UML class relationship with the InputValidator class, there is indeed a strong relationship between the two. This class is designed for complex applications and is not intended for usage by non-advanced PHP/XML application developers. It also requires sound knowlege of XSLT template design. The InputValidator class is obligated to know how to validate each requirement specifiable by this class. The InputValidator will require these specs to be bassed on using name/value pairs that conform to a particular naming convention. The XSLT template developer is obligated to expand the XAO stnadard XML (in the XAO namespace) to generate the neccesary name/value pairs required by InputValidator. Don't worry, sample XSL files will be provided to give the developer hints on how to construct such templates. Note, that the DomXsl class has been provided for those who want to generate XSL templates at runtime. Note that the display logic is still descrete - you can have multiple display templates using the same input spec.

Located in Program_Root/XAO_InputField.php [line 57]

XaoRoot
   |
   --DomDoc
      |
      --InputField
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   $arrParams  
mixed   $ndName  
mixed   $ndType  
mixed   $ndValue  

[ Top ]
Method Summary
InputField   InputField()  
void   CheckProperty()  
void   CheckRules()  
void   ExtractProperties()  
void   InFldRuleCheckRequiredProperties()  
void   ndSetAtt()  
void   ndSetProperty()  

[ Top ]
Properties
mixed   $arrParams [line 59]

[ Top ]
mixed   $ndName [line 63]

[ Top ]
mixed   $ndType [line 65]

[ Top ]
mixed   $ndValue [line 61]

[ Top ]
Methods
Constructor InputField  [line 67]

  InputField InputField( mixed &$mxdParams, [mixed $strDefault = null]  )



[ Top ]
CheckProperty  [line 158]

  void CheckProperty( mixed $strName  )



[ Top ]
CheckRules  [line 142]

  void CheckRules( )



[ Top ]
ExtractProperties  [line 123]

  void ExtractProperties( )



[ Top ]
InFldRuleCheckRequiredProperties  [line 151]

  void InFldRuleCheckRequiredProperties( )



[ Top ]
ndSetAtt  [line 97]

  void ndSetAtt( mixed $strName, mixed $strVal  )



[ Top ]
ndSetProperty  [line 102]

  void ndSetProperty( mixed $strName, mixed $strValue  )



[ Top ]

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