cvs: pear /HTML_OOH_Form/container form_container_userint.php

From: Date: Tue, 20 Nov 2001 01:08:06 +0000
Subject: cvs: pear /HTML_OOH_Form/container form_container_userint.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1374@lists.php.net to get a copy of this message
uw Mon Nov 19 20:08:06 2001 EDT Added files: /pear/HTML_OOH_Form/container form_container_userint.php Log: some logic to handle integers entered by a user, means 1.000 => 1000 Index: pear/HTML_OOH_Form/container/form_container_userint.php +++ pear/HTML_OOH_Form/container/form_container_userint.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_userint.php,v 1.1 2001/11/20 01:08:06 uw Exp $ require_once('HTML_OOH_Form/container/form_container_usernumber.php'); /** * Floating point numbers entered by humans * * Note: this one does not reformat (encode/decode) weird user input. * * @package HTML_OOH_Form * @version $Id: form_container_userint.php,v 1.1 2001/11/20 01:08:06 uw Exp $ */ class form_container_userint extends form_container_usernumber { var $precision = 0; function decode($value) { return (int)parent::decode($value); } // end func decode } // end class form_container_userint ?>

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