Location: PHPKode > scripts > QValidation > qvalidation/samples/object.php
<?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, "Test3"));
$valid->chain("Validation_DataType_Object::validateInstanceOf");
print_r($valid);
Return current item: QValidation