pclib
3.0.0
Lightweight PHP framework
|
Parse pclib template with pclib-elements code. More...
Public Member Functions | |
parse ($templateStr) | |
Parse template. More... | |
parseLine ($line) | |
Parse element definition line and return $element array. More... | |
Public Member Functions inherited from BaseObject | |
loadDefaults ($className=null) | |
Load default parameters of class $className into object instance. | |
setProperties (array $defaults) | |
Set public properties of object from the array. More... | |
toArray () | |
Convert object to array. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from BaseObject | |
static | defaults () |
Set or retireve default parameters of the object. More... | |
Data Fields inherited from BaseObject | |
$serviceLocator | |
var function() Return service object when requested with service(). | |
Protected Member Functions inherited from BaseObject | |
service ($service, $default=null) | |
Try acquire $service and load it into property $this->$service. More... | |
Parse pclib template with pclib-elements code.
Example: $parsed = $parser->parse($templateStr);
parse | ( | $templateStr | ) |
Parse template.
string | $templateStr | Template source code |
parseLine | ( | $line | ) |
Parse element definition line and return $element array.
string | $line | pclib-element line - example: "input EMAIL required" |