Nexista_FlowThis class Nexista_handles I/O between sitemap nodes (files) and will output an xml tree at the end if requested by the XSLT handler.
One of the core features of Nexista is the Flow concept. Flow represents the wiring so to speak of the application. It controls all data i/o from scripts, databases, get/post, etc... And allows for a unified interface to all these variables as well as permits "smart" access to the data. Flow data is eventually used to generate XML which can be used in subsequent XSL transformations.
Flow data handling is transparent to the developer. The only necessary thing to understand is how to call Flow variables and what data can be accessed in this manner.
The flow class Nexista_is an extension of the "PHP5 and thus provides all the standard XML functionality as well as a few additional methods.
At startup, Flow is initialized with a number of special variables. This data is user writeable so actions and other modifiers can be used. By default, Flow imports these variables as they are. A user specified handler function can be called to control the import process - see Flow::registerImportHandler in API docs.
_get
Located in /kernel/flow.php (line 69)
string
$array_type
(line 105)
Array type
DOMDocument
$flowDocument
(line 88)
Flow DOM document object
DOMElement
$root
(line 97)
Flow DOM document root node
string
$xmlStream
(line 130)
Main xml output data container.
stream data holder. Is an xml string that will be eventually outputed to any xml receiving module such as a xsl transformer. This is the only source of display content. Some modules such as raw xml files, will output direclty to stream, while others, such as script modules, will merge all their dynamic data at the end to stream using write()
static add (line 421)
Creates and appends one or more children elements
This method is a shortcut to the createElement, appendChild sequence and can also accept associative arrays of any depth
There are a few ways to call this method:
Note that multi level arrays can be used.
static delete (line 292)
Deletes a flow variable and all its content
static find (line 219)
Finds a flow var using an xpath query
static get (line 242)
Returns the value of a flow variable
If the value of a variable is CDATA, it will return this. If the variable contains children nodes, it will return a recursive array
static getByPath (line 316)
Returns the value of a flow variable(s) given an xpath query
This is a wrapper for a joined find/get item query. If multiple items are found, it will only return the first one
static registerImportHandler (line 484)
Registers a function to be called on init
This function will be called when Flow inits and imports things such as the $_GET, $_POST datasets. This permits the developer to perform actions before assignement to flow such as stripping tags, etc... This method will be given an array and needs to return an array.
static singleton (line 371)
Returns a class Nexista_singleton.
getXmlStream (line 359)
Returns stream data
init (line 138)
Initialize flow with basic data (request,session)
outputXml (line 388)
Outputs flow as xml
writeXmlStream (line 347)
Writes string to stream
Documentation generated on Tue, 11 Mar 2008 23:23:01 -0400 for Nexista 0.2.0