Login   Register  
PHP Classes
elePHPant
Icontem

File: samples/object.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/object.php  >  Download  
File: samples/object.php
Role: Example script
Content type: text/plain
Description: sample object validation instance
Class: QValidation
Validate several types of value
Author: By
Last change: add
Date: 2009-05-14 23:02
Size: 394 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"Test3"));
$valid->chain("Validation_DataType_Object::validateInstanceOf");
print_r($valid);