It's just XML which invokes tag handling classes as it's parsed. For example:
Code: Select all
<mytag:foo thing="bar" />Code: Select all
class FooTag extends SomeAbstractTag {
protected $thing;
public function setThing($thing) {
$this->thing = $thing;
}
public function getThing() {
return $this->thing;
}
public function doStartTag() {
echo "Tag encounted with thing=" . $this->getThing();
}
public function doEndTag() {
echo "Tag closed";
}
}