Get Smarty

Donate

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

Advertisement

register_compiler_function()

register_compiler_function() -- secara dinamis meregistrasi plugins fungsi kompilator

Deskripsi

bool register_compiler_function ( string name, mixed impl, bool cacheable)

Mengirimkan nama fungsi kompilator, diikuti oleh fungsi PHP yang mengimplementasikannya.

Fungsi-php callback function dapat berupa:

  • String yang berisi nama fungsi

  • Sebuah array dalam bentuk array(&$object, $method) dengan &$object menjadi referensi ke sebuah obyek dan $method menjadi string yang berisi nama-metode

  • Sebuah array dalam bentuk array($class, $method) dengan $class menjadi nama kelas dan $method menjadi metode kelas.

cacheable dapat diabaikan. Lihat mengontrol output plugin yang dapat di-cache atas bagaimana untuk menggunakannya dengan benar.

Lihat juga unregister_compiler_function() dan seksi fungsi kompilator plugin.

Comments
No comments for this page.

Advertisement

Sponsors [info]

Sponsors