inflections.php

Go to the documentation of this file.
00001 <?php
00002 /* SVN FILE: $Id: inflections.php 7805 2008-10-30 17:30:26Z AD7six $ */
00003 /**
00004  * Custom Inflected Words.
00005  *
00006  * This file is used to hold words that are not matched in the normail Inflector::pluralize() and
00007  * Inflector::singularize()
00008  *
00009  * PHP versions 4 and %
00010  *
00011  * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
00012  * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
00013  *
00014  * Licensed under The MIT License
00015  * Redistributions of files must retain the above copyright notice.
00016  *
00017  * @filesource
00018  * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
00019  * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
00020  * @package       cake
00021  * @subpackage    cake.app.config
00022  * @since         CakePHP(tm) v 1.0.0.2312
00023  * @version       $Revision: 7805 $
00024  * @modifiedby    $LastChangedBy: AD7six $
00025  * @lastmodified  $Date: 2008-10-30 13:30:26 -0400 (Thu, 30 Oct 2008) $
00026  * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
00027  */
00028 /**
00029  * This is a key => value array of regex used to match words.
00030  * If key matches then the value is returned.
00031  *
00032  *  $pluralRules = array('/(s)tatus$/i' => '\1\2tatuses', '/^(ox)$/i' => '\1\2en', '/([m|l])ouse$/i' => '\1ice');
00033  */
00034     $pluralRules = array();
00035 /**
00036  * This is a key only array of plural words that should not be inflected.
00037  * Notice the last comma
00038  *
00039  * $uninflectedPlural = array('.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox');
00040  */
00041     $uninflectedPlural = array();
00042 /**
00043  * This is a key => value array of plural irregular words.
00044  * If key matches then the value is returned.
00045  *
00046  *  $irregularPlural = array('atlas' => 'atlases', 'beef' => 'beefs', 'brother' => 'brothers')
00047  */
00048     $irregularPlural = array();
00049 /**
00050  * This is a key => value array of regex used to match words.
00051  * If key matches then the value is returned.
00052  *
00053  *  $singularRules = array('/(s)tatuses$/i' => '\1\2tatus', '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i')
00054  */
00055     $singularRules = array();
00056 /**
00057  * This is a key only array of singular words that should not be inflected.
00058  * You should not have to change this value below if you do change it use same format
00059  * as the $uninflectedPlural above.
00060  */
00061     $uninflectedSingular = $uninflectedPlural;
00062 /**
00063  * This is a key => value array of singular irregular words.
00064  * Most of the time this will be a reverse of the above $irregularPlural array
00065  * You should not have to change this value below if you do change it use same format
00066  *
00067  * $irregularSingular = array('atlases' => 'atlas', 'beefs' => 'beef', 'brothers' => 'brother')
00068  */
00069     $irregularSingular = array_flip($irregularPlural);
00070 ?>

Generated on Sun Nov 22 00:30:52 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7