[ Index ] |
|
Code source de CakePHP 1.1.13.4450 |
1 <?php 2 /* SVN FILE: $Id: inflections.php 4409 2007-02-02 13:20:59Z phpnut $ */ 3 /** 4 * Custom Inflected Words. 5 * 6 * This file is used to hold words that are not matched in the normail Inflector::pluralize() and 7 * Inflector::singularize() 8 * 9 * PHP versions 4 and % 10 * 11 * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> 12 * Copyright 2005-2007, Cake Software Foundation, Inc. 13 * 1785 E. Sahara Avenue, Suite 490-204 14 * Las Vegas, Nevada 89104 15 * 16 * Licensed under The MIT License 17 * Redistributions of files must retain the above copyright notice. 18 * 19 * @filesource 20 * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. 21 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 22 * @package cake 23 * @subpackage cake.app.config 24 * @since CakePHP(tm) v 1.0.0.2312 25 * @version $Revision: 4409 $ 26 * @modifiedby $LastChangedBy: phpnut $ 27 * @lastmodified $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $ 28 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 29 */ 30 /** 31 * This is a key => value array of regex used to match words. 32 * If key matches then the value is returned. 33 * 34 * $pluralRules = array('/(s)tatus$/i' => '\1\2tatuses', '/^(ox)$/i' => '\1\2en', '/([m|l])ouse$/i' => '\1ice'); 35 */ 36 $pluralRules = array(); 37 /** 38 * This is a key only array of plural words that should not be inflected. 39 * Notice the last comma 40 * 41 * $uninflectedPlural = array('.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox'); 42 */ 43 $uninflectedPlural = array(); 44 /** 45 * This is a key => value array of plural irregular words. 46 * If key matches then the value is returned. 47 * 48 * $irregularPlural = array('atlas' => 'atlases', 'beef' => 'beefs', 'brother' => 'brothers') 49 */ 50 $irregularPlural = array(); 51 /** 52 * This is a key => value array of regex used to match words. 53 * If key matches then the value is returned. 54 * 55 * $singularRules = array('/(s)tatuses$/i' => '\1\2tatus', '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i') 56 */ 57 $singularRules = array(); 58 /** 59 * This is a key only array of singular words that should not be inflected. 60 * You should not have to change this value below if you do change it use same format 61 * as the $uninflectedPlural above. 62 */ 63 $uninflectedSingular = $uninflectedPlural; 64 /** 65 * This is a key => value array of singular irregular words. 66 * Most of the time this will be a reverse of the above $irregularPlural array 67 * You should not have to change this value below if you do change it use same format 68 * 69 * $irregularSingular = array('atlases' => 'atlas', 'beefs' => 'beef', 'brothers' => 'brother') 70 */ 71 $irregularSingular = array_flip($irregularPlural); 72 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 19:27:47 2007 | par Balluche grâce à PHPXref 0.7 |