update : 2015.11.03
php.shukuma.com검색:
|
The Yaf_Plugin_Abstract class(Yaf >=1.0.0) 소개Plugins allow for easy extensibility and customization of the framework. Plugins are classes. The actual class definition will vary based on the component -- you may need to implement this interface, but the fact remains that the plugin is itself a class. A plugin could be loaded into Yaf by using Yaf_Dispatcher::registerPlugin(), after registerd, All the methods which the plugin implemented according to this interface, will be called at the proper time. 예제Example #1 Plugin example
<?php 위 예제의 출력 예시: string(13) "routerStartup" string(14) "routerShutdown" string(19) "dispatchLoopStartup" string(11) "preDispatch" string(12) "postDispatch" string(20) "dispatchLoopShutdown" 클래스 개요
Yaf_Plugin_Abstract
{
/* 메소드 */
public void dispatchLoopShutdown
( Yaf_Request_Abstract
}$request
, Yaf_Response_Abstract $response
)Table of Contents
|