Implements interfaces:
Filter chain for string inflection
Located in /Filter/Inflector.php (line 41)
Constructor
Convienence method to add prefix and path to PluginLoader
Add a filter rule for a spec
AddRules(): multi-call to setting filter rules.
If prefixed with a ":" (colon), a filter rule will be added. If not prefixed, a static replacement will be added.
ex: array( ':controller' => array('CamelCaseToUnderscore','StringToLower'), ':action' => array('CamelCaseToUnderscore','StringToLower'), 'suffix' => 'phtml' );
ClearRules() clears the rules currently in the inflector
Inflect
Retreive PluginLoader
getRule() returns a rule set by setFilterRule(), a numeric index must be provided
Get rules
By default, returns all rules. If a $spec is provided, will return those rules if found, false otherwise.
Retrieve target
Get Target Replacement Identifier
Will exceptions be thrown?
Set a filtering rule for a spec. $ruleSet can be a string, Filter object or an array of strings or filter objects.
SetRules() is the same as calling addRules() with the exception that it clears the rules before adding them.
Set a static rule for a spec. This is a single string value
Set Static Rule Reference.
This allows a consuming class to pass a property or variable in to be referenced when its time to build the output string from the target.
Set a Target ex: 'scripts/:controller/:action.:suffix'
Set Target Reference
Set the Target Replacement Identifier, by default ':'
Set Whether or not the inflector should throw an exception when a replacement identifier is still found within an inflected target.
Resolve named filters and convert them to filter objects.
Normalize spec string
Documentation generated on Mon, 21 Jun 2010 15:28:58 -0400 by phpDocumentor 1.4.3