Class Zend_Db_Inflector

Description

Class for name inflections.

  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • todo: Look up pluralization rules for English. E.g.: 'y' => 'ies', etc. "Porter stemming algorithm". See if Richard Heyes will license his stemmer to us under BSD.

Located in /Zend/Db/Inflector.php (line 36)


	
			
Method Summary
 void camelize ( $name)
 string plural (string $name)
 string singular (string $name)
 void underscore ( $name)
Methods
camelize (line 41)

Convert underscore_words to camelCaps.

  • access: public
void camelize ( $name)
  • $name
plural (line 91)

Pluralize a name.

  • return: Plural form of the original singular name
  • access: public
string plural (string $name)
  • string $name: Singular name
singular (line 67)

Singularize a name.

  • return: Singular form of the original plural name.
  • access: public
string singular (string $name)
  • string $name: Plural name.
underscore (line 56)

Convert camelCaps to underscore_words.

  • access: public
void underscore ( $name)
  • $name

Documentation generated on Thu, 18 Jan 2007 09:55:32 -0800 by phpDocumentor 1.3.1