[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
sfChoiceFormat 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: | $Id: sfChoiceFormat.class.php 3148 2007-01-04 19:34:28Z fabien $ |
Poids: | 217 lignes (6 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
sfChoiceFormat:: (4 méthodes):
__construct()
isValid()
parse()
format()
Classe: sfChoiceFormat - X-Ref
sfChoiceFormat 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 : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |