ExampleNode
Appearance
A typical example of a node file looks like this:
<?php
class employee extends atkNode
{
function employee()
{
$this->atkNode("employee");
$this->add(new atkAttribute("id", AF_AUTOKEY));
$this->add(new atkAttribute("firstname"));
$this->add(new atkAttribute("lastname", AF_SEARCHABLE|AF_OBLIGATORY));
$this->add(new atkDateAttribute("hiredate"));
$this->setTable("employee");
}
}
?>
Original Poster: Ivo