[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
ChoiceFormat class file. This program is free software; you can redistribute it and/or modify it under the terms of the BSD License.
Author: | Wei Zhuo |
Version: | $Revision: 1.1 $ $Date: 2005/01/11 07:19:39 $ |
Poids: | 186 lignes (5 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
ChoiceFormat:: (4 méthodes):
__construct()
isValid()
parse()
format()
Classe: ChoiceFormat - X-Ref
ChoiceFormat class.__construct() X-Ref |
Constructor. |
isValid($number, $set) X-Ref |
Determine if the given number belongs to a given set param: float the number to test. param: string the set, in set notation. return: boolean true if number is in the set, false otherwise. |
parse($string) X-Ref |
Parse a choice string and get a list of sets and a list of strings corresponding to the sets. param: string the string containing the choices return: array array($sets, $strings) |
format($string, $number) X-Ref |
For the choice string, and a number, find and return the string that satisfied the set within the choices. param: string the choices string. param: float the number to test. return: string the choosen string. |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |