Login   Register  
PHP Classes
elePHPant
Icontem

File: samples/object2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QValidation  >  samples/object2.php  >  Download  
File: samples/object2.php
Role: Example script
Content type: text/plain
Description: sample object validation callable
Class: QValidation
Validate several types of value
Author: By
Last change: add
Date: 2009-05-14 23:02
Size: 389 bytes
 

Contents

Class file image Download
<?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);