Documentation is available at WECNonZeroRegex.class.php
- <?php
- /**
- * @since Jul 23, 2005
- * @package polyphony.wizard.errorchecking
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: WECNonZeroRegex.class.php,v 1.3 2007/09/19 14:04:52 adamfranco Exp $
- */
- require_once(POLYPHONY."/main/library/Wizard/ErrorCheckingRules/WECRegex.class.php");
- /**
- * Allows for regular expression javascript error checking.
- *
- * @since Jul 23, 2005
- * @package polyphony.wizard.errorchecking
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: WECNonZeroRegex.class.php,v 1.3 2007/09/19 14:04:52 adamfranco Exp $
- */
- class WECNonZeroRegex
- extends WECRegex
- {
- /**
- * Returns true if the passed {@link WizardComponent} validates against this rule.
- * @param ref object $component
- * @access public
- * @return boolean
- */
- function checkValue ($component) {
- $value = $component->getAllValues();
- if (!strval($value)) return false;
- return parent::checkValue($component);
- }
- }
- ?>
Documentation generated on Wed, 19 Sep 2007 10:27:56 -0400 by phpDocumentor 1.3.0RC3