class Parser

The object parser is created by index.php and available in the global variable $p

Constructor

function Parser($comp_n = NULL)

$comp_n: Filename of the called component relative to the cache path

The constructor takes care that the autohander.comp will be processed. Parser is normally created by index.php.

callNext

function callNext()

Return Value: Result of the evaluation of the next component

This function is should only be used in components to switch over to the next component
<html>
<head>
<title>Example Autohandler</title>
</head>
<body>
<& $p->callNext() &>
</body>
</html>

call

function call($comp_n)

$comp_n: Filename of the called component relative to the cache path

Return Value: Result of the evaluation of the next component

Note the by using call no autohandler will be called.
todo example

callMethod

function callMethod($method)

$method: Name of method to call

Return Value: Result of the evaluation of the method or ""

This function searches the hierarchy form bottom to top for the method and executes it.
todo example

start

function start()
This function is called by index.php to start processing of the component hierachically.

fetchComp

function fetchComp($comp_n)

$comp_n: Filename of the called component relative to the cache path

Return Value: Returns the component object given by $comp_n

todo example

rl

function rl($link)

$link: Relative link in autohander

Return Value: Updated relative link rl alters an relative link in an autohandler so that the links remain relative to the autohandler if a component in a deeper directory is called.

$self

$self points to the last component of the hierarchy, the component called from outside. $self is normally used to call method
see Gween Concept

$parent

$parent points to the second last component of the hierarchy.

$thisComp

$thisComp points to the currently prcess component.
Last modified: Tue Nov 12 13:39:04 CET 2002