cvs: pear /MDB2_Schema/MDB2/Schema Validate.php

From: Date: Sun, 20 Aug 2006 12:11:07 +0000
Subject: cvs: pear /MDB2_Schema/MDB2/Schema Validate.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41761@lists.php.net to get a copy of this message
ifeghali Sun Aug 20 12:11:07 2006 UTC Modified files: /pear/MDB2_Schema/MDB2/Schema Validate.php Log: - validateSequence() commented - added fold markers for properties, constructor and raiseError() http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/MDB2/Schema/Validate.php?r1=1.13&r2=1.14&diff_format=u Index: pear/MDB2_Schema/MDB2/Schema/Validate.php diff -u pear/MDB2_Schema/MDB2/Schema/Validate.php:1.13 pear/MDB2_Schema/MDB2/Schema/Validate.php:1.14 --- pear/MDB2_Schema/MDB2/Schema/Validate.php:1.13 Sun Aug 20 06:28:57 2006 +++ pear/MDB2_Schema/MDB2/Schema/Validate.php Sun Aug 20 12:11:07 2006 @@ -43,7 +43,7 @@ // | Author: Igor Feghali <ifeghali@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Validate.php,v 1.13 2006/08/20 06:28:57 lsmith Exp $ +// $Id: Validate.php,v 1.14 2006/08/20 12:11:07 ifeghali Exp $ // /** @@ -56,10 +56,15 @@ */ class MDB2_Schema_Validate { + // {{{ properties + var $fail_on_invalid_names = true; var $valid_types = array(); var $force_defaults = true; + // }}} + // {{{ constructor + function __construct($fail_on_invalid_names = true, $valid_types = array(), $force_defaults = true) { if (is_array($fail_on_invalid_names)) { @@ -74,12 +79,16 @@ $this->force_defaults = $force_defaults; } + // }}} + // {{{ raiseError() + function &raiseError($ecode, $msg = null) { $error =& MDB2_Schema::raiseError($ecode, null, null, $msg); return $error; } + // }}} // {{{ isBoolean() /** @@ -415,6 +424,21 @@ // }}} // {{{ validateSequence() + /** + * Checks whether the definition of a parsed sequence is valid. Modify + * sequence definition when necessary. If sequence is Ok push it onto array + * of sequences of current database. + * + * @param array multi dimensional array that contains the + * sequences of current database. + * @param array multi dimensional array that contains the + * structure of the parsed sequence. + * @param string name of the parsed sequence + * + * @return bool|error object + * + * @access public + */ function validateSequence(&$sequences, &$sequence, $sequence_name) { if (!$sequence_name) {

« previous php.pear.cvs (#41761) next »