|
wCMF
3.6
|
Public Member Functions | |
| NodeProcessor ($callback, $params=array(), $obj=null) | |
| run (&$node, $recursive=false) | |
Public Attributes | |
| $_obj | |
| $_callback | |
| $_params | |
NodeProcessor is used to iterate over all values of a Node and apply a given callback function.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Definition at line 28 of file class.NodeProcessor.php.
| NodeProcessor::NodeProcessor | ( | $callback, | |
$params = array(), |
|||
$obj = null |
|||
| ) |
Constructor.
| callback | The callback function to apply on Node values. |
| params | An array of paramters to pass to the callback (default: none). |
| obj | A reference to the object that defines the callback. If null the callback must be a global function (default: null). |
usage example:
Definition at line 60 of file class.NodeProcessor.php.
| NodeProcessor::run | ( | & | $node, |
$recursive = false |
|||
| ) |
Run the processor.
| node | The Node to start from. |
| recursive | True/False wether to process child Nodes or not (default: false). |
Definition at line 71 of file class.NodeProcessor.php.
References $_params.
| NodeProcessor::$_obj |
Definition at line 30 of file class.NodeProcessor.php.
| NodeProcessor::$_callback |
Definition at line 31 of file class.NodeProcessor.php.
| NodeProcessor::$_params |
Definition at line 32 of file class.NodeProcessor.php.
Referenced by run().