| |
Modifiers are little functions that are applied to a variable in the template before it is displayed or used in some other context. Modifiers can be chained together.
The first parameter to the modifier plugin is the value on which the modifier is supposed to operate. The rest of the parameters can be optional, depending on what kind of operation is supposed to be performed.
The modifier has to return the result of its processing.
See also register_modifier(), unregister_modifier().
Пример 16-4. more complex modifier plugin
|
Пред. | Начало | След. |
Template Functions | Уровень выше | Block Functions |
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |