A Qcodo based CMS/ecommerce framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
732 B

<?php
require(__QCODO_CORE__ . '/codegen/QCodeGenBase.class.php');
// Feel free to override any core QCodeGenBase methods here
class QCodeGen extends QCodeGenBase {
// Example: Overriding the Pluralize method
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...
case (strtolower($strName) == 'fish'):
return $strName . 'ies';
// Otherwise, call parent
default:
return parent::Pluralize($strName);
}
}
}
require(__QCODO_CORE__ . '/codegen/library.inc.php');
?>