Location: PHPKode > scripts > QValidation > qvalidation/samples/rule.php
<?php 
include_once("config.inc.php");
include_once(PLUGINDIR.DS."Validation".DS."DataType".DS."index.php");
include_once(PLUGINDIR.DS."Validation".DS."Rule".DS."index.php");

$rule = new Validation_Rule_ISBN("3827370191");
if($rule->firstLevel()->secondLevel()->isValid()) {
	echo "succeed";
} else {
	echo "failure";
}


if(Validation_Rule_ISBN::getInstance("3827370192")->firstLevel()->secondLevel()->isValid()) {
	echo "succeed";
} else {
	echo "failure";
}


print_r($rule);
Return current item: QValidation