Is there a plan to make PHPTAL working with multiple filter/modifier functions with easy interface like for ex.:|
|

/**
* Registers filter object to pre-filters list
* [EMAIL PROTECTED] PHPTAL for chaining
*/
*public function *assignPreFilter(PHPTAL_Filter $newFilter);
/**
* Clears all assigned pre-filters
* [EMAIL PROTECTED] PHPTAL for chaining
*/
*public function *clearPreFilters();
/**
* Registers filter object to post-filters list
* [EMAIL PROTECTED] PHPTAL for chaining
*/
*public function *assignPostFilter(PHPTAL_Filter $newFilter);
/**
* Clears all assigned post-filters
* [EMAIL PROTECTED] PHPTAL for chaining
*/
*public function *clearPostFilters();
/**
* Registers template modifier to modifiers list
*
* Modifiers are held in Map<string,array> construct where keys are values passed in variable $name
*
* [EMAIL PROTECTED] string $name name of modifier to be avialable in template ex.: "makeUrl" * [EMAIL PROTECTED] callback $callable in form acceptable by call_user_func_array() function ex.: array($obj,'methodName') * [EMAIL PROTECTED] PHPTAL_Exception when $callableArray is not callable, checked with is_callable() function
* [EMAIL PROTECTED] PHPTAL for chaining
*/
*public function *assignModifier($name, *array *$callableArray);
/**
* Clears one modifier
*
* Clears only that modifier that match $name. If none is mached method does nothing.
*
* [EMAIL PROTECTED] string $name name of modifier to be avialable in template ex.: "makeUrl"
* [EMAIL PROTECTED] PHPTAL for chaining
*/
*public function *clearModifier($name);
/**
* Clears all assigned modifiers
*
* [EMAIL PROTECTED] PHPTAL for chaining
*/
*public function *clearModifiers();
/**
* Checks if passed modifier is currently assigned
*
* [EMAIL PROTECTED] string $name name of modifier to be avialable in template ex.: "makeUrl"
* [EMAIL PROTECTED] boolean true if modifier $name is currently assigned
*/
*public function *isModifierAssigned($name);


becouse I really don't like in the way it is now. Especially when i mast create a global function in form phptal_tales_*. It's really ugly way of development.
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to