SGL_InflectorPerforms transformations on resource names, ie, urls, classes, methods, variables.
Located in /SGL/Inflector.php (line 46)
static caseFix (line 288)
Makes up for case insensitive classnames in php4 with get_class().
static getManagerNameFromSimplifiedName (line 140)
Returns the full Manager name given the short name, ie, faq becomes FaqMgr.
static getSimplifiedNameFromManagerName (line 156)
Returns the short name given the full Manager name, ie FaqMgr becomes faq.
camelise (line 179)
Converts "string with spaces" to "camelCase" string.
camelise2 (line 204)
accepts strings with underscores
getTitleFromCamelCase (line 209)
humanise (line 273)
Returns a human-readable string from $lower_case_and_underscored_word, by replacing underscores with a space, and by upper-casing the initial characters.
isCamelCase (line 237)
isConstant (line 251)
isMgrNameOmitted (line 109)
Determine if a simplified notation is being used.
If the url was of the form example.com/index.php/contactus/contactus/ and it got simplifeid too example.com/index.php/contactus/ it is important to determine if that simplification happened, so subsequent parameters don't get interpreted as 'managerName'
isUrlSimplified (line 61)
Returns true if querystring has been simplified.
This happens when a manager name is the same as its module name, ie UserManger in the 'user' module would become user/user which gets reduced to user
$querystring does not include the frontScriptName, ie, index.php
underscore (line 232)
urlContainsDuplicates (line 85)
Returns true if manager name is the same of module name, ie, index.php/faq/faq/.
variable (line 224)
Documentation generated on Tue, 23 Feb 2010 18:14:30 +0000 by phpDocumentor 1.4.3