<?php
class Test3{}
class TestO extends Test3{
public function render(){
return "sdsd";
}
}
include_once("config.inc.php");
include_once(PLUGINDIR.DS."Validation".DS."DataType".DS."index.php");
$valid = Validation_DataType_Object::getInstance();
$valid->setValue(array(new TestO, "render"));
$valid->chain("Validation_DataType_Object::validateCallback");
print_r($valid);
|