cvs: pear /HTML_OOH_Form/container form_container_string.php

From: Date: Tue, 20 Nov 2001 01:04:46 +0000
Subject: cvs: pear /HTML_OOH_Form/container form_container_string.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1369@lists.php.net to get a copy of this message
uw Mon Nov 19 20:04:46 2001 EDT Added files: /pear/HTML_OOH_Form/container form_container_string.php Log: String container (regexp + lenght validation) without any reformatting Index: pear/HTML_OOH_Form/container/form_container_string.php +++ pear/HTML_OOH_Form/container/form_container_string.php <?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP version 4.0 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // // $Id: form_container_string.php,v 1.1 2001/11/20 01:04:46 uw Exp $ require_once('HTML_OOH_Form/container/form_container.php'); /** * Plain string input field without encoding/decoding * * @package HTML_OOH_Form * @version $Id: form_container_string.php,v 1.1 2001/11/20 01:04:46 uw Exp $ */ class form_container_string extends form_container { var $allowed_slots = array( 'value' => 'mixed', 'minlength' => 'string', 'maxlength' => 'string', 'length_e' => 'string', 'valid_regex' => 'string', 'valid_icase' => 'boolean', 'valid_global' => 'boolean', 'valid_e' => 'string' ); /** * Returns the result of the (serverside) validation. * * @return string Error message if there is an error * @access public * @see validateLength(), validateRegEx(), doValidation() * @abstract */ function validate() { return $this->validateLength() . $this->validateRegEx(); } // end func validate } // end class form_container_string ?>

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