[Pieforms-commit] SF.net SVN: pieforms: [27] pieforms/src/pieform/rules/minlength.php
Status: Alpha
Brought to you by:
oracleshinoda
From: <ora...@us...> - 2006-11-18 12:30:21
|
Revision: 27 http://svn.sourceforge.net/pieforms/?rev=27&view=rev Author: oracleshinoda Date: 2006-11-18 04:30:17 -0800 (Sat, 18 Nov 2006) Log Message: ----------- Fixed the minlength rule Modified Paths: -------------- pieforms/src/pieform/rules/minlength.php Modified: pieforms/src/pieform/rules/minlength.php =================================================================== --- pieforms/src/pieform/rules/minlength.php 2006-11-18 12:26:16 UTC (rev 26) +++ pieforms/src/pieform/rules/minlength.php 2006-11-18 12:30:17 UTC (rev 27) @@ -1,6 +1,6 @@ <?php /** - * This program is part of Mahara + * This program is part of Pieforms * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,26 +16,24 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - * @package mahara - * @subpackage form-rule + * @package pieform + * @subpackage rule * @author Nigel McNie <ni...@ca...> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz + * @copyright (C) 2006 Catalyst IT Ltd http://catalyst.net.nz * */ -defined('INTERNAL') || die(); - /** * Checks whether the given value is shorter than the allowed length. * - * @param Form $form The form the rule is being applied to - * @param string $value The value to check - * @param array $element The element to check - * @param int $minlength The length to check for - * @return string The error message, if the value is invalid. + * @param PieForm $form The form the rule is being applied to + * @param string $value The value to check + * @param array $element The element to check + * @param int $minlength The length to check for + * @return string The error message, if the value is invalid. */ -function form_rule_minlength(Form $form, $value, $element, $minlength) { +function pieform_rule_minlength(Pieform $form, $value, $element, $minlength) { if (strlen($value) < $minlength) { return sprintf($form->i18n('minlength'), $minlength); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |