Get Smarty

Donate

Donate Bitcoin Bitcoin
Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Buy cheap eyeglasses from Cheapglasses123.com and save up to 80%.

Buy prescription glasses from www.australiaglasses.com and save.

Cheap Glasses Now On Sale at GlassesPeople.com. Starts At $7.95.

Where to buy discount wedding dresses and cheap smart dresses free shipping - Weddingdresstrend.com

Brautkleider auf Topwedding.de

Find free files to download on allwhatyouwant.net

Looking For Affordable Wedding Dresses 2015 at Best Prices On TDBridal.com

Shop high quality cheap prom dresses on Dresswe.co.uk

Buy New Arrival Cheap Prom Dresses 2015 at JDBRIDAL Prom Dress Store

Advertisement

Name

registerFilter() 鈥 娉ㄥ唽杩囨护鍣

璇存槑

void聽registerFilter(string聽type,
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽mixed聽callback);

娉ㄥ唽杩囨护鍣ㄣ 鍙傛暟濡備笅锛

  • 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.

Technical Note

If the chosen function callback is of the form array(&$object, $method), only one instance of the same class and with the same $method can be registered. The latest registered function callback will be used in such a scenario.

prefilter鍓嶇疆杩囨护鍣紝鍦ㄦā鏉跨紪璇戜箣鍓嶆墽琛岀殑杩囨护鍣ㄣ 璇︽儏鍙傝鍓嶇疆杩囨护鍣

postfilter鍚庣疆杩囨护鍣紝鍦ㄦā鏉跨紪璇戞垚PHP鍚庢墽琛岀殑杩囨护鍣ㄣ 璇︽儏鍙傝鍚庣疆杩囨护鍣

outputfilter杈撳嚭杩囨护鍣紝鍦ㄦā鏉垮皢瑕displayed鍓嶆墽琛岀殑杩囨护鍣ㄣ 璇︽儏鍙傝杈撳嚭杩囨护鍣

鍙傝 unregisterFilter(), loadFilter(), $autoload_filters, 鍓嶇疆杩囨护鍣 鍚庣疆杩囨护鍣 杈撳嚭杩囨护鍣

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 20 plus 7? (Are you human?)

Advertisement