/** * QCodeGen::Pluralize() * * Example: Overriding the Pluralize method * * @param string $strName * @return string */ protected function Pluralize($strName) { // Special Rules go Here switch (true) { case $strName == 'person': return 'people'; case $strName == 'Person': return 'People'; case $strName == 'PERSON': return 'PEOPLE'; // Trying to be cute here... // Trying to be cute here... case strtolower($strName) == 'fish': return $strName . 'ies'; // Otherwise, call parent // Otherwise, call parent default: return parent::Pluralize($strName); } }