svn: /phpdoc/en/trunk/reference/yaf/ yaf-dispatcher.xml yaf_dispatcher/dispatch.xml yaf_dispatcher/getapplication.xml yaf_dispatcher/setview.xml

From: Date: Thu, 01 Dec 2011 12:03:16 +0000
Subject: svn: /phpdoc/en/trunk/reference/yaf/ yaf-dispatcher.xml yaf_dispatcher/dispatch.xml yaf_dispatcher/getapplication.xml yaf_dispatcher/setview.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9110@lists.php.net to get a copy of this message
laruence Thu, 01 Dec 2011 12:03:16 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=320234 Log: add docs for Yaf_Dispatcher Changed paths: U phpdoc/en/trunk/reference/yaf/yaf-dispatcher.xml U phpdoc/en/trunk/reference/yaf/yaf_dispatcher/dispatch.xml U phpdoc/en/trunk/reference/yaf/yaf_dispatcher/getapplication.xml U phpdoc/en/trunk/reference/yaf/yaf_dispatcher/setview.xml Modified: phpdoc/en/trunk/reference/yaf/yaf-dispatcher.xml =================================================================== --- phpdoc/en/trunk/reference/yaf/yaf-dispatcher.xml 2011-12-01 11:40:57 UTC (rev 320233) +++ phpdoc/en/trunk/reference/yaf/yaf-dispatcher.xml 2011-12-01 12:03:16 UTC (rev 320234) @@ -12,8 +12,17 @@ <section xml:id="yaf-dispatcher.intro"> &reftitle.intro; <para> - + <classname>Yaf_Dispatcher</classname> purpose is to initialize + the request environment, route the incoming request, and then dispatch + any discovered actions; it aggregates any responses and returns them + when the process is complete. </para> + <para> + <classname>Yaf_Dispatcher</classname> also implements the Singleton pattern, + meaning only a single instance of it may be available at any given time. This + allows it to also act as a registry on which the other objects in the + dispatch process may draw. + </para> </section> <!-- }}} --> Modified: phpdoc/en/trunk/reference/yaf/yaf_dispatcher/dispatch.xml =================================================================== --- phpdoc/en/trunk/reference/yaf/yaf_dispatcher/dispatch.xml 2011-12-01 11:40:57 UTC (rev 320233) +++ phpdoc/en/trunk/reference/yaf/yaf_dispatcher/dispatch.xml 2011-12-01 12:03:16 UTC (rev 320234) @@ -14,8 +14,22 @@ <methodparam><type>Yaf_Request_Abstract</type><parameter>request</parameter></methodparam> </methodsynopsis> <para> - + This method does the heavy work of the + <classname>Yaf_Dispatcher</classname>. It take a request object. </para> + <para> + The dispatch process has three distinct events: + <simplelist> + <member>Routing</member> + <member>Dispatching</member> + <member>Response</member> + </simplelist> + Routing takes place exactly once, using the values in the request object + when dispatch() is called. Dispatching takes place in a loop; a request may + either indicate multiple actions to dispatch, or the controller or a plugin + may reset the request object to force additional actions to dispatch. When + all is done, the <classname>Yaf_Dispatcher</classname> returns a response. + </para> &warn.undocumented.func; @@ -38,7 +52,6 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - </para> </refsect1> Modified: phpdoc/en/trunk/reference/yaf/yaf_dispatcher/getapplication.xml =================================================================== --- phpdoc/en/trunk/reference/yaf/yaf_dispatcher/getapplication.xml 2011-12-01 11:40:57 UTC (rev 320233) +++ phpdoc/en/trunk/reference/yaf/yaf_dispatcher/getapplication.xml 2011-12-01 12:03:16 UTC (rev 320234) @@ -14,7 +14,8 @@ <void /> </methodsynopsis> <para> - + Retrive the <classname>Yaf_Application</classname> instance. same as + <methodname>Yaf_Application::app()</methodname>. </para> &warn.undocumented.func; Modified: phpdoc/en/trunk/reference/yaf/yaf_dispatcher/setview.xml =================================================================== --- phpdoc/en/trunk/reference/yaf/yaf_dispatcher/setview.xml 2011-12-01 11:40:57 UTC (rev 320233) +++ phpdoc/en/trunk/reference/yaf/yaf_dispatcher/setview.xml 2011-12-01 12:03:16 UTC (rev 320234) @@ -154,7 +154,7 @@ /** * Clear all assigned variables * - * Clears all variables assigned to Zend_View either via + * Clears all variables assigned to Yaf_View either via * {@link assign()} or property overloading * ({@link __get()}/{@link __set()}). *

« previous php.doc.cvs (#9110) next »