PHP Classes

File: samples/object.php

Recommend this page to a friend!
  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: 15 years ago
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);