Smarty成員方法:unregisterFilter()

2018-12-05 11:36 更新

Name

unregisterFilter() — 注銷過濾器

Description

void unregisterFilter(string type,
                      string|array callback);

注銷過濾器。 參數(shù)如下:

  • type defines the type of the filter. Valid values are "pre", "post", "output" and "variable".

  • callback defines the PHP callback. it can be either:

    • A string containing the function name

    • An array of the form array(&$object, $method) with &$object being a reference to an object and $method being a string containing the method-name

    • An array of the form array($class, $method) with $class being the class name and $method being a method of the class.

參見 registerFilter().

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號