class Static_IsExistingNodeValidator extends AgaviValidator
{
public function validate()
{
$m = $this->getContext()->getModel('Pages', 'Static');
$url = $this->getData($this->getArgument());
if ($page = $m->retrievePageByUrl($url))
{
#print_r($page);
$this->export($page, 'page');
# $this->export(array('Fu','Bars'), 'page');
return true;
}
return false;
}
}