From 5e351243cd3a26f0b82a680081e69ef369fed948 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 01:38:25 +0800 Subject: [PATCH 01/26] zh appconifg_zh --- zh/appconfig.xml | 374 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 374 insertions(+) create mode 100644 zh/appconfig.xml diff --git a/zh/appconfig.xml b/zh/appconfig.xml new file mode 100644 index 0000000..001ad07 --- /dev/null +++ b/zh/appconfig.xml @@ -0,0 +1,374 @@ + + + + + Application Configuration + + 你需要提供一个有配置信息的数组或则一个ini配置文件(看 + Yaf_Config_Ini) 目录位置提供给 + Yaf_Application::__construct. + + + Yaf的可以通过合并用户的配置来配置。区别在于,yaf配置的前缀为“yaf.”,或则“application.”, + 如果同时有“yaf.”和“application.”2个前缀,那么“application.”前缀将被优先采纳。 + + + 一个用数组配置yaf的例子 + + array( + "directory" => dirname(__FILE__), //取得当前文件所在的绝对目录,如:/var/www + "dispatcher" => array( + "catchException" => 0,//下面会解释 + ), + "view" => array( + "ext" => "phtml",//视图文件后缀 + ), + ), + ); + $app = new Yaf_Application($configs);//传入配置数组实例化yaf +?> +]]> + + + + 一个用ini配置文件配置yaf的例子 + + + + + + + + Yaf Application Config + + + + &Name; + &Default; + &Changelog; + + + + + application.directory + + + + + application.ext + "php" + + + + application.view.ext + "phtml" + + + + application.modules + "index" + + + + application.library + application.directory . "/library" + + + + application.library.directory + application.directory . "/library" + + + + application.library.namespace + "" + + + + application.bootstrap + application.directory . "/Bootstrap" . application.ext + + + + application.baseUri + "" + + + + application.dispatcher.defaultRoute + + + + + application.dispatcher.throwException + 1 + + + + application.dispatcher.catchException + 0 + + + + application.dispatcher.defaultModule + "index" + + + + application.dispatcher.defaultController + "index" + + + + application.dispatcher.defaultAction + "index" + + + + +
+
+ + &ini.descriptions.title; + 下面是一个配置参数的简短说明 + + + + + application.directory + string + + + + 应用的目录,这个目录下通常有"controllers", "views", "models", "plugins" + 这些文件夹 + + + + + 这个配置项是唯一一个不需要给默认值的,意味着你必须在使用前定义他 + + + + + + + + application.ext + string + + + + php脚本文件的扩展名,在自动装载类中使用( + Yaf_Loader). + + + + + + application.view.ext + string + + + + 视图模版脚本文件的扩展名 + + + + + + application.modules + string + + + + 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, + 特别是在PATH_INFO中有超过3段的时候。 + + + Yaf需要一个找出第一段是否是一个模块(module)名字的方法 + + + + + + application.library + string + + + + 本地lib库目录, 看 Yaf_Loader 和 + yaf.library. + + + + 从Yaf 2.1.6起,配置选项可以是一个数组,当配置项是个数组时, + lib库路径将会尝试着使用application.library.directory + 的值 + + + + + + + application.library.directory + string + + + + Introduced in Yaf 2.1.6 + + + + + + application.library.namespace + string + + + + A comma separated prefix of local library namespace. + + + Introduced in Yaf 2.1.6 + + + + + + application.bootstrap + string + + + + 一个Bootstrap类脚本的绝对路径 + + + + + + application.baseUri + string + + + + 在路由进程中用来移除接受到的URI的固定前缀。 + 例如,有一个接收到的URI: + "/prefix/controller/action". 如果你将application.baseUri 设置成 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 + + + 一般情况下,你不需要设置这个值 + + + + + + application.dispatcher.throwException + bool + + + + 如果这个选项被开启,当一些错误发生时,Yaf将会抛出它们 + 同样,看Yaf_Dispatcher::throwException. + + + + + + application.dispatcher.catchException + bool + + + + 如果这个选项呗开启,当有一个未捕获的异常时,Yaf会将异常转发到Error controller, + Error Action. 同样,看 + Yaf_Dispatcher::catchException. + + + + + + application.dispatcher.defaultRoute + string + + + + 默认的路由,除非特殊情况下,静态的路由将会被用作默认的路由。 + 看: + Yaf_Router::addRoute. + + + + + + application.dispatcher.defaultModule + string + + + + 默认的模块(module)名字,同样,看 + Yaf_Dispatcher::setDefaultModule. + + + + + + application.dispatcher.defaultController + string + + + + 默认的控制器(controller)名字,同样,看 + Yaf_Dispatcher::setDefaultController. + + + + + + application.dispatcher.defaultAction + string + + + + 默认的动作(action)名字,同样,看 + Yaf_Dispatcher::setDefaultAction. + + + + + + +
+ + From f0823b241a0533aa6dcb911a050903114a98fa63 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 01:47:52 +0800 Subject: [PATCH 02/26] test delete --- en/appconfig.xml | 376 -------------- en/book.xml | 87 ---- en/configure.xml | 35 -- en/constants.xml | 152 ------ en/examples.xml | 160 ------ en/ini.xml | 297 ----------- en/reference.xml | 30 -- en/setup.xml | 62 --- en/versions.xml | 486 ------------------ en/yaf-action-abstract.xml | 143 ------ en/yaf-application.xml | 159 ------ en/yaf-bootstrap-abstract.xml | 75 --- en/yaf-config-abstract.xml | 100 ---- en/yaf-config-ini.xml | 188 ------- en/yaf-config-simple.xml | 120 ----- en/yaf-controller-abstract.xml | 216 -------- en/yaf-dispatcher.xml | 200 ------- en/yaf-exception-dispatchfailed.xml | 79 --- en/yaf-exception-loadfailed-action.xml | 80 --- en/yaf-exception-loadfailed-controller.xml | 77 --- en/yaf-exception-loadfailed-module.xml | 79 --- en/yaf-exception-loadfailed-view.xml | 80 --- en/yaf-exception-loadfailed.xml | 79 --- en/yaf-exception-routerfailed.xml | 80 --- en/yaf-exception-startuperror.xml | 80 --- en/yaf-exception-typeerror.xml | 80 --- en/yaf-exception.xml | 130 ----- en/yaf-loader.xml | 292 ----------- en/yaf-plugin-abstract.xml | 78 --- en/yaf-registry.xml | 101 ---- en/yaf-request-abstract.xml | 227 -------- en/yaf-request-http.xml | 154 ------ en/yaf-request-simple.xml | 193 ------- en/yaf-response-abstract.xml | 109 ---- en/yaf-response-cli.xml | 106 ---- en/yaf-response-http.xml | 120 ----- en/yaf-route-interface.xml | 68 --- en/yaf-route-map.xml | 103 ---- en/yaf-route-regex.xml | 133 ----- en/yaf-route-rewrite.xml | 122 ----- en/yaf-route-simple.xml | 123 ----- en/yaf-route-static.xml | 82 --- en/yaf-route-supervar.xml | 93 ---- en/yaf-router.xml | 234 --------- en/yaf-session.xml | 126 ----- en/yaf-view-interface.xml | 70 --- en/yaf-view-simple.xml | 105 ---- en/yaf_action_abstract/execute.xml | 123 ----- en/yaf_action_abstract/getcontroller.xml | 58 --- en/yaf_application/app.xml | 65 --- en/yaf_application/bootstrap.xml | 122 ----- en/yaf_application/clearlasterror.xml | 93 ---- en/yaf_application/clone.xml | 58 --- en/yaf_application/construct.xml | 174 ------- en/yaf_application/destruct.xml | 58 --- en/yaf_application/environ.xml | 86 ---- en/yaf_application/execute.xml | 106 ---- en/yaf_application/getappdirectory.xml | 67 --- en/yaf_application/getconfig.xml | 98 ---- en/yaf_application/getdispatcher.xml | 140 ----- en/yaf_application/getlasterrormsg.xml | 92 ---- en/yaf_application/getlasterrorno.xml | 94 ---- en/yaf_application/getmodules.xml | 89 ---- en/yaf_application/run.xml | 60 --- en/yaf_application/setappdirectory.xml | 67 --- en/yaf_application/sleep.xml | 58 --- en/yaf_application/wakeup.xml | 58 --- en/yaf_config_abstract/get.xml | 59 --- en/yaf_config_abstract/readonly.xml | 58 --- en/yaf_config_abstract/set.xml | 58 --- en/yaf_config_abstract/toarray.xml | 58 --- en/yaf_config_ini/construct.xml | 76 --- en/yaf_config_ini/count.xml | 58 --- en/yaf_config_ini/current.xml | 58 --- en/yaf_config_ini/get.xml | 67 --- en/yaf_config_ini/isset.xml | 67 --- en/yaf_config_ini/key.xml | 58 --- en/yaf_config_ini/next.xml | 58 --- en/yaf_config_ini/offsetexists.xml | 67 --- en/yaf_config_ini/offsetget.xml | 67 --- en/yaf_config_ini/offsetset.xml | 76 --- en/yaf_config_ini/offsetunset.xml | 67 --- en/yaf_config_ini/readonly.xml | 58 --- en/yaf_config_ini/rewind.xml | 58 --- en/yaf_config_ini/set.xml | 76 --- en/yaf_config_ini/toarray.xml | 58 --- en/yaf_config_ini/valid.xml | 58 --- en/yaf_config_simple/construct.xml | 76 --- en/yaf_config_simple/count.xml | 58 --- en/yaf_config_simple/current.xml | 58 --- en/yaf_config_simple/get.xml | 67 --- en/yaf_config_simple/isset.xml | 67 --- en/yaf_config_simple/key.xml | 58 --- en/yaf_config_simple/next.xml | 58 --- en/yaf_config_simple/offsetexists.xml | 67 --- en/yaf_config_simple/offsetget.xml | 67 --- en/yaf_config_simple/offsetset.xml | 76 --- en/yaf_config_simple/offsetunset.xml | 67 --- en/yaf_config_simple/readonly.xml | 58 --- en/yaf_config_simple/rewind.xml | 58 --- en/yaf_config_simple/set.xml | 76 --- en/yaf_config_simple/toarray.xml | 58 --- en/yaf_config_simple/valid.xml | 58 --- en/yaf_controller_abstract/clone.xml | 58 --- en/yaf_controller_abstract/construct.xml | 58 --- en/yaf_controller_abstract/display.xml | 76 --- en/yaf_controller_abstract/forward.xml | 94 ---- en/yaf_controller_abstract/getinvokearg.xml | 67 --- en/yaf_controller_abstract/getinvokeargs.xml | 58 --- en/yaf_controller_abstract/getmodulename.xml | 58 --- en/yaf_controller_abstract/getrequest.xml | 58 --- en/yaf_controller_abstract/getresponse.xml | 58 --- en/yaf_controller_abstract/getview.xml | 58 --- en/yaf_controller_abstract/getviewpath.xml | 58 --- en/yaf_controller_abstract/initview.xml | 67 --- en/yaf_controller_abstract/redirect.xml | 67 --- en/yaf_controller_abstract/render.xml | 76 --- en/yaf_controller_abstract/setviewpath.xml | 67 --- en/yaf_dispatcher/autorender.xml | 96 ---- en/yaf_dispatcher/catchexception.xml | 122 ----- en/yaf_dispatcher/clone.xml | 58 --- en/yaf_dispatcher/construct.xml | 58 --- en/yaf_dispatcher/disableview.xml | 58 --- en/yaf_dispatcher/dispatch.xml | 81 --- en/yaf_dispatcher/enableview.xml | 58 --- en/yaf_dispatcher/flushinstantly.xml | 67 --- en/yaf_dispatcher/getapplication.xml | 65 --- en/yaf_dispatcher/getinstance.xml | 58 --- en/yaf_dispatcher/getrequest.xml | 58 --- en/yaf_dispatcher/getrouter.xml | 58 --- en/yaf_dispatcher/initview.xml | 76 --- en/yaf_dispatcher/registerplugin.xml | 102 ---- en/yaf_dispatcher/returnresponse.xml | 67 --- en/yaf_dispatcher/setdefaultaction.xml | 67 --- en/yaf_dispatcher/setdefaultcontroller.xml | 67 --- en/yaf_dispatcher/setdefaultmodule.xml | 67 --- en/yaf_dispatcher/seterrorhandler.xml | 76 --- en/yaf_dispatcher/setrequest.xml | 67 --- en/yaf_dispatcher/setview.xml | 253 --------- en/yaf_dispatcher/sleep.xml | 58 --- en/yaf_dispatcher/throwexception.xml | 67 --- en/yaf_dispatcher/wakeup.xml | 58 --- en/yaf_exception/construct.xml | 58 --- en/yaf_exception/getprevious.xml | 58 --- en/yaf_loader/autoload.xml | 58 --- en/yaf_loader/clearlocalnamespace.xml | 58 --- en/yaf_loader/clone.xml | 58 --- en/yaf_loader/construct.xml | 58 --- en/yaf_loader/getinstance.xml | 58 --- en/yaf_loader/getlibrarypath.xml | 58 --- en/yaf_loader/getlocalnamespace.xml | 58 --- en/yaf_loader/import.xml | 58 --- en/yaf_loader/islocalname.xml | 58 --- en/yaf_loader/registerlocalnamespace.xml | 58 --- en/yaf_loader/setlibrarypath.xml | 59 --- en/yaf_loader/sleep.xml | 58 --- en/yaf_loader/wakeup.xml | 58 --- .../dispatchloopshutdown.xml | 88 ---- .../dispatchloopstartup.xml | 76 --- en/yaf_plugin_abstract/postdispatch.xml | 76 --- en/yaf_plugin_abstract/predispatch.xml | 76 --- en/yaf_plugin_abstract/preresponse.xml | 76 --- en/yaf_plugin_abstract/routershutdown.xml | 122 ----- en/yaf_plugin_abstract/routerstartup.xml | 88 ---- en/yaf_registry/clone.xml | 58 --- en/yaf_registry/construct.xml | 58 --- en/yaf_registry/del.xml | 67 --- en/yaf_registry/get.xml | 67 --- en/yaf_registry/has.xml | 67 --- en/yaf_registry/set.xml | 76 --- en/yaf_request_abstract/getactionname.xml | 58 --- en/yaf_request_abstract/getbaseuri.xml | 58 --- en/yaf_request_abstract/getcontrollername.xml | 58 --- en/yaf_request_abstract/getenv.xml | 76 --- en/yaf_request_abstract/getexception.xml | 58 --- en/yaf_request_abstract/getlanguage.xml | 58 --- en/yaf_request_abstract/getmethod.xml | 58 --- en/yaf_request_abstract/getmodulename.xml | 58 --- en/yaf_request_abstract/getparam.xml | 76 --- en/yaf_request_abstract/getparams.xml | 58 --- en/yaf_request_abstract/getrequesturi.xml | 58 --- en/yaf_request_abstract/getserver.xml | 76 --- en/yaf_request_abstract/iscli.xml | 58 --- en/yaf_request_abstract/isdispatched.xml | 58 --- en/yaf_request_abstract/isget.xml | 58 --- en/yaf_request_abstract/ishead.xml | 58 --- en/yaf_request_abstract/isoptions.xml | 58 --- en/yaf_request_abstract/ispost.xml | 58 --- en/yaf_request_abstract/isput.xml | 58 --- en/yaf_request_abstract/isrouted.xml | 58 --- en/yaf_request_abstract/isxmlhttprequest.xml | 58 --- en/yaf_request_abstract/setactionname.xml | 67 --- en/yaf_request_abstract/setbaseuri.xml | 67 --- en/yaf_request_abstract/setcontrollername.xml | 67 --- en/yaf_request_abstract/setdispatched.xml | 58 --- en/yaf_request_abstract/setmodulename.xml | 67 --- en/yaf_request_abstract/setparam.xml | 76 --- en/yaf_request_abstract/setrequesturi.xml | 67 --- en/yaf_request_abstract/setrouted.xml | 67 --- en/yaf_request_http/clone.xml | 58 --- en/yaf_request_http/construct.xml | 58 --- en/yaf_request_http/get.xml | 58 --- en/yaf_request_http/getcookie.xml | 58 --- en/yaf_request_http/getfiles.xml | 58 --- en/yaf_request_http/getpost.xml | 58 --- en/yaf_request_http/getquery.xml | 58 --- en/yaf_request_http/getrequest.xml | 58 --- en/yaf_request_http/isxmlhttprequest.xml | 58 --- en/yaf_request_simple/clone.xml | 58 --- en/yaf_request_simple/construct.xml | 58 --- en/yaf_request_simple/get.xml | 58 --- en/yaf_request_simple/getcookie.xml | 58 --- en/yaf_request_simple/getfiles.xml | 58 --- en/yaf_request_simple/getpost.xml | 58 --- en/yaf_request_simple/getquery.xml | 58 --- en/yaf_request_simple/getrequest.xml | 58 --- en/yaf_request_simple/isxmlhttprequest.xml | 58 --- en/yaf_response_abstract/appendbody.xml | 58 --- en/yaf_response_abstract/clearbody.xml | 58 --- en/yaf_response_abstract/clearheaders.xml | 58 --- en/yaf_response_abstract/clone.xml | 58 --- en/yaf_response_abstract/construct.xml | 58 --- en/yaf_response_abstract/destruct.xml | 58 --- en/yaf_response_abstract/getbody.xml | 58 --- en/yaf_response_abstract/getheader.xml | 58 --- en/yaf_response_abstract/prependbody.xml | 58 --- en/yaf_response_abstract/response.xml | 58 --- en/yaf_response_abstract/setallheaders.xml | 58 --- en/yaf_response_abstract/setbody.xml | 58 --- en/yaf_response_abstract/setheader.xml | 58 --- en/yaf_response_abstract/setredirect.xml | 58 --- en/yaf_response_abstract/tostring.xml | 58 --- en/yaf_route_interface/route.xml | 85 --- en/yaf_route_map/construct.xml | 169 ------ en/yaf_route_map/route.xml | 67 --- en/yaf_route_regex/construct.xml | 169 ------ en/yaf_route_regex/route.xml | 69 --- en/yaf_route_rewrite/construct.xml | 195 ------- en/yaf_route_rewrite/route.xml | 67 --- en/yaf_route_simple/construct.xml | 124 ----- en/yaf_route_simple/route.xml | 77 --- en/yaf_route_static/match.xml | 67 --- en/yaf_route_static/route.xml | 104 ---- en/yaf_route_supervar/construct.xml | 116 ----- en/yaf_route_supervar/route.xml | 69 --- en/yaf_router/addconfig.xml | 134 ----- en/yaf_router/addroute.xml | 128 ----- en/yaf_router/construct.xml | 58 --- en/yaf_router/getcurrentroute.xml | 153 ------ en/yaf_router/getroute.xml | 58 --- en/yaf_router/getroutes.xml | 58 --- en/yaf_router/route.xml | 58 --- en/yaf_session/clone.xml | 58 --- en/yaf_session/construct.xml | 58 --- en/yaf_session/count.xml | 58 --- en/yaf_session/current.xml | 58 --- en/yaf_session/del.xml | 67 --- en/yaf_session/get.xml | 67 --- en/yaf_session/getinstance.xml | 58 --- en/yaf_session/has.xml | 67 --- en/yaf_session/isset.xml | 67 --- en/yaf_session/key.xml | 58 --- en/yaf_session/next.xml | 58 --- en/yaf_session/offsetexists.xml | 67 --- en/yaf_session/offsetget.xml | 67 --- en/yaf_session/offsetset.xml | 76 --- en/yaf_session/offsetunset.xml | 67 --- en/yaf_session/rewind.xml | 58 --- en/yaf_session/set.xml | 76 --- en/yaf_session/sleep.xml | 58 --- en/yaf_session/start.xml | 58 --- en/yaf_session/unset.xml | 67 --- en/yaf_session/valid.xml | 58 --- en/yaf_session/wakeup.xml | 58 --- en/yaf_view_interface/assign.xml | 76 --- en/yaf_view_interface/display.xml | 76 --- en/yaf_view_interface/getscriptpath.xml | 58 --- en/yaf_view_interface/render.xml | 76 --- en/yaf_view_interface/setscriptpath.xml | 70 --- en/yaf_view_simple/assign.xml | 124 ----- en/yaf_view_simple/assignref.xml | 132 ----- en/yaf_view_simple/clear.xml | 96 ---- en/yaf_view_simple/construct.xml | 99 ---- en/yaf_view_simple/display.xml | 76 --- en/yaf_view_simple/get.xml | 74 --- en/yaf_view_simple/getscriptpath.xml | 58 --- en/yaf_view_simple/isset.xml | 67 --- en/yaf_view_simple/render.xml | 76 --- en/yaf_view_simple/set.xml | 101 ---- en/yaf_view_simple/setscriptpath.xml | 67 --- 290 files changed, 23585 deletions(-) delete mode 100644 en/appconfig.xml delete mode 100644 en/book.xml delete mode 100644 en/configure.xml delete mode 100644 en/constants.xml delete mode 100644 en/examples.xml delete mode 100644 en/ini.xml delete mode 100644 en/reference.xml delete mode 100644 en/setup.xml delete mode 100644 en/versions.xml delete mode 100644 en/yaf-action-abstract.xml delete mode 100644 en/yaf-application.xml delete mode 100644 en/yaf-bootstrap-abstract.xml delete mode 100644 en/yaf-config-abstract.xml delete mode 100644 en/yaf-config-ini.xml delete mode 100644 en/yaf-config-simple.xml delete mode 100644 en/yaf-controller-abstract.xml delete mode 100644 en/yaf-dispatcher.xml delete mode 100644 en/yaf-exception-dispatchfailed.xml delete mode 100644 en/yaf-exception-loadfailed-action.xml delete mode 100644 en/yaf-exception-loadfailed-controller.xml delete mode 100644 en/yaf-exception-loadfailed-module.xml delete mode 100644 en/yaf-exception-loadfailed-view.xml delete mode 100644 en/yaf-exception-loadfailed.xml delete mode 100644 en/yaf-exception-routerfailed.xml delete mode 100644 en/yaf-exception-startuperror.xml delete mode 100644 en/yaf-exception-typeerror.xml delete mode 100644 en/yaf-exception.xml delete mode 100644 en/yaf-loader.xml delete mode 100644 en/yaf-plugin-abstract.xml delete mode 100644 en/yaf-registry.xml delete mode 100644 en/yaf-request-abstract.xml delete mode 100644 en/yaf-request-http.xml delete mode 100644 en/yaf-request-simple.xml delete mode 100644 en/yaf-response-abstract.xml delete mode 100644 en/yaf-response-cli.xml delete mode 100644 en/yaf-response-http.xml delete mode 100644 en/yaf-route-interface.xml delete mode 100644 en/yaf-route-map.xml delete mode 100644 en/yaf-route-regex.xml delete mode 100644 en/yaf-route-rewrite.xml delete mode 100644 en/yaf-route-simple.xml delete mode 100644 en/yaf-route-static.xml delete mode 100644 en/yaf-route-supervar.xml delete mode 100644 en/yaf-router.xml delete mode 100644 en/yaf-session.xml delete mode 100644 en/yaf-view-interface.xml delete mode 100644 en/yaf-view-simple.xml delete mode 100644 en/yaf_action_abstract/execute.xml delete mode 100644 en/yaf_action_abstract/getcontroller.xml delete mode 100644 en/yaf_application/app.xml delete mode 100644 en/yaf_application/bootstrap.xml delete mode 100644 en/yaf_application/clearlasterror.xml delete mode 100644 en/yaf_application/clone.xml delete mode 100644 en/yaf_application/construct.xml delete mode 100644 en/yaf_application/destruct.xml delete mode 100644 en/yaf_application/environ.xml delete mode 100644 en/yaf_application/execute.xml delete mode 100644 en/yaf_application/getappdirectory.xml delete mode 100644 en/yaf_application/getconfig.xml delete mode 100644 en/yaf_application/getdispatcher.xml delete mode 100644 en/yaf_application/getlasterrormsg.xml delete mode 100644 en/yaf_application/getlasterrorno.xml delete mode 100644 en/yaf_application/getmodules.xml delete mode 100644 en/yaf_application/run.xml delete mode 100644 en/yaf_application/setappdirectory.xml delete mode 100644 en/yaf_application/sleep.xml delete mode 100644 en/yaf_application/wakeup.xml delete mode 100644 en/yaf_config_abstract/get.xml delete mode 100644 en/yaf_config_abstract/readonly.xml delete mode 100644 en/yaf_config_abstract/set.xml delete mode 100644 en/yaf_config_abstract/toarray.xml delete mode 100644 en/yaf_config_ini/construct.xml delete mode 100644 en/yaf_config_ini/count.xml delete mode 100644 en/yaf_config_ini/current.xml delete mode 100644 en/yaf_config_ini/get.xml delete mode 100644 en/yaf_config_ini/isset.xml delete mode 100644 en/yaf_config_ini/key.xml delete mode 100644 en/yaf_config_ini/next.xml delete mode 100644 en/yaf_config_ini/offsetexists.xml delete mode 100644 en/yaf_config_ini/offsetget.xml delete mode 100644 en/yaf_config_ini/offsetset.xml delete mode 100644 en/yaf_config_ini/offsetunset.xml delete mode 100644 en/yaf_config_ini/readonly.xml delete mode 100644 en/yaf_config_ini/rewind.xml delete mode 100644 en/yaf_config_ini/set.xml delete mode 100644 en/yaf_config_ini/toarray.xml delete mode 100644 en/yaf_config_ini/valid.xml delete mode 100644 en/yaf_config_simple/construct.xml delete mode 100644 en/yaf_config_simple/count.xml delete mode 100644 en/yaf_config_simple/current.xml delete mode 100644 en/yaf_config_simple/get.xml delete mode 100644 en/yaf_config_simple/isset.xml delete mode 100644 en/yaf_config_simple/key.xml delete mode 100644 en/yaf_config_simple/next.xml delete mode 100644 en/yaf_config_simple/offsetexists.xml delete mode 100644 en/yaf_config_simple/offsetget.xml delete mode 100644 en/yaf_config_simple/offsetset.xml delete mode 100644 en/yaf_config_simple/offsetunset.xml delete mode 100644 en/yaf_config_simple/readonly.xml delete mode 100644 en/yaf_config_simple/rewind.xml delete mode 100644 en/yaf_config_simple/set.xml delete mode 100644 en/yaf_config_simple/toarray.xml delete mode 100644 en/yaf_config_simple/valid.xml delete mode 100644 en/yaf_controller_abstract/clone.xml delete mode 100644 en/yaf_controller_abstract/construct.xml delete mode 100644 en/yaf_controller_abstract/display.xml delete mode 100644 en/yaf_controller_abstract/forward.xml delete mode 100644 en/yaf_controller_abstract/getinvokearg.xml delete mode 100644 en/yaf_controller_abstract/getinvokeargs.xml delete mode 100644 en/yaf_controller_abstract/getmodulename.xml delete mode 100644 en/yaf_controller_abstract/getrequest.xml delete mode 100644 en/yaf_controller_abstract/getresponse.xml delete mode 100644 en/yaf_controller_abstract/getview.xml delete mode 100644 en/yaf_controller_abstract/getviewpath.xml delete mode 100644 en/yaf_controller_abstract/initview.xml delete mode 100644 en/yaf_controller_abstract/redirect.xml delete mode 100644 en/yaf_controller_abstract/render.xml delete mode 100644 en/yaf_controller_abstract/setviewpath.xml delete mode 100644 en/yaf_dispatcher/autorender.xml delete mode 100644 en/yaf_dispatcher/catchexception.xml delete mode 100644 en/yaf_dispatcher/clone.xml delete mode 100644 en/yaf_dispatcher/construct.xml delete mode 100644 en/yaf_dispatcher/disableview.xml delete mode 100644 en/yaf_dispatcher/dispatch.xml delete mode 100644 en/yaf_dispatcher/enableview.xml delete mode 100644 en/yaf_dispatcher/flushinstantly.xml delete mode 100644 en/yaf_dispatcher/getapplication.xml delete mode 100644 en/yaf_dispatcher/getinstance.xml delete mode 100644 en/yaf_dispatcher/getrequest.xml delete mode 100644 en/yaf_dispatcher/getrouter.xml delete mode 100644 en/yaf_dispatcher/initview.xml delete mode 100644 en/yaf_dispatcher/registerplugin.xml delete mode 100644 en/yaf_dispatcher/returnresponse.xml delete mode 100644 en/yaf_dispatcher/setdefaultaction.xml delete mode 100644 en/yaf_dispatcher/setdefaultcontroller.xml delete mode 100644 en/yaf_dispatcher/setdefaultmodule.xml delete mode 100644 en/yaf_dispatcher/seterrorhandler.xml delete mode 100644 en/yaf_dispatcher/setrequest.xml delete mode 100644 en/yaf_dispatcher/setview.xml delete mode 100644 en/yaf_dispatcher/sleep.xml delete mode 100644 en/yaf_dispatcher/throwexception.xml delete mode 100644 en/yaf_dispatcher/wakeup.xml delete mode 100644 en/yaf_exception/construct.xml delete mode 100644 en/yaf_exception/getprevious.xml delete mode 100644 en/yaf_loader/autoload.xml delete mode 100644 en/yaf_loader/clearlocalnamespace.xml delete mode 100644 en/yaf_loader/clone.xml delete mode 100644 en/yaf_loader/construct.xml delete mode 100644 en/yaf_loader/getinstance.xml delete mode 100644 en/yaf_loader/getlibrarypath.xml delete mode 100644 en/yaf_loader/getlocalnamespace.xml delete mode 100644 en/yaf_loader/import.xml delete mode 100644 en/yaf_loader/islocalname.xml delete mode 100644 en/yaf_loader/registerlocalnamespace.xml delete mode 100644 en/yaf_loader/setlibrarypath.xml delete mode 100644 en/yaf_loader/sleep.xml delete mode 100644 en/yaf_loader/wakeup.xml delete mode 100644 en/yaf_plugin_abstract/dispatchloopshutdown.xml delete mode 100644 en/yaf_plugin_abstract/dispatchloopstartup.xml delete mode 100644 en/yaf_plugin_abstract/postdispatch.xml delete mode 100644 en/yaf_plugin_abstract/predispatch.xml delete mode 100644 en/yaf_plugin_abstract/preresponse.xml delete mode 100644 en/yaf_plugin_abstract/routershutdown.xml delete mode 100644 en/yaf_plugin_abstract/routerstartup.xml delete mode 100644 en/yaf_registry/clone.xml delete mode 100644 en/yaf_registry/construct.xml delete mode 100644 en/yaf_registry/del.xml delete mode 100644 en/yaf_registry/get.xml delete mode 100644 en/yaf_registry/has.xml delete mode 100644 en/yaf_registry/set.xml delete mode 100644 en/yaf_request_abstract/getactionname.xml delete mode 100644 en/yaf_request_abstract/getbaseuri.xml delete mode 100644 en/yaf_request_abstract/getcontrollername.xml delete mode 100644 en/yaf_request_abstract/getenv.xml delete mode 100644 en/yaf_request_abstract/getexception.xml delete mode 100644 en/yaf_request_abstract/getlanguage.xml delete mode 100644 en/yaf_request_abstract/getmethod.xml delete mode 100644 en/yaf_request_abstract/getmodulename.xml delete mode 100644 en/yaf_request_abstract/getparam.xml delete mode 100644 en/yaf_request_abstract/getparams.xml delete mode 100644 en/yaf_request_abstract/getrequesturi.xml delete mode 100644 en/yaf_request_abstract/getserver.xml delete mode 100644 en/yaf_request_abstract/iscli.xml delete mode 100644 en/yaf_request_abstract/isdispatched.xml delete mode 100644 en/yaf_request_abstract/isget.xml delete mode 100644 en/yaf_request_abstract/ishead.xml delete mode 100644 en/yaf_request_abstract/isoptions.xml delete mode 100644 en/yaf_request_abstract/ispost.xml delete mode 100644 en/yaf_request_abstract/isput.xml delete mode 100644 en/yaf_request_abstract/isrouted.xml delete mode 100644 en/yaf_request_abstract/isxmlhttprequest.xml delete mode 100644 en/yaf_request_abstract/setactionname.xml delete mode 100644 en/yaf_request_abstract/setbaseuri.xml delete mode 100644 en/yaf_request_abstract/setcontrollername.xml delete mode 100644 en/yaf_request_abstract/setdispatched.xml delete mode 100644 en/yaf_request_abstract/setmodulename.xml delete mode 100644 en/yaf_request_abstract/setparam.xml delete mode 100644 en/yaf_request_abstract/setrequesturi.xml delete mode 100644 en/yaf_request_abstract/setrouted.xml delete mode 100644 en/yaf_request_http/clone.xml delete mode 100644 en/yaf_request_http/construct.xml delete mode 100644 en/yaf_request_http/get.xml delete mode 100644 en/yaf_request_http/getcookie.xml delete mode 100644 en/yaf_request_http/getfiles.xml delete mode 100644 en/yaf_request_http/getpost.xml delete mode 100644 en/yaf_request_http/getquery.xml delete mode 100644 en/yaf_request_http/getrequest.xml delete mode 100644 en/yaf_request_http/isxmlhttprequest.xml delete mode 100644 en/yaf_request_simple/clone.xml delete mode 100644 en/yaf_request_simple/construct.xml delete mode 100644 en/yaf_request_simple/get.xml delete mode 100644 en/yaf_request_simple/getcookie.xml delete mode 100644 en/yaf_request_simple/getfiles.xml delete mode 100644 en/yaf_request_simple/getpost.xml delete mode 100644 en/yaf_request_simple/getquery.xml delete mode 100644 en/yaf_request_simple/getrequest.xml delete mode 100644 en/yaf_request_simple/isxmlhttprequest.xml delete mode 100644 en/yaf_response_abstract/appendbody.xml delete mode 100644 en/yaf_response_abstract/clearbody.xml delete mode 100644 en/yaf_response_abstract/clearheaders.xml delete mode 100644 en/yaf_response_abstract/clone.xml delete mode 100644 en/yaf_response_abstract/construct.xml delete mode 100644 en/yaf_response_abstract/destruct.xml delete mode 100644 en/yaf_response_abstract/getbody.xml delete mode 100644 en/yaf_response_abstract/getheader.xml delete mode 100644 en/yaf_response_abstract/prependbody.xml delete mode 100644 en/yaf_response_abstract/response.xml delete mode 100644 en/yaf_response_abstract/setallheaders.xml delete mode 100644 en/yaf_response_abstract/setbody.xml delete mode 100644 en/yaf_response_abstract/setheader.xml delete mode 100644 en/yaf_response_abstract/setredirect.xml delete mode 100644 en/yaf_response_abstract/tostring.xml delete mode 100644 en/yaf_route_interface/route.xml delete mode 100644 en/yaf_route_map/construct.xml delete mode 100644 en/yaf_route_map/route.xml delete mode 100644 en/yaf_route_regex/construct.xml delete mode 100644 en/yaf_route_regex/route.xml delete mode 100644 en/yaf_route_rewrite/construct.xml delete mode 100644 en/yaf_route_rewrite/route.xml delete mode 100644 en/yaf_route_simple/construct.xml delete mode 100644 en/yaf_route_simple/route.xml delete mode 100644 en/yaf_route_static/match.xml delete mode 100644 en/yaf_route_static/route.xml delete mode 100644 en/yaf_route_supervar/construct.xml delete mode 100644 en/yaf_route_supervar/route.xml delete mode 100644 en/yaf_router/addconfig.xml delete mode 100644 en/yaf_router/addroute.xml delete mode 100644 en/yaf_router/construct.xml delete mode 100644 en/yaf_router/getcurrentroute.xml delete mode 100644 en/yaf_router/getroute.xml delete mode 100644 en/yaf_router/getroutes.xml delete mode 100644 en/yaf_router/route.xml delete mode 100644 en/yaf_session/clone.xml delete mode 100644 en/yaf_session/construct.xml delete mode 100644 en/yaf_session/count.xml delete mode 100644 en/yaf_session/current.xml delete mode 100644 en/yaf_session/del.xml delete mode 100644 en/yaf_session/get.xml delete mode 100644 en/yaf_session/getinstance.xml delete mode 100644 en/yaf_session/has.xml delete mode 100644 en/yaf_session/isset.xml delete mode 100644 en/yaf_session/key.xml delete mode 100644 en/yaf_session/next.xml delete mode 100644 en/yaf_session/offsetexists.xml delete mode 100644 en/yaf_session/offsetget.xml delete mode 100644 en/yaf_session/offsetset.xml delete mode 100644 en/yaf_session/offsetunset.xml delete mode 100644 en/yaf_session/rewind.xml delete mode 100644 en/yaf_session/set.xml delete mode 100644 en/yaf_session/sleep.xml delete mode 100644 en/yaf_session/start.xml delete mode 100644 en/yaf_session/unset.xml delete mode 100644 en/yaf_session/valid.xml delete mode 100644 en/yaf_session/wakeup.xml delete mode 100644 en/yaf_view_interface/assign.xml delete mode 100644 en/yaf_view_interface/display.xml delete mode 100644 en/yaf_view_interface/getscriptpath.xml delete mode 100644 en/yaf_view_interface/render.xml delete mode 100644 en/yaf_view_interface/setscriptpath.xml delete mode 100644 en/yaf_view_simple/assign.xml delete mode 100644 en/yaf_view_simple/assignref.xml delete mode 100644 en/yaf_view_simple/clear.xml delete mode 100644 en/yaf_view_simple/construct.xml delete mode 100644 en/yaf_view_simple/display.xml delete mode 100644 en/yaf_view_simple/get.xml delete mode 100644 en/yaf_view_simple/getscriptpath.xml delete mode 100644 en/yaf_view_simple/isset.xml delete mode 100644 en/yaf_view_simple/render.xml delete mode 100644 en/yaf_view_simple/set.xml delete mode 100644 en/yaf_view_simple/setscriptpath.xml diff --git a/en/appconfig.xml b/en/appconfig.xml deleted file mode 100644 index b4d8e9a..0000000 --- a/en/appconfig.xml +++ /dev/null @@ -1,376 +0,0 @@ - - - - - Application Configuration - - You should give an array of config or an ini config file(see - Yaf_Config_Ini) path to - Yaf_Application::__construct. - - - Yaf configurations could be merged with user configurations. The difference - is, Yaf configurations are prefixed with "yaf." or "application.", if there - are both "yaf." and "application.", "application." will be accepcted - preferentially. - - An array of yaf configuration example - - array( - "directory" => dirname(__FILE__), - "dispatcher" => array( - "catchException" => 0, - ), - "view" => array( - "ext" => "phtml", - ), - ), - ); - $app = new Yaf_Application($config); -?> -]]> - - - - an ini file of yaf configuration example - - - - - - - - Yaf Application Config - - - - &Name; - &Default; - &Changelog; - - - - - application.directory - - - - - application.ext - "php" - - - - application.view.ext - "phtml" - - - - application.modules - "index" - - - - application.library - application.directory . "/library" - - - - application.library.directory - application.directory . "/library" - - - - application.library.namespace - "" - - - - application.bootstrap - application.directory . "/Bootstrap" . application.ext - - - - application.baseUri - "" - - - - application.dispatcher.defaultRoute - - - - - application.dispatcher.throwException - 1 - - - - application.dispatcher.catchException - 0 - - - - application.dispatcher.defaultModule - "index" - - - - application.dispatcher.defaultController - "index" - - - - application.dispatcher.defaultAction - "index" - - - - -
-
- - &ini.descriptions.title; - - - - - - application.directory - string - - - - The directory of the application, that is the folder which contains the - "controllers", "views", "models", "plugins" folders. - - - - - This config entry is the only one which doesn't has a default value, which means you should - always define it. - - - - - - - - application.ext - string - - - - The file ext of the PHP script, used in class autoloading( - Yaf_Loader). - - - - - - application.view.ext - string - - - - The file ext of the view template script. - - - - - - application.modules - string - - - - A commaseparated list of the registered modules, used in the route - process, especially while there are more than three segments in the PATH_INFO, - - - Yaf need a way to find out whether the first segment is a module name or not. - - - - - - application.library - string - - - - The local library directory, see Yaf_Loader and - yaf.library. - - - - As of Yaf 2.1.6, this config entry can also be a array, when it is - array, then the library path will try to use the value of application.library.directory - - - - - - - application.library.directory - string - - - - Introduced in Yaf 2.1.6 - - - - - - application.library.namespace - string - - - - A comma separated prefix of local library namespace. - - - Introduced in Yaf 2.1.6 - - - - - - application.bootstrap - string - - - - A absolute path of the Bootstrap class script. - - - - - - application.baseUri - string - - - - Used to remove a fixed prefix of request uri in route process. - Take a example, comes a request with request uri - "/prefix/controller/action". if you set application.baseUri to - "/prefix", then only "/controller/action" will take as the PATH_INFO in - route process. - - - In generally, you have no need to set this value. - - - - - - application.dispatcher.throwException - bool - - - - If this is On, Yaf will throw exception while some error occurring. see - also Yaf_Dispatcher::throwException. - - - - - - application.dispatcher.catchException - bool - - - - If this is On, Yaf will forward to Error controller, Error Action while - there is a uncaught exception. see also - Yaf_Dispatcher::catchException. - - - - - - application.dispatcher.defaultRoute - string - - - - The default Route, if it is not specificed, Static route will be used - as default route, see: - Yaf_Router::addRoute. - - - - - - application.dispatcher.defaultModule - string - - - - The default module name, see also - Yaf_Dispatcher::setDefaultModule. - - - - - - application.dispatcher.defaultController - string - - - - The default controller name, see also - Yaf_Dispatcher::setDefaultController. - - - - - - application.dispatcher.defaultAction - string - - - - The default action name, see also - Yaf_Dispatcher::setDefaultAction. - - - - - - -
- - diff --git a/en/book.xml b/en/book.xml deleted file mode 100644 index ce4fd51..0000000 --- a/en/book.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - Yaf - Yaf - - - &reftitle.intro; - - The Yet Another Framework(Yaf) extension - is a PHP framework, used for developing web application, It provides OO interfaces - to PHPer for developing web application. - - - Yaf require PHP version greater than 5.2.1, and could not run with early - version of PHP. - - - A simple Yaf benchmark can be found at Yaf Performance. - - - - &reference.yaf.setup; - &reference.yaf.constants; - &reference.yaf.examples; - &reference.yaf.appconfig; - &reference.yaf.yaf-application; - &reference.yaf.yaf-bootstrap-abstract; - &reference.yaf.yaf-dispatcher; - &reference.yaf.yaf-config-abstract; - &reference.yaf.yaf-config-ini; - &reference.yaf.yaf-config-simple; - &reference.yaf.yaf-controller-abstract; - &reference.yaf.yaf-action-abstract; - &reference.yaf.yaf-view-interface; - &reference.yaf.yaf-view-simple; - &reference.yaf.yaf-loader; - &reference.yaf.yaf-plugin-abstract; - &reference.yaf.yaf-registry; - &reference.yaf.yaf-request-abstract; - &reference.yaf.yaf-request-http; - &reference.yaf.yaf-request-simple; - &reference.yaf.yaf-response-abstract; - &reference.yaf.yaf-route-interface; - &reference.yaf.yaf-route-map; - &reference.yaf.yaf-route-regex; - &reference.yaf.yaf-route-rewrite; - &reference.yaf.yaf-router; - &reference.yaf.yaf-route-simple; - &reference.yaf.yaf-route-static; - &reference.yaf.yaf-route-supervar; - &reference.yaf.yaf-session; - &reference.yaf.yaf-exception; - &reference.yaf.yaf-exception-typeerror; - &reference.yaf.yaf-exception-startuperror; - &reference.yaf.yaf-exception-dispatchfailed; - &reference.yaf.yaf-exception-routerfailed; - &reference.yaf.yaf-exception-loadfailed; - &reference.yaf.yaf-exception-loadfailed-module; - &reference.yaf.yaf-exception-loadfailed-controller; - &reference.yaf.yaf-exception-loadfailed-action; - &reference.yaf.yaf-exception-loadfailed-view; - - - - diff --git a/en/configure.xml b/en/configure.xml deleted file mode 100644 index 16754e4..0000000 --- a/en/configure.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - -
- &reftitle.install; - - - &pecl.info; - &url.pecl.package;yaf - - - -
- - - diff --git a/en/constants.xml b/en/constants.xml deleted file mode 100644 index f413b22..0000000 --- a/en/constants.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - - - &reftitle.constants; - &extension.constants; - - - - - YAF_VERSION - (string) - - - - - - - - - YAF_ENVIRON - (string) - - - - - - - - - YAF_ERR_STARTUP_FAILED - (integer) - - - - - - - - - YAF_ERR_ROUTE_FAILED - (integer) - - - - - - - - - YAF_ERR_DISPATCH_FAILED - (integer) - - - - - - - - - YAF_ERR_AUTOLOAD_FAILED - (integer) - - - - - - - - - YAF_ERR_NOTFOUND_MODULE - (integer) - - - - - - - - - YAF_ERR_NOTFOUND_CONTROLLER - (integer) - - - - - - - - - YAF_ERR_NOTFOUND_ACTION - (integer) - - - - - - - - - YAF_ERR_NOTFOUND_VIEW - (integer) - - - - - - - - - YAF_ERR_CALL_FAILED - (integer) - - - - - - - - - YAF_ERR_TYPE_ERROR - (integer) - - - - - - - - - - - diff --git a/en/examples.xml b/en/examples.xml deleted file mode 100644 index 75c877e..0000000 --- a/en/examples.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - - - &reftitle.examples; - - A classic Application directory layout - - - - - - Entry - index.php in the top directory is the only way in of the application, you should rewrite all request to it(you can use .htaccess in Apache+php_mod) - -bootstrap() //call bootstrap methods defined in Bootstrap.php - ->run(); -?> -]]> - - - - - Rewrite rule - - "/index.php/$1", - ) -} -]]> - - - - - Application config - - - - - - - Default controller - -view->word = "hello world"; - } -} -?> -?> -]]> - - - - - Default view template - - - - Hello World - - - - - -]]> - - - - - Run the Applicatioin - &example.outputs.similar; - - - - Hello World - - - hello world - - -]]> - - - - - diff --git a/en/ini.xml b/en/ini.xml deleted file mode 100644 index 917c16b..0000000 --- a/en/ini.xml +++ /dev/null @@ -1,297 +0,0 @@ - - - -
- &reftitle.runtime; - &extension.runtime; - - - Yaf &ConfigureOptions; - - - - &Name; - &Default; - &Changeable; - &Changelog; - - - - - yaf.library - - its PHP_INI_ALL value - - - - yaf.action_prefer - 0 - its PHP_INI_ALL value - - - - yaf.lowcase_path - 0 - its PHP_INI_ALL value - - - - yaf.use_spl_autoload - 0 - its PHP_INI_ALL value - - - - yaf.forward_limit - 5 - its PHP_INI_ALL value - - - - yaf.name_suffix - 1 - its PHP_INI_ALL value - - - - yaf.name_separator - - its PHP_INI_ALL value - - - - yaf.cache_config - 0 - its PHP_INI_SYS value - - - - yaf.st_compatible - 0 - its PHP_INI_ALL value - - - - yaf.environ - product - its PHP_INI_ALL value - - - - yaf.use_namespace - 0 - its PHP_INI_ALL value - - - - -
-
- - &ini.descriptions.title; - - - - - - yaf.library - string - - - - The global library path, Yaf_loader will search global library in this - directory. - - - - - - yaf.action_prefer - integer - - - - If there is only one part in PATH_INFO, should it consider as a - controller or action. - - - If this configure On, it will be considered as a Action name. - - - - - - yaf.lowcase_path - integer - - - - Whether lowercase all the path during the class autoloading. - - - - - - yaf.use_spl_autoload - integer - - - - When this value is On, if Yaf_Loader can not - find a class, it will return FALSE, then give chance to other auto - load function to be called. - - - - When this value is Off(default), - Yaf_Loader::autoload will always return TRUE. - - - - - - yaf.forward_limit - integer - - - - The max forward count, default is 5. that means you can have a max - value of 5 in the forward stack. - - - This is a protection for prevent recursive - Yaf_Controller_Abstract::forward. - - - - - - yaf.name_suffix - integer - - - - When this On, Yaf_Loader will indetify a class by it's suffix to decide - whether it is a MVC Class. - - - When this Off, Yaf_Loader will look at the prefix of the class name. - - - - - - yaf.name_separator - string - - - - When this is not empty, Yaf_Loader will identify the class suffix and - string value of this. - - - For example, when this value is "_", Yaf_Loader will take Index_Controller as - a Controller Class, IndexController as a normal class. - - - - - - yaf.cache_config - integer - - - - If this is On, and in the meantime you are using ini config file as the - parameter of Yaf_Application, the - compiling result of the ini config file will be cached in the PHP - process. - - - Yaf examine the mtime of the ini file, if it was changed since - last compiling, Yaf will reload it. - - - - - Yaf use the ini file path as the cache entry key, so do use the - absolute path in ini file path, otherwise there might be some - conflicts if two application use the same relative path of ini - config. - - - - - - - - yaf.st_compatible - integer - - - - - - - - - - yaf.environ - string - - - - This value is "product" by default, used for Yaf to fetch the config - section of a ini config file. - - - That is, if this value is "product", Yaf will use the section named - "product" in the ini config file(the first parameter of the - Yaf_Application) as the final config of the - Yaf_Application. - - - - - - - yaf.use_namespace - integer - - - - Only works as of PHP 5.3, if this value is On, All class of Yaf will - named in namespace style. - - - For example, Yaf_Route_Rewrite => \Yaf\Route\Rewrite, - Yaf_Controller_Abstract => \Yaf\Controller_Abstract (Abstract is the - keyword, can not used as a class name) - - - - - - -
- - diff --git a/en/reference.xml b/en/reference.xml deleted file mode 100644 index f113695..0000000 --- a/en/reference.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Yaf &Functions; - - &reference.yaf.entities.functions; - - - - diff --git a/en/setup.xml b/en/setup.xml deleted file mode 100644 index 7496fce..0000000 --- a/en/setup.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - &reftitle.setup; - - -
- &reftitle.required; - &no.requirement; -
- - - -
- &reftitle.install; - - &pecl.moved; - - - &pecl.info; - &url.pecl.package;yaf. - - - &pecl.windows.download; - -
- - - - &reference.yaf.ini; - - - -
- &reftitle.resources; - &no.resource; -
- - -
- - diff --git a/en/versions.xml b/en/versions.xml deleted file mode 100644 index 29aa81d..0000000 --- a/en/versions.xml +++ /dev/null @@ -1,486 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/en/yaf-action-abstract.xml b/en/yaf-action-abstract.xml deleted file mode 100644 index 3f07a92..0000000 --- a/en/yaf-action-abstract.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - The Yaf_Action_Abstract class - Yaf_Action_Abstract - - - - -
- &reftitle.intro; - - A action can be defined in a separate file in Yaf(see - Yaf_Controller_Abstract). that is a action method - can also be a Yaf_Action_Abstract class. - - - Since there should be a entry point which can be called by Yaf (as of PHP 5.3, - there is a new magic method __invoke, but Yaf is not only works with PHP 5.3+, - Yaf choose another magic method execute), you must implement the abstract method - Yaf_Action_Abstract::execute in your custom - action class. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Action_Abstract - - - - - Yaf_Action_Abstract - - - - extends - Yaf_Controller_Abstract - - - - &Properties; - - protected - _controller - - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - _module - - - - - - _name - - - - - - _request - - - - - - _response - - - - - - _invoke_args - - - - - - _view - - - - - - _controller - - - - - -
- - - -
- - &reference.yaf.entities.yaf-action-abstract; - -
- - diff --git a/en/yaf-application.xml b/en/yaf-application.xml deleted file mode 100644 index 09abbf9..0000000 --- a/en/yaf-application.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - The Yaf_Application class - Yaf_Application - Yaf\Application - - - - -
- &reftitle.intro; - - Yaf_Application provides a bootstrapping facility - for applications which provides reusable resources, common- and - module-based bootstrap classes and dependency checking. - - - - - Yaf_Application implements the singleton - pattern, and Yaf_Application can not be - serialized or unserialized which will cause problem when you try - to use PHPUnit to write some test case for Yaf. - - - You may use @backupGlobals annotation of PHPUnit to control the - backup and restore operations for global variables. thus can solve - this promblem. - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Application - - - - - final - Yaf_Application - - - - &Properties; - - protected - config - - - protected - dispatcher - - - protected - static - _app - - - protected - _modules - - - protected - _running - - - protected - _environ - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - config - - - - - - dispatcher - - - - - - _app - - - - - - _modules - - - - - - _running - - - - - - _environ - - - - - -
- - - -
- - &reference.yaf.entities.yaf-application; - -
- - diff --git a/en/yaf-bootstrap-abstract.xml b/en/yaf-bootstrap-abstract.xml deleted file mode 100644 index 4417af1..0000000 --- a/en/yaf-bootstrap-abstract.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - The Yaf_Bootstrap_Abstract class - Yaf_Bootstrap_Abstract - - - - -
- &reftitle.intro; - - Bootstrap is a mechanism used to do some intial config before a - Application run. - - - User may define their own Bootstrap class by inheriting - Yaf_Bootstrap_Abstract - - - Any method declared in Bootstrap class with leading "_init", will be - called by Yaf_Application::bootstrap one by one - according to their defined order. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Bootstrap_Abstract - - - - - abstract - Yaf_Bootstrap_Abstract - - - &Properties; - - &Methods; - - - -
- -
- -
- - diff --git a/en/yaf-config-abstract.xml b/en/yaf-config-abstract.xml deleted file mode 100644 index a8fdfbd..0000000 --- a/en/yaf-config-abstract.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - The Yaf_Config_Abstract class - Yaf_Config_Abstract - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Config_Abstract - - - - - abstract - Yaf_Config_Abstract - - - - &Properties; - - protected - _config - - - protected - _readonly - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _config - - - - - - _readonly - - - - - -
- - - -
- - &reference.yaf.entities.yaf-config-abstract; - -
- - diff --git a/en/yaf-config-ini.xml b/en/yaf-config-ini.xml deleted file mode 100644 index 83d55f6..0000000 --- a/en/yaf-config-ini.xml +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - The Yaf_Config_Ini class - Yaf_Config_Ini - - - - -
- &reftitle.intro; - - Yaf_Config_Ini enables developers to store configuration data in a - familiar INI format and read them in the application by using nested object - property syntax. The INI format is specialized to provide both the ability - to have a hierarchy of configuration data keys and inheritance between - configuration data sections. Configuration data hierarchies are supported - by separating the keys with the dot or period character ("."). A section - may extend or inherit from another section by following the section name - with a colon character (":") and the name of the section from which data are - to be inherited. - - - Yaf_Config_Ini utilizes the » parse_ini_file() PHP function. Please review - this documentation to be aware of its specific behaviors, which propagate - to Yaf_Config_Ini, such as how the special values of "TRUE", "FALSE", - "yes", "no", and "NULL" are handled. - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Config_Ini - - - - - Yaf_Config_Ini - - - - extends - Yaf_Config_Abstract - - - - Iterator - - - - Traversable - - - - ArrayAccess - - - - Countable - - - - &Properties; - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - _config - - - - - - _readonly - - - - - -
- - -
- &reftitle.examples; - - <function>Yaf_Config_Ini</function>example - - This example illustrates a basic use of Yaf_Config_Ini for loading - configuration data from an INI file. In this example there are - configuration data for both a production system and for a staging system. - Because the staging system configuration data are very similar to those - for production, the staging section inherits from the production section. - In this case, the decision is arbitrary and could have been written - conversely, with the production section inheriting from the staging - section, though this may not be the case for more complex situations. - Suppose, then, that the following configuration data are contained in - /path/to/config.ini: - - - - - -database->params->host); -var_dump($config->database->params->dbname); -var_dump($config->get("database.params.username")); -?> -]]> - - &example.outputs.similar; - - - - -
- -
- - &reference.yaf.entities.yaf-config-ini; - -
- - diff --git a/en/yaf-config-simple.xml b/en/yaf-config-simple.xml deleted file mode 100644 index ed2a09d..0000000 --- a/en/yaf-config-simple.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - The Yaf_Config_Simple class - Yaf_Config_Simple - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Config_Simple - - - - - Yaf_Config_Simple - - - - extends - Yaf_Config_Abstract - - - - Iterator - - - - Traversable - - - - ArrayAccess - - - - Countable - - - - &Properties; - - protected - _readonly - - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - _config - - - - - - _readonly - - - - - -
- - - -
- - &reference.yaf.entities.yaf-config-simple; - -
- - diff --git a/en/yaf-controller-abstract.xml b/en/yaf-controller-abstract.xml deleted file mode 100644 index 39a752d..0000000 --- a/en/yaf-controller-abstract.xml +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - The Yaf_Controller_Abstract class - Yaf_Controller_Abstract - - - - -
- &reftitle.intro; - - Yaf_Controller_Abstract is the heart of Yaf's - system. MVC stands for Model-View-Controller and is a design pattern - targeted at separating application logic from display logic. - - - Every custom controller shall inherit - Yaf_Controller_Abstract. - - - You will find that you can not define __construct function for your custom - controller, thus, Yaf_Controller_Abstract provides - a magic method: Yaf_Controller_Abstract::init(). - - - If you have defined a init() method in your custom controller, it will be - called as long as the controller was instantiated. - - - Action may have arguments, when a request coming, if there are the same - name variable in the request parameters(see - Yaf_Request_Abstract::getParam) after routed, - Yaf will pass them to the action method(see - Yaf_Action_Abstract::execute). - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Controller_Abstract - - - - - abstract - Yaf_Controller_Abstract - - - - &Properties; - - public - actions - - - protected - _module - - - protected - _name - - - protected - _request - - - protected - _response - - - protected - _invoke_args - - - protected - _view - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - actions - - - You can also define a action method in a separate PHP script by using - this property and Yaf_Action_Abstract. - - define action in a separate file - - "actions/Dummy_action.php", - ); - - /* action method may have arguments */ - public indexAction($name, $id) { - assert($name == $this->getRequest()->getParam("name")); - assert($id == $this->_request->getParam("id")); - } -} -?> -]]> - - - - Dummy_action.php - - -]]> - - - - - - - _module - - - module name - - - - - _name - - - - - - _request - - - the request object - - - - - _response - - - - - - _invoke_args - - - - - - _view - - - view engine object - - - - -
- - - -
- - &reference.yaf.entities.yaf-controller-abstract; - -
- - diff --git a/en/yaf-dispatcher.xml b/en/yaf-dispatcher.xml deleted file mode 100644 index ac32f20..0000000 --- a/en/yaf-dispatcher.xml +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - The Yaf_Dispatcher class - Yaf_Dispatcher - - - - -
- &reftitle.intro; - - Yaf_Dispatcher 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. - - - Yaf_Dispatcher 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. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Dispatcher - - - - - final - Yaf_Dispatcher - - - - &Properties; - - protected - _router - - - protected - _view - - - protected - _request - - - protected - _plugins - - - protected - static - _instance - - - protected - _auto_render - - - protected - _return_response - - - protected - _instantly_flush - - - protected - _default_module - - - protected - _default_controller - - - protected - _default_action - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _router - - - - - - _view - - - - - - _request - - - - - - _plugins - - - - - - _instance - - - - - - _auto_render - - - - - - _return_response - - - - - - _instantly_flush - - - - - - _default_module - - - - - - _default_controller - - - - - - _default_action - - - - - -
- - - -
- - &reference.yaf.entities.yaf-dispatcher; - -
- - diff --git a/en/yaf-exception-dispatchfailed.xml b/en/yaf-exception-dispatchfailed.xml deleted file mode 100644 index ff2b75a..0000000 --- a/en/yaf-exception-dispatchfailed.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - The Yaf_Exception_DispatchFailed class - Yaf_Exception_DispatchFailed - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception_DispatchFailed - - - - - Yaf_Exception_DispatchFailed - - - - extends - Yaf_Exception - - - - &Properties; - - &Methods; - - &InheritedMethods; - - - - - -
- - - - - - -
- -
- - diff --git a/en/yaf-exception-loadfailed-action.xml b/en/yaf-exception-loadfailed-action.xml deleted file mode 100644 index b8e63c1..0000000 --- a/en/yaf-exception-loadfailed-action.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - The Yaf_Exception_LoadFailed_Action class - Yaf_Exception_LoadFailed_Action - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception_LoadFailed_Action - - - - - Yaf_Exception_LoadFailed_Action - - - - extends - Yaf_Exception_LoadFailed - - - - &Properties; - - - &Methods; - - &InheritedMethods; - - - - - -
- - - - - - -
- -
- - diff --git a/en/yaf-exception-loadfailed-controller.xml b/en/yaf-exception-loadfailed-controller.xml deleted file mode 100644 index c83d21e..0000000 --- a/en/yaf-exception-loadfailed-controller.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - The Yaf_Exception_LoadFailed_Controller class - Yaf_Exception_LoadFailed_Controller - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception_LoadFailed_Controller - - - - - Yaf_Exception_LoadFailed_Controller - - - - extends - Yaf_Exception_LoadFailed - - - - &Properties; - - &Methods; - - &InheritedMethods; - - - - -
- - - - - -
- -
- - diff --git a/en/yaf-exception-loadfailed-module.xml b/en/yaf-exception-loadfailed-module.xml deleted file mode 100644 index eba7d6b..0000000 --- a/en/yaf-exception-loadfailed-module.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - The Yaf_Exception_LoadFailed_Module class - Yaf_Exception_LoadFailed_Module - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception_LoadFailed_Module - - - - - Yaf_Exception_LoadFailed_Module - - - - extends - Yaf_Exception_LoadFailed - - - - &Properties; - - - &Methods; - - &InheritedMethods; - - - - - -
- - - - - -
- -
- - diff --git a/en/yaf-exception-loadfailed-view.xml b/en/yaf-exception-loadfailed-view.xml deleted file mode 100644 index 21715f9..0000000 --- a/en/yaf-exception-loadfailed-view.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - The Yaf_Exception_LoadFailed_View class - Yaf_Exception_LoadFailed_View - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception_LoadFailed_View - - - - - Yaf_Exception_LoadFailed_View - - - - extends - Yaf_Exception_LoadFailed - - - - &Properties; - - - &Methods; - - &InheritedMethods; - - - - - -
- - - - - - -
- -
- - diff --git a/en/yaf-exception-loadfailed.xml b/en/yaf-exception-loadfailed.xml deleted file mode 100644 index 8223ed6..0000000 --- a/en/yaf-exception-loadfailed.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - The Yaf_Exception_LoadFailed class - Yaf_Exception_LoadFailed - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception_LoadFailed - - - - - Yaf_Exception_LoadFailed - - - - extends - Yaf_Exception - - - - &Properties; - - &Methods; - - &InheritedMethods; - - - - - -
- - - - - - -
- -
- - diff --git a/en/yaf-exception-routerfailed.xml b/en/yaf-exception-routerfailed.xml deleted file mode 100644 index 8edcd29..0000000 --- a/en/yaf-exception-routerfailed.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - The Yaf_Exception_RouterFailed class - Yaf_Exception_RouterFailed - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception_RouterFailed - - - - - Yaf_Exception_RouterFailed - - - - extends - Yaf_Exception - - - - &Properties; - - - &Methods; - - &InheritedMethods; - - - - - -
- - - - - - -
- -
- - diff --git a/en/yaf-exception-startuperror.xml b/en/yaf-exception-startuperror.xml deleted file mode 100644 index 43a728c..0000000 --- a/en/yaf-exception-startuperror.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - The Yaf_Exception_StartupError class - Yaf_Exception_StartupError - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception_StartupError - - - - - Yaf_Exception_StartupError - - - - extends - Yaf_Exception - - - - &Properties; - - - &Methods; - - &InheritedMethods; - - - - - -
- - - - - - -
- -
- - diff --git a/en/yaf-exception-typeerror.xml b/en/yaf-exception-typeerror.xml deleted file mode 100644 index c956b49..0000000 --- a/en/yaf-exception-typeerror.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - The Yaf_Exception_TypeError class - Yaf_Exception_TypeError - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception_TypeError - - - - - Yaf_Exception_TypeError - - - - extends - Yaf_Exception - - - - &Properties; - - - &Methods; - - &InheritedMethods; - - - - - -
- - - - - - -
- -
- - diff --git a/en/yaf-exception.xml b/en/yaf-exception.xml deleted file mode 100644 index da2af13..0000000 --- a/en/yaf-exception.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - The Yaf_Exception class - Yaf_Exception - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Exception - - - - - Yaf_Exception - - - - extends - Exception - - - - &Properties; - - protected - message - - - protected - code - - - protected - previous - - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - message - - - - - - code - - - - - - file - - - - - - line - - - - - - previous - - - - - -
- - - -
- - &reference.yaf.entities.yaf-exception; - -
- - diff --git a/en/yaf-loader.xml b/en/yaf-loader.xml deleted file mode 100644 index e3fda14..0000000 --- a/en/yaf-loader.xml +++ /dev/null @@ -1,292 +0,0 @@ - - - - - - The Yaf_Loader class - Yaf_Loader - - - - -
- &reftitle.intro; - - Yaf_Loader introduces a comprehensive autoloading - solution for Yaf. - - - The first time an instance of Yaf_Application is retrieved, - Yaf_Loader will instance a singleton, and registers itself with - spl_autoload. You retrieve an instance using the Yaf_Loader::getInstance - - - Yaf_Loader attempt to load a class only one shot, if - failed, depend on yaf.use_spl_auload, if this - config is On Yaf_Loader::autoload will return - FALSE, thus give the chance to other autoload function. if it is Off - (by default), Yaf_Loader::autoload will return - TRUE, and more important is that a very usefull warning will be triggerd - (very usefull to find out why a class could not be loaded). - - - Please keep yaf.use_spl_autoload Off unless there is some library have - their own autoload mechanism and impossible to rewrite it. - - - - - By default, Yaf_Loader assume all library (class - defined script) store in the global library - directory, which is defined in the php.ini(yaf.library). - - - - If you want Yaf_Loader search some - classes(libraries) in the local class - directory(which is defined in application.ini, and by default, - it is application.directory . "/libraray"), - you should register the class prefix using the - Yaf_Loader::registerLocalNameSpace - - - - Let's see some examples(assuming APPLICATION_PATH is application.directory): - - Config example - - - - - - Assuming the following local name space registerd: - - Register localnamespace - -registerLocalNameSpace(array("Foo", "Bar")); - } -?> -]]> - - - - Then the autoload examples: - - Load class example - - - // APPLICATION_PATH/library/Foo/Bar/Test.php - -class GLO_Name => - // /global_dir/Glo/Name.php - -class BarNon_Test - // /global_dir/Barnon/Test.php -]]> - - - - As of PHP 5.3, you can use namespace: - - Load namespace class example - - - // APPLICATION_PATH/library/Foo/Bar/Dummy.php - -class \FooBar\Bar\Dummy => - // /global_dir/FooBar/Bar/Dummy.php -]]> - - - - - - You may noticed that all the folder wth the first letter capitalized, you can make them - lowercase by set yaf.lowcase_path = On in php.ini - - - - Yaf_Loader is also designed to load the MVC classes, - and the rule is: - - MVC class loading example - - -// APPLICATION_PATH/controllers/ - -Model Classes => -// APPLICATION_PATH/models/ - -Plugin Classes => -// APPLICATION_PATH/plugins/ -]]> - - - - Yaf identify a class's suffix(this is by default, you can also change to - the prefix by change the configure yaf.name_suffix) to decide whether it - is a MVC class: - - MVC class distinctions - - - // ***Controller - -Model Classes => - // ***Model - -Plugin Classes => - // ***Plugin -]]> - - - - some examples: - - MVC loading example - - - // APPLICATION_PATH/models/Data.php - -class DummyPlugin => - // APPLICATION_PATH/plugins/Dummy.php - -class A_B_TestModel => - // APPLICATION_PATH/models/A/B/Test.php -]]> - - - - also, the directory will be affected by yaf.lowcase_path. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Loader - - - - - Yaf_Loader - - - - &Properties; - - protected - _local_ns - - - protected - _library - - - protected - _global_library - - - static - _instance - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _local_ns - - - - - - _library - - - By default, this value is application.directory . "/library", - you can change this either in the application.ini(application.library) or call to - Yaf_Loader::setLibraryPath - - - - - _global_library - - - - - - _instance - - - - - -
- - - -
- - - &reference.yaf.entities.yaf-loader; - -
- - diff --git a/en/yaf-plugin-abstract.xml b/en/yaf-plugin-abstract.xml deleted file mode 100644 index 1ff5f17..0000000 --- a/en/yaf-plugin-abstract.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - The Yaf_Plugin_Abstract class - Yaf_Plugin_Abstract - - - - -
- &reftitle.intro; - - 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. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Plugin_Abstract - - - - - Yaf_Plugin_Abstract - - - - - &Methods; - - - - -
- -
- - &reference.yaf.entities.yaf-plugin-abstract; - -
- - diff --git a/en/yaf-registry.xml b/en/yaf-registry.xml deleted file mode 100644 index bdecbd4..0000000 --- a/en/yaf-registry.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - The Yaf_Registry class - Yaf_Registry - - - - -
- &reftitle.intro; - - All methods of Yaf_Registry declared as static, making it - unversally accessible. This provides the ability to get or set any custom - data from anyway in your code as necessary. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Registry - - - - - Yaf_Registry - - - - &Properties; - - static - _instance - - - protected - _entries - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _instance - - - - - - _entries - - - - - -
- - - -
- - &reference.yaf.entities.yaf-registry; - -
- - diff --git a/en/yaf-request-abstract.xml b/en/yaf-request-abstract.xml deleted file mode 100644 index cfdb839..0000000 --- a/en/yaf-request-abstract.xml +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - The Yaf_Request_Abstract class - Yaf_Request_Abstract - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Request_Abstract - - - - - Yaf_Request_Abstract - - - - Constants - - const - string - Yaf_Request_Abstract::SCHEME_HTTP - http - - - const - string - Yaf_Request_Abstract::SCHEME_HTTPS - https - - - &Properties; - - public - module - - - public - controller - - - public - action - - - public - method - - - protected - params - - - protected - language - - - protected - _exception - - - protected - _base_uri - - - protected - uri - - - protected - dispatched - - - protected - routed - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - module - - - - - - controller - - - - - - action - - - - - - method - - - - - - params - - - - - - language - - - - - - _exception - - - - - - _base_uri - - - - - - uri - - - - - - dispatched - - - - - - routed - - - - - -
- - - - -
- &reftitle.constants; - - - - Yaf_Request_Abstract::SCHEME_HTTP - - - - - - - Yaf_Request_Abstract::SCHEME_HTTPS - - - - - - -
- - - -
- - &reference.yaf.entities.yaf-request-abstract; - -
- - diff --git a/en/yaf-request-http.xml b/en/yaf-request-http.xml deleted file mode 100644 index c94f39e..0000000 --- a/en/yaf-request-http.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - The Yaf_Request_Http class - Yaf_Request_Http - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Request_Http - - - - - Yaf_Request_Http - - - - extends - Yaf_Request_Abstract - - - - &Properties; - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - module - - - - - - controller - - - - - - action - - - - - - method - - - - - - params - - - - - - language - - - - - - _exception - - - - - - _base_uri - - - - - - uri - - - - - - dispatched - - - - - - routed - - - - - -
- - - -
- - &reference.yaf.entities.yaf-request-http; - -
- - diff --git a/en/yaf-request-simple.xml b/en/yaf-request-simple.xml deleted file mode 100644 index 057fbc3..0000000 --- a/en/yaf-request-simple.xml +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - The Yaf_Request_Simple class - Yaf_Request_Simple - - - - -
- &reftitle.intro; - - Yaf_Request_Simple is particularlly used for test - puporse. ie. simulate some espacial request under CLI mode. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Request_Simple - - - - - Yaf_Request_Simple - - - - extends - Yaf_Request_Abstract - - - - Constants - - const - string - Yaf_Request_Simple::SCHEME_HTTP - http - - - const - string - Yaf_Request_Simple::SCHEME_HTTPS - https - - - &Properties; - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - module - - - - - - controller - - - - - - action - - - - - - method - - - - - - params - - - - - - language - - - - - - _exception - - - - - - _base_uri - - - - - - uri - - - - - - dispatched - - - - - - routed - - - - - -
- - - - -
- &reftitle.constants; - - - - Yaf_Request_Simple::SCHEME_HTTP - - - - - - - Yaf_Request_Simple::SCHEME_HTTPS - - - - - - -
- - - -
- - &reference.yaf.entities.yaf-request-simple; - -
- - diff --git a/en/yaf-response-abstract.xml b/en/yaf-response-abstract.xml deleted file mode 100644 index 7206d91..0000000 --- a/en/yaf-response-abstract.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - The Yaf_Response_Abstract class - Yaf_Response_Abstract - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Response_Abstract - - - - - Yaf_Response_Abstract - - - - &Properties; - - protected - _header - - - protected - _body - - - protected - _sendheader - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _header - - - - - - _body - - - - - - _sendheader - - - - - -
- - - -
- - &reference.yaf.entities.yaf-response-abstract; - -
- - diff --git a/en/yaf-response-cli.xml b/en/yaf-response-cli.xml deleted file mode 100644 index c9cc45e..0000000 --- a/en/yaf-response-cli.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - The Yaf_Response_Cli class - Yaf_Response_Cli - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Response_Cli - - - - - Yaf_Response_Cli - - - - extends - Yaf_Response_Abstract - - - - &Properties; - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - _header - - - - - - _body - - - - - - _sendheader - - - - - -
- - - -
- - &reference.yaf.entities.yaf-response-cli; - -
- - diff --git a/en/yaf-response-http.xml b/en/yaf-response-http.xml deleted file mode 100644 index 6c45496..0000000 --- a/en/yaf-response-http.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - The Yaf_Response_Http class - Yaf_Response_Http - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Response_Http - - - - - Yaf_Response_Http - - - - extends - Yaf_Response_Abstract - - - - &Properties; - - protected - _sendheader - - - protected - _response_code - - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - _header - - - - - - _body - - - - - - _sendheader - - - - - - _response_code - - - - - -
- - - -
- - &reference.yaf.entities.yaf-response-http; - -
- - diff --git a/en/yaf-route-interface.xml b/en/yaf-route-interface.xml deleted file mode 100644 index aaac8dc..0000000 --- a/en/yaf-route-interface.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - The Yaf_Route_Interface class - Yaf_Route_Interface - - - - -
- &reftitle.intro; - - Yaf_Route_Interface used for developer defined - their custom route. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Route_Interface - - - - - Yaf_Route_Interface - - - - - &Methods; - - - - -
- -
- - &reference.yaf.entities.yaf-route-interface; - -
- - diff --git a/en/yaf-route-map.xml b/en/yaf-route-map.xml deleted file mode 100644 index bb52fd9..0000000 --- a/en/yaf-route-map.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - The Yaf_Route_Map class - Yaf_Route_Map - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Route_Map - - - - - Yaf_Route_Map - - - - Yaf_Route_Interface - - - - &Properties; - - protected - _ctl_router - - - protected - _delimeter - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _ctl_router - - - - - - _delimeter - - - - - -
- - - -
- - &reference.yaf.entities.yaf-route-map; - -
- - diff --git a/en/yaf-route-regex.xml b/en/yaf-route-regex.xml deleted file mode 100644 index 98e4c9e..0000000 --- a/en/yaf-route-regex.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - The Yaf_Route_Regex class - Yaf_Route_Regex - - - - -
- &reftitle.intro; - - Yaf_Route_Regex is the most flexible route among - the Yaf built-in routes. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Route_Regex - - - - - Yaf_Route_Regex - - - - extends - Yaf_Route_Interface - - - - Yaf_Route_Interface - - - - &Properties; - - protected - _route - - - protected - _default - - - protected - _maps - - - protected - _verify - - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - _route - - - - - - _default - - - - - - _maps - - - - - - _verify - - - - - -
- - - -
- - &reference.yaf.entities.yaf-route-regex; - -
- - diff --git a/en/yaf-route-rewrite.xml b/en/yaf-route-rewrite.xml deleted file mode 100644 index b3af720..0000000 --- a/en/yaf-route-rewrite.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - The Yaf_Route_Rewrite class - Yaf_Route_Rewrite - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Route_Rewrite - - - - - Yaf_Route_Rewrite - - - - extends - Yaf_Route_Interface - - - - Yaf_Route_Interface - - - - &Properties; - - protected - _route - - - protected - _default - - - protected - _verify - - - - &Methods; - - - &InheritedMethods; - - - - - -
- - - -
- &reftitle.properties; - - - _route - - - - - - _default - - - - - - _verify - - - - - -
- - - -
- - &reference.yaf.entities.yaf-route-rewrite; - -
- - diff --git a/en/yaf-route-simple.xml b/en/yaf-route-simple.xml deleted file mode 100644 index 3f9cf92..0000000 --- a/en/yaf-route-simple.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - The Yaf_Route_Simple class - Yaf_Route_Simple - - - - -
- &reftitle.intro; - - Yaf_Route_Simple will match the query string, and - find the route info. - - - all you need to do is tell Yaf_Route_Simple what key in the $_GET is - module, what key is controller, and what key is action. - - - Yaf_Route_Simple::route will always return TRUE, - so it is important put Yaf_Route_Simple in the front of the Route stack, - otherwise all the other routes will not be called. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Route_Simple - - - - - Yaf_Route_Simple - - - - Yaf_Route_Interface - - - - &Properties; - - protected - controller - - - protected - module - - - protected - action - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - controller - - - - - - module - - - - - - action - - - - - -
- - - -
- - &reference.yaf.entities.yaf-route-simple; - -
- - diff --git a/en/yaf-route-static.xml b/en/yaf-route-static.xml deleted file mode 100644 index f428a28..0000000 --- a/en/yaf-route-static.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - The Yaf_Route_Static class - Yaf_Route_Static - - - - -
- &reftitle.intro; - - Defaultly, Yaf_Router only have a - Yaf_Route_Static as its default route. - - - And Yaf_Route_Static is designed to handle the - 80% requirement. - - - please *NOTE* that it is unecessary to instance a Yaf_Route_Static, also - unecesary to add it into Yaf_Router's route stack, - since there is always be one in Yaf_Router's route - stack, and always be called at the last time. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Route_Static - - - - - Yaf_Route_Static - - - - Yaf_Router - - - - - &Methods; - - - - -
- -
- - &reference.yaf.entities.yaf-route-static; - -
- - diff --git a/en/yaf-route-supervar.xml b/en/yaf-route-supervar.xml deleted file mode 100644 index ffd01ec..0000000 --- a/en/yaf-route-supervar.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - The Yaf_Route_Supervar class - Yaf_Route_Supervar - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Route_Supervar - - - - - Yaf_Route_Supervar - - - - Yaf_Route_Interface - - - - &Properties; - - protected - _var_name - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _var_name - - - - - -
- - - -
- - &reference.yaf.entities.yaf-route-supervar; - -
- - diff --git a/en/yaf-router.xml b/en/yaf-router.xml deleted file mode 100644 index acf127f..0000000 --- a/en/yaf-router.xml +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - The Yaf_Router class - Yaf_Router - - - - -
- &reftitle.intro; - - Yaf_Router is the standard framework router. Routing is - the process of taking a URI endpoint (that part of the URI which comes - after the base URL) and decomposing it into parameters to determine which - module, controller, and action of that controller should receive the - request. This values of the module, controller, action and other parameters - are packaged into a Yaf_Request_Abstract object which is then - processed by Yaf_Dispatcher. Routing occurs only once: - when the request is initially received and before the first controller is - dispatched. - - Yaf_Router is designed to allow for mod_rewrite-like - functionality using pure PHP structures. It is very loosely based on Ruby - on Rails routing and does not require any prior knowledge of webserver URL - rewriting. It is designed to work with a single Apache mod_rewrite rule - (one of): - - Rewrite rule for Apache - - - - - or (preferred): - - Rewrite rule for Apache - - - - - If using Lighttpd, the following rewrite rule is valid: - - Rewrite rule for Lighttpd - - "/index.php?$1", - ".*\.(js|ico|gif|jpg|png|css|html)$" => "$0", - "" => "/index.php" -) -]]> - - - If using Nginx, use the following rewrite rule: - - Rewrite rule for Nginx - - - - - -
- - -
- Default route - - Yaf_Router comes preconfigured with a default route, which - will match URIs in the shape of controller/action. Additionally, a module - name may be specified as the first path element, allowing URIs of the form - module/controller/action. Finally, it will also match any additional - parameters appended to the URI by default - - controller/action/var1/value1/var2/value2. - - - Module name must be defined in config, considering application.module="Index,Foo,Bar", - in this case, only index, foo and bar can be considerd as a module name. - if doesn't config, there is only one module named "Index". - - - - - - Some examples of how such routes are matched: - - <classname>Yaf_Route_Static</classname>(default - route)example - - array( - "modules" => "Index,Blog", - ), -); - -Controller only: -http://example/news - controller == news -Action only(when defined yaf.action_prefer=1 in php.ini) - action == news - -Invalid module maps to controller name: -http://example/foo - controller == foo - -Module + controller: -http://example/blog/archive - module == blog - controller == archive - -Module + controller + action: -http://example/blog/archive/list - module == blog - controller == archive - action == list - -Module + controller + action + params: -http://example/blog/archive/list/sort/alpha/date/desc - module == blog - controller == archive - action == list - sort == alpha - date == desc -]]> - - - - -
- -
- &reftitle.classsynopsis; - - - - Yaf_Router - - - - - Yaf_Router - - - - &Properties; - - protected - _routes - - - protected - _current - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _routes - - - - - - _current - - - - - -
- - - -
- - &reference.yaf.entities.yaf-router; - -
- - diff --git a/en/yaf-session.xml b/en/yaf-session.xml deleted file mode 100644 index 0a2eb40..0000000 --- a/en/yaf-session.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - The Yaf_Session class - Yaf_Session - - - - -
- &reftitle.intro; - - - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Session - - - - - Yaf_Session - - - - Iterator - - - - Traversable - - - - ArrayAccess - - - - Countable - - - - &Properties; - - protected - static - _instance - - - protected - _session - - - protected - _started - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _instance - - - - - - _session - - - - - - _started - - - - - -
- - - -
- - &reference.yaf.entities.yaf-session; - -
- - diff --git a/en/yaf-view-interface.xml b/en/yaf-view-interface.xml deleted file mode 100644 index d4b2de4..0000000 --- a/en/yaf-view-interface.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - The Yaf_View_Interface class - Yaf_View_Interface - - - - -
- &reftitle.intro; - - Yaf provides a ability for developers to use coustom view engine instead - of build-in engine which is Yaf_View_Simple. There - is a example to explain how to do this, please see - Yaf_Dispatcher::setView. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_View_Interface - - - - - Yaf_View_Interface - - - - - &Methods; - - - - -
- -
- - &reference.yaf.entities.yaf-view-interface; - -
- - diff --git a/en/yaf-view-simple.xml b/en/yaf-view-simple.xml deleted file mode 100644 index f4a0efb..0000000 --- a/en/yaf-view-simple.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - The Yaf_View_Simple class - Yaf_View_Simple - - - - -
- &reftitle.intro; - - Yaf_View_Simple is the built-in template engine in - Yaf, it is a simple but fast template engine, and only support PHP script - template. - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_View_Simple - - - - - Yaf_View_Simple - - - - Yaf_View_Interface - - - - &Properties; - - protected - _tpl_vars - - - protected - _tpl_dir - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _tpl_vars - - - - - - _tpl_dir - - - - - -
- - - -
- - &reference.yaf.entities.yaf-view-simple; - -
- - diff --git a/en/yaf_action_abstract/execute.xml b/en/yaf_action_abstract/execute.xml deleted file mode 100644 index 5af78be..0000000 --- a/en/yaf_action_abstract/execute.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - Yaf_Action_Abstract::execute - Execute the action - - - - &reftitle.description; - - abstract publicmixedYaf_Action_Abstract::execute - mixedarg - mixed... - - - Yaf_Action_Abstract::execute may have agruments. - - - The value retrived from the request is not safe. you should do some - filtering work before you use it. - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Action_Abstract::execute</function>example - - "actions/Index.php", - ); -} -?> -]]> - - - - <function>Yaf_Action_Abstract::execute</function>example - -getRequest()->getParam("name")); - assert($id == $this->getRequest()->getParam("id")); - } -} -?> -]]> - - &example.outputs.similar; - - - - - - - - &reftitle.seealso; - - - - - - - - diff --git a/en/yaf_action_abstract/getcontroller.xml b/en/yaf_action_abstract/getcontroller.xml deleted file mode 100644 index e0f3a1a..0000000 --- a/en/yaf_action_abstract/getcontroller.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Action_Abstract::getController - get controller instance - - - - &reftitle.description; - - publicYaf_Controller_AbstractYaf_Action_Abstract::getController - - - - Retrive the controller object. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_application/app.xml b/en/yaf_application/app.xml deleted file mode 100644 index 507c16d..0000000 --- a/en/yaf_application/app.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Yaf_Application::app - Retrive an Application instance - - - - &reftitle.description; - - public static voidYaf_Application::app - - - - Retrive the Yaf_Application instance, - alternatively, we also could use - Yaf_Dispatcher::getApplication. - - &warn.undocumented.func; - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - an Yaf_Application instance, if no Yaf_Application initialized before, NULL - will be returned. - - - - - &reftitle.seealso; - - Yaf_Dispatcher::getApplication - - - - - - diff --git a/en/yaf_application/bootstrap.xml b/en/yaf_application/bootstrap.xml deleted file mode 100644 index e5ed0e5..0000000 --- a/en/yaf_application/bootstrap.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Yaf_Application::bootstrap - Call bootstrap - - - - &reftitle.description; - - public voidYaf_Application::bootstrap - Yaf_Bootstrap_Abstractbootstrap - - - Run a Bootstrap, all the methods defined in the Bootstrap and named with - prefix "_init" will be called according to their declaration order, if the parameter bootstrap is not supplied, Yaf will look - for a Bootstrap under application.directory. - - &warn.undocumented.func; - - - - &reftitle.parameters; - - - bootstrap - - - A Yaf_Bootstrap_Abstract instance - - - - - - - - &reftitle.returnvalues; - - Yaf_Application instance - - - - - &reftitle.examples; - - <function>A Bootstrap</function>example - - -]]> - - - - <function>Yaf_Application::bootstrap</function>example - -bootstrap(); -?> -]]> - - &example.outputs.similar; - - - - - - - - &reftitle.seealso; - - Yaf_Bootstrap_Abstract - - - - - - - diff --git a/en/yaf_application/clearlasterror.xml b/en/yaf_application/clearlasterror.xml deleted file mode 100644 index 250bada..0000000 --- a/en/yaf_application/clearlasterror.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - Yaf_Application::clearLastError - Clear the last error info - - - - &reftitle.description; - - public Yaf_ApplicationYaf_Application::clearLastError - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Application::clearLastError</function>example - -clearLastError(); - var_dump(Yaf_Application::app()->getLastErrorNo()); -} - -$config = array( - "application" => array( - "directory" => "/tmp/notexists", - "dispatcher" => array( - "throwException" => 0, //trigger error instead of throw exception when error occure - ), - ), -); - -$app = new Yaf_Application($config); -$app->getDispatcher()->setErrorHandler("error_handler", E_RECOVERABLE_ERROR); -$app->run(); -?> -]]> - - &example.outputs.similar; - - - - - - - - - diff --git a/en/yaf_application/clone.xml b/en/yaf_application/clone.xml deleted file mode 100644 index ede2ca5..0000000 --- a/en/yaf_application/clone.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Application::__clone - Yaf_Application can not be cloned - - - - &reftitle.description; - - private voidYaf_Application::__clone - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_application/construct.xml b/en/yaf_application/construct.xml deleted file mode 100644 index e921fda..0000000 --- a/en/yaf_application/construct.xml +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - Yaf_Application::__construct - Yaf_Application constructor - - - - &reftitle.description; - - publicYaf_Application::__construct - mixedconfig - stringenvrion - - - Instance a Yaf_Application. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - config - - - A ini config file path, or a config array - - - If is a ini config file, there should be a section named as the one - defined by yaf.environ, which - is "product" by default. - - - If you use a ini configuration file as your applicatioin's config - container. you would open the yaf.cache_config to improve - performance. - - - - - And the config entry(and there default value) list blow: - - A ini config file example - - - - - - - - - envrion - - - Which section will be loaded as the final config - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Application::__construct</function>example - -bootstrap()->run(); -?> -]]> - - &example.outputs.similar; - - - - - - <function>Yaf_Application::__construct</function>example - - array( - "directory" => realpath(dirname(__FILE__)) . "/application", - ), -); - -/** Yaf_Application */ -$application = new Yaf_Application($config); -$application->bootstrap()->run(); -?> -]]> - - &example.outputs.similar; - - - - - - - - &reftitle.seealso; - - Yaf_Config_Ini - - - - - - diff --git a/en/yaf_application/destruct.xml b/en/yaf_application/destruct.xml deleted file mode 100644 index b79ef68..0000000 --- a/en/yaf_application/destruct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Application::__destruct - The __destruct purpose - - - - &reftitle.description; - - public voidYaf_Application::__destruct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_application/environ.xml b/en/yaf_application/environ.xml deleted file mode 100644 index dce4f8b..0000000 --- a/en/yaf_application/environ.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - Yaf_Application::environ - Retrive environ - - - - &reftitle.description; - - public voidYaf_Application::environ - - - - Retrive environ which was defined in yaf.environ which has a default value - "product". - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Application::environ</function>example - - array( - "directory" => realpath(dirname(__FILE__)) . "/application", - ), -); - -/** Yaf_Application */ -$application = new Yaf_Application($config); -print_r($application->environ()); -?> -]]> - - &example.outputs.similar; - - - - - - - - - diff --git a/en/yaf_application/execute.xml b/en/yaf_application/execute.xml deleted file mode 100644 index ec79816..0000000 --- a/en/yaf_application/execute.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - Yaf_Application::execute - Execute a callback - - - - &reftitle.description; - - public voidYaf_Application::execute - callableentry - string... - - - This method is typically used to run Yaf_Application in a crontab work. - Make the crontab work can also use the autoloader and Bootstrap mechanism. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - entry - - - - - - - - ... - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Application::execute</function>example - - array( - "directory" => realpath(dirname(__FILE__)) . "/application", - ), -); - -/** Yaf_Application */ -$application = new Yaf_Application($config); -$application->execute("main", $argc, $argv); -?> -]]> - - &example.outputs.similar; - - - - - - - - - diff --git a/en/yaf_application/getappdirectory.xml b/en/yaf_application/getappdirectory.xml deleted file mode 100644 index 7285d69..0000000 --- a/en/yaf_application/getappdirectory.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Application::getAppDirectory - Get the application directory - - - - &reftitle.description; - - public Yaf_ApplicationYaf_Application::getAppDirectory - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - directory - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_application/getconfig.xml b/en/yaf_application/getconfig.xml deleted file mode 100644 index 8b7bb0d..0000000 --- a/en/yaf_application/getconfig.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - Yaf_Application::getConfig - Retrive the config instance - - - - &reftitle.description; - - public Yaf_Config_AbstractYaf_Application::getConfig - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - A Yaf_Config_Abstract instance - - - - - &reftitle.examples; - - <function>Yaf_Application::getConfig</function>example - - array( - "directory" => realpath(dirname(__FILE__)) . "/application", - ), -); - -/** Yaf_Application */ -$application = new Yaf_Application($config); -print_r($application->getConfig()); -?> -]]> - - &example.outputs.similar; - - Array - ( - [application] => Array - ( - [directory] => /home/laruence/local/www/htdocs/application - ) - - ) - - [_readonly:protected] => 1 -) -]]> - - - - - - - - diff --git a/en/yaf_application/getdispatcher.xml b/en/yaf_application/getdispatcher.xml deleted file mode 100644 index 29b8e3f..0000000 --- a/en/yaf_application/getdispatcher.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - Yaf_Application::getDispatcher - Get Yaf_Dispatcher instance - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Application::getDispatcher - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Application::getDispatcher</function>example - - array( - "directory" => realpath(dirname(__FILE__)) . "/application", - ), -); - -/** Yaf_Application */ -$application = new Yaf_Application($config); -print_r($application->getDispatcher()); -?> -]]> - - &example.outputs.similar; - - Yaf_Router Object - ( - [_routes:protected] => Array - ( - [_default] => Yaf_Route_Static Object - ( - ) - - ) - - [_current:protected] => - ) - - [_view:protected] => - [_request:protected] => Yaf_Request_Http Object - ( - [module] => - [controller] => - [action] => - [method] => Cli - [params:protected] => Array - ( - ) - - [language:protected] => - [_exception:protected] => - [_base_uri:protected] => - [uri:protected] => - [dispatched:protected] => - [routed:protected] => - ) - - [_plugins:protected] => Array - ( - ) - - [_auto_render:protected] => 1 - [_return_response:protected] => - [_instantly_flush:protected] => - [_default_module:protected] => Index - [_default_controller:protected] => Index - [_default_action:protected] => index - [_response] => Yaf_Response_Cli Object - ( - [_header:protected] => Array - ( - ) - - [_body:protected] => - [_sendheader:protected] => - ) - -) -]]> - - - - - - - - diff --git a/en/yaf_application/getlasterrormsg.xml b/en/yaf_application/getlasterrormsg.xml deleted file mode 100644 index 6b2c2fb..0000000 --- a/en/yaf_application/getlasterrormsg.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Yaf_Application::getLastErrorMsg - Get message of the last occurred error - - - - &reftitle.description; - - public stringYaf_Application::getLastErrorMsg - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Application::getLastErrorMsg</function>example - -getLastErrorMsg()); -} - -$config = array( - "application" => array( - "directory" => "/tmp/notexists", - "dispatcher" => array( - "throwException" => 0, //trigger error instead of throw exception when error occure - ), - ), -); - -$app = new Yaf_Application($config); -$app->getDispatcher()->setErrorHandler("error_handler", E_RECOVERABLE_ERROR); -$app->run(); -?> -]]> - - &example.outputs.similar; - - - - - - - - - diff --git a/en/yaf_application/getlasterrorno.xml b/en/yaf_application/getlasterrorno.xml deleted file mode 100644 index 51c61ae..0000000 --- a/en/yaf_application/getlasterrorno.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - Yaf_Application::getLastErrorNo - Get code of last occurred error - - - - &reftitle.description; - - public intYaf_Application::getLastErrorNo - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - &reftitle.examples; - - <function>Yaf_Application::getLastErrorNo</function>example - -getLastErrorNo()); - var_dump(Yaf_Application::app()->getLastErrorNo() == YAF_ERR_NOTFOUND_CONTROLLER); -} - -$config = array( - "application" => array( - "directory" => "/tmp/notexists", - "dispatcher" => array( - "throwException" => 0, //trigger error instead of throw exception when error occure - ), - ), -); - -$app = new Yaf_Application($config); -$app->getDispatcher()->setErrorHandler("error_handler", E_RECOVERABLE_ERROR); -$app->run(); -?> -]]> - - &example.outputs.similar; - - - - - - - - - - diff --git a/en/yaf_application/getmodules.xml b/en/yaf_application/getmodules.xml deleted file mode 100644 index c5f27de..0000000 --- a/en/yaf_application/getmodules.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - Yaf_Application::getModules - Get defined module names - - - - &reftitle.description; - - public arrayYaf_Application::getModules - - - - Get the modules list defined in config, if no one defined, there will - always be a module named "Index". - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Application::getModules</function>example - - array( - "directory" => realpath(dirname(__FILE__)) . "/application", - ), -); - -/** Yaf_Application */ -$application = new Yaf_Application($config); -print_r($application->getModules()); -?> -]]> - - &example.outputs.similar; - - Index -) -]]> - - - - - - - diff --git a/en/yaf_application/run.xml b/en/yaf_application/run.xml deleted file mode 100644 index 9a0bc62..0000000 --- a/en/yaf_application/run.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - Yaf_Application::run - Start Yaf_Application - - - - &reftitle.description; - - public voidYaf_Application::run - - - - Run a Yaf_Application, let the Yaf_Application accpect a request, and route - the request, dispatch to controller/action, and render response. return - response to client fianlly. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_application/setappdirectory.xml b/en/yaf_application/setappdirectory.xml deleted file mode 100644 index d91243c..0000000 --- a/en/yaf_application/setappdirectory.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Application::setAppDirectory - Change the application directory - - - - &reftitle.description; - - public Yaf_ApplicationYaf_Application::setAppDirectory - stringdirectory - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - directory - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_application/sleep.xml b/en/yaf_application/sleep.xml deleted file mode 100644 index dd666a9..0000000 --- a/en/yaf_application/sleep.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Application::__sleep - Yaf_Application can not be serialized - - - - &reftitle.description; - - private voidYaf_Application::__sleep - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_application/wakeup.xml b/en/yaf_application/wakeup.xml deleted file mode 100644 index 0693b94..0000000 --- a/en/yaf_application/wakeup.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Application::__wakeup - Yaf_Application can not be unserialized - - - - &reftitle.description; - - private voidYaf_Application::__wakeup - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_abstract/get.xml b/en/yaf_config_abstract/get.xml deleted file mode 100644 index 91bf7db..0000000 --- a/en/yaf_config_abstract/get.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - Yaf_Config_Abstract::get - Getter - - - - &reftitle.description; - - abstract public mixedYaf_Config_Abstract::get - stringname - mixedvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_abstract/readonly.xml b/en/yaf_config_abstract/readonly.xml deleted file mode 100644 index 521777e..0000000 --- a/en/yaf_config_abstract/readonly.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Abstract::readonly - Find a config whether readonly - - - - &reftitle.description; - - abstract public boolYaf_Config_Abstract::readonly - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_abstract/set.xml b/en/yaf_config_abstract/set.xml deleted file mode 100644 index 8b67c38..0000000 --- a/en/yaf_config_abstract/set.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Abstract::set - Setter - - - - &reftitle.description; - - abstract public Yaf_Config_AbstractYaf_Config_Abstract::set - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_abstract/toarray.xml b/en/yaf_config_abstract/toarray.xml deleted file mode 100644 index ff0bc79..0000000 --- a/en/yaf_config_abstract/toarray.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Abstract::toArray - Cast to array - - - - &reftitle.description; - - abstract public arrayYaf_Config_Abstract::toArray - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/construct.xml b/en/yaf_config_ini/construct.xml deleted file mode 100644 index 948991b..0000000 --- a/en/yaf_config_ini/construct.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Config_Ini::__construct - The __construct purpose - - - - &reftitle.description; - - public Yaf_Config_Ini::__construct - stringconfig_file - stringsection - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - config_file - - - - - - - - section - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/count.xml b/en/yaf_config_ini/count.xml deleted file mode 100644 index 05437b3..0000000 --- a/en/yaf_config_ini/count.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Ini::count - The count purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::count - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/current.xml b/en/yaf_config_ini/current.xml deleted file mode 100644 index 2d6bfd3..0000000 --- a/en/yaf_config_ini/current.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Ini::current - The current purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::current - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/get.xml b/en/yaf_config_ini/get.xml deleted file mode 100644 index be51ab4..0000000 --- a/en/yaf_config_ini/get.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Ini::__get - The __get purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::__get - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/isset.xml b/en/yaf_config_ini/isset.xml deleted file mode 100644 index b716151..0000000 --- a/en/yaf_config_ini/isset.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Ini::__isset - The __isset purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::__isset - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/key.xml b/en/yaf_config_ini/key.xml deleted file mode 100644 index 0e89582..0000000 --- a/en/yaf_config_ini/key.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Ini::key - The key purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::key - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/next.xml b/en/yaf_config_ini/next.xml deleted file mode 100644 index afbdb1b..0000000 --- a/en/yaf_config_ini/next.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Ini::next - The next purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::next - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/offsetexists.xml b/en/yaf_config_ini/offsetexists.xml deleted file mode 100644 index 53e8770..0000000 --- a/en/yaf_config_ini/offsetexists.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Ini::offsetExists - The offsetExists purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::offsetExists - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/offsetget.xml b/en/yaf_config_ini/offsetget.xml deleted file mode 100644 index a09ae59..0000000 --- a/en/yaf_config_ini/offsetget.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Ini::offsetGet - The offsetGet purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::offsetGet - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/offsetset.xml b/en/yaf_config_ini/offsetset.xml deleted file mode 100644 index 2e251a2..0000000 --- a/en/yaf_config_ini/offsetset.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Config_Ini::offsetSet - The offsetSet purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::offsetSet - stringname - stringvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - value - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/offsetunset.xml b/en/yaf_config_ini/offsetunset.xml deleted file mode 100644 index db8ea49..0000000 --- a/en/yaf_config_ini/offsetunset.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Ini::offsetUnset - The offsetUnset purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::offsetUnset - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/readonly.xml b/en/yaf_config_ini/readonly.xml deleted file mode 100644 index 0f5a0c7..0000000 --- a/en/yaf_config_ini/readonly.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Ini::readonly - The readonly purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::readonly - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/rewind.xml b/en/yaf_config_ini/rewind.xml deleted file mode 100644 index 194239a..0000000 --- a/en/yaf_config_ini/rewind.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Ini::rewind - The rewind purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::rewind - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/set.xml b/en/yaf_config_ini/set.xml deleted file mode 100644 index 21c4fb0..0000000 --- a/en/yaf_config_ini/set.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Config_Ini::__set - The __set purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::__set - stringname - mixedvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - value - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/toarray.xml b/en/yaf_config_ini/toarray.xml deleted file mode 100644 index 554b39e..0000000 --- a/en/yaf_config_ini/toarray.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Ini::toArray - The toArray purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::toArray - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_ini/valid.xml b/en/yaf_config_ini/valid.xml deleted file mode 100644 index 673a2e4..0000000 --- a/en/yaf_config_ini/valid.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Ini::valid - The valid purpose - - - - &reftitle.description; - - public voidYaf_Config_Ini::valid - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/construct.xml b/en/yaf_config_simple/construct.xml deleted file mode 100644 index 40b9979..0000000 --- a/en/yaf_config_simple/construct.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Config_Simple::__construct - The __construct purpose - - - - &reftitle.description; - - public Yaf_Config_Simple::__construct - stringconfig_file - stringsection - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - config_file - - - - - - - - section - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/count.xml b/en/yaf_config_simple/count.xml deleted file mode 100644 index 743f938..0000000 --- a/en/yaf_config_simple/count.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Simple::count - The count purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::count - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/current.xml b/en/yaf_config_simple/current.xml deleted file mode 100644 index 1a60515..0000000 --- a/en/yaf_config_simple/current.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Simple::current - The current purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::current - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/get.xml b/en/yaf_config_simple/get.xml deleted file mode 100644 index 6bb6220..0000000 --- a/en/yaf_config_simple/get.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Simple::__get - The __get purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::__get - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/isset.xml b/en/yaf_config_simple/isset.xml deleted file mode 100644 index d8b9b05..0000000 --- a/en/yaf_config_simple/isset.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Simple::__isset - The __isset purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::__isset - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/key.xml b/en/yaf_config_simple/key.xml deleted file mode 100644 index 4ab30ab..0000000 --- a/en/yaf_config_simple/key.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Simple::key - The key purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::key - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/next.xml b/en/yaf_config_simple/next.xml deleted file mode 100644 index ed196db..0000000 --- a/en/yaf_config_simple/next.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Simple::next - The next purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::next - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/offsetexists.xml b/en/yaf_config_simple/offsetexists.xml deleted file mode 100644 index 5ffaa76..0000000 --- a/en/yaf_config_simple/offsetexists.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Simple::offsetExists - The offsetExists purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::offsetExists - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/offsetget.xml b/en/yaf_config_simple/offsetget.xml deleted file mode 100644 index 2c3b8d9..0000000 --- a/en/yaf_config_simple/offsetget.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Simple::offsetGet - The offsetGet purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::offsetGet - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/offsetset.xml b/en/yaf_config_simple/offsetset.xml deleted file mode 100644 index 558089f..0000000 --- a/en/yaf_config_simple/offsetset.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Config_Simple::offsetSet - The offsetSet purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::offsetSet - stringname - stringvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - value - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/offsetunset.xml b/en/yaf_config_simple/offsetunset.xml deleted file mode 100644 index 487441a..0000000 --- a/en/yaf_config_simple/offsetunset.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Config_Simple::offsetUnset - The offsetUnset purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::offsetUnset - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/readonly.xml b/en/yaf_config_simple/readonly.xml deleted file mode 100644 index 46f8b66..0000000 --- a/en/yaf_config_simple/readonly.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Simple::readonly - The readonly purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::readonly - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/rewind.xml b/en/yaf_config_simple/rewind.xml deleted file mode 100644 index 7cd23b6..0000000 --- a/en/yaf_config_simple/rewind.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Simple::rewind - The rewind purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::rewind - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/set.xml b/en/yaf_config_simple/set.xml deleted file mode 100644 index f998afd..0000000 --- a/en/yaf_config_simple/set.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Config_Simple::__set - The __set purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::__set - stringname - stringvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - value - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/toarray.xml b/en/yaf_config_simple/toarray.xml deleted file mode 100644 index e76d25a..0000000 --- a/en/yaf_config_simple/toarray.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Simple::toArray - The toArray purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::toArray - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_config_simple/valid.xml b/en/yaf_config_simple/valid.xml deleted file mode 100644 index 083b1af..0000000 --- a/en/yaf_config_simple/valid.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Config_Simple::valid - The valid purpose - - - - &reftitle.description; - - public voidYaf_Config_Simple::valid - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/clone.xml b/en/yaf_controller_abstract/clone.xml deleted file mode 100644 index 9433c22..0000000 --- a/en/yaf_controller_abstract/clone.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Controller_Abstract::__clone - Yaf_Controller_Abstract can not be cloned - - - - &reftitle.description; - - final private voidYaf_Controller_Abstract::__clone - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/construct.xml b/en/yaf_controller_abstract/construct.xml deleted file mode 100644 index 16e7578..0000000 --- a/en/yaf_controller_abstract/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Controller_Abstract::__construct - Yaf_Controller_Abstract constructor - - - - &reftitle.description; - - final private Yaf_Controller_Abstract::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/display.xml b/en/yaf_controller_abstract/display.xml deleted file mode 100644 index 98bbfca..0000000 --- a/en/yaf_controller_abstract/display.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Controller_Abstract::display - The display purpose - - - - &reftitle.description; - - final protected voidYaf_Controller_Abstract::display - stringtpl - arrayparameters - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - tpl - - - - - - - - parameters - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/forward.xml b/en/yaf_controller_abstract/forward.xml deleted file mode 100644 index 3315ff2..0000000 --- a/en/yaf_controller_abstract/forward.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - Yaf_Controller_Abstract::forward - The forward purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::forward - stringmodule - stringcontroller - stringaction - arrayparamters - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - module - - - - - - - - controller - - - - - - - - action - - - - - - - - paramters - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/getinvokearg.xml b/en/yaf_controller_abstract/getinvokearg.xml deleted file mode 100644 index 013b869..0000000 --- a/en/yaf_controller_abstract/getinvokearg.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Controller_Abstract::getInvokeArg - The getInvokeArg purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::getInvokeArg - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/getinvokeargs.xml b/en/yaf_controller_abstract/getinvokeargs.xml deleted file mode 100644 index 03d10de..0000000 --- a/en/yaf_controller_abstract/getinvokeargs.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Controller_Abstract::getInvokeArgs - The getInvokeArgs purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::getInvokeArgs - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/getmodulename.xml b/en/yaf_controller_abstract/getmodulename.xml deleted file mode 100644 index 7a9d676..0000000 --- a/en/yaf_controller_abstract/getmodulename.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Controller_Abstract::getModuleName - The getModuleName purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::getModuleName - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/getrequest.xml b/en/yaf_controller_abstract/getrequest.xml deleted file mode 100644 index 47a6d98..0000000 --- a/en/yaf_controller_abstract/getrequest.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Controller_Abstract::getRequest - The getRequest purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::getRequest - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/getresponse.xml b/en/yaf_controller_abstract/getresponse.xml deleted file mode 100644 index 220bf36..0000000 --- a/en/yaf_controller_abstract/getresponse.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Controller_Abstract::getResponse - The getResponse purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::getResponse - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/getview.xml b/en/yaf_controller_abstract/getview.xml deleted file mode 100644 index 11f2edd..0000000 --- a/en/yaf_controller_abstract/getview.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Controller_Abstract::getView - The getView purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::getView - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/getviewpath.xml b/en/yaf_controller_abstract/getviewpath.xml deleted file mode 100644 index d4be496..0000000 --- a/en/yaf_controller_abstract/getviewpath.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Controller_Abstract::getViewpath - The getViewpath purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::getViewpath - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/initview.xml b/en/yaf_controller_abstract/initview.xml deleted file mode 100644 index 5d18410..0000000 --- a/en/yaf_controller_abstract/initview.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Controller_Abstract::initView - The initView purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::initView - arrayoptions - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - options - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/redirect.xml b/en/yaf_controller_abstract/redirect.xml deleted file mode 100644 index 3711e29..0000000 --- a/en/yaf_controller_abstract/redirect.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Controller_Abstract::redirect - The redirect purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::redirect - stringurl - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - url - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/render.xml b/en/yaf_controller_abstract/render.xml deleted file mode 100644 index 6e23173..0000000 --- a/en/yaf_controller_abstract/render.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Controller_Abstract::render - The render purpose - - - - &reftitle.description; - - final protected voidYaf_Controller_Abstract::render - stringtpl - arrayparameters - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - tpl - - - - - - - - parameters - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_controller_abstract/setviewpath.xml b/en/yaf_controller_abstract/setviewpath.xml deleted file mode 100644 index 144435b..0000000 --- a/en/yaf_controller_abstract/setviewpath.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Controller_Abstract::setViewpath - The setViewpath purpose - - - - &reftitle.description; - - final public voidYaf_Controller_Abstract::setViewpath - stringview_directory - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - view_directory - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/autorender.xml b/en/yaf_dispatcher/autorender.xml deleted file mode 100644 index 234c56b..0000000 --- a/en/yaf_dispatcher/autorender.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - Yaf_Dispatcher::autoRender - Switch on/off autorendering - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::autoRender - boolflag - - - Yaf_Dispatcher will render automatically after - dispatches a incoming request, you can prevent the rendering by calling - this method with flag TRUE - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - flag - - - bool - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Dispatcher::autoRender</function>example - -getRequest()->isXmlHttpRequest()) { - //do not call render for ajax request - //we will outpu a json string - Yaf_Dispatcher::getInstance()->autoRender(FALSE); - } - } -} -?> -]]> - - &example.outputs.similar; - - - - - - - - - diff --git a/en/yaf_dispatcher/catchexception.xml b/en/yaf_dispatcher/catchexception.xml deleted file mode 100644 index 787d339..0000000 --- a/en/yaf_dispatcher/catchexception.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Yaf_Dispatcher::catchException - Switch on/off exception catching - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::catchException - boolflag - - - While the application.dispatcher.throwException is On(you can also calling - to Yaf_Dispatcher::throwException(TRUE) to enable it), Yaf will throw Exception whe - error occurrs instead of trigger error. - - - then if you enable Yaf_Dispatcher::catchException(also can enabled by set - application.dispatcher.catchException), all Un-caught Exceptions will be - caught by ErrorController::error if you have defined one. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - flag - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Dispatcher::catchException</function>example - -getCode()) { - case YAF_ERR_NOTFOUND_MODULE: - case YAF_ERR_NOTFOUND_CONTROLLER: - case YAF_ERR_NOTFOUND_ACTION: - case YAF_ERR_NOTFOUND_VIEW: - echo 404, ":", $exception->getMessage(); - break; - default : - $message = $exception->getMessage(); - echo 0, ":", $exception->getMessage(); - break; - } - } -} -?> -]]> - - &example.outputs.similar; - - - - - - - - &reftitle.seealso; - - Yaf_Dispatcher::throwException - - - - - - diff --git a/en/yaf_dispatcher/clone.xml b/en/yaf_dispatcher/clone.xml deleted file mode 100644 index 3c83e54..0000000 --- a/en/yaf_dispatcher/clone.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Dispatcher::__clone - Yaf_Dispatcher can not be cloned - - - - &reftitle.description; - - private voidYaf_Dispatcher::__clone - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/construct.xml b/en/yaf_dispatcher/construct.xml deleted file mode 100644 index 6d32a9f..0000000 --- a/en/yaf_dispatcher/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Dispatcher::__construct - Yaf_Dispatcher constructor - - - - &reftitle.description; - - publicYaf_Dispatcher::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/disableview.xml b/en/yaf_dispatcher/disableview.xml deleted file mode 100644 index f327a3a..0000000 --- a/en/yaf_dispatcher/disableview.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Dispatcher::disableView - Disable view rendering - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::disableView - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/dispatch.xml b/en/yaf_dispatcher/dispatch.xml deleted file mode 100644 index a9d0cbe..0000000 --- a/en/yaf_dispatcher/dispatch.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - Yaf_Dispatcher::dispatch - Dispatch a request - - - - &reftitle.description; - - public Yaf_Response_AbstractYaf_Dispatcher::dispatch - Yaf_Request_Abstractrequest - - - This method does the heavy work of the - Yaf_Dispatcher. It take a request object. - - - The dispatch process has three distinct events: - - Routing - Dispatching - Response - - 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(see - Yaf_Plugin_Abstract. When all is done, the - Yaf_Dispatcher returns a response. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - diff --git a/en/yaf_dispatcher/enableview.xml b/en/yaf_dispatcher/enableview.xml deleted file mode 100644 index 06e45cf..0000000 --- a/en/yaf_dispatcher/enableview.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Dispatcher::enableView - enable view rendering - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::enableView - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/flushinstantly.xml b/en/yaf_dispatcher/flushinstantly.xml deleted file mode 100644 index 3e7ceaf..0000000 --- a/en/yaf_dispatcher/flushinstantly.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Dispatcher::flushInstantly - Switch on/off the instant flushing - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::flushInstantly - boolflag - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - flag - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/getapplication.xml b/en/yaf_dispatcher/getapplication.xml deleted file mode 100644 index db7ae3e..0000000 --- a/en/yaf_dispatcher/getapplication.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Yaf_Dispatcher::getApplication - Retrive the application - - - - &reftitle.description; - - public Yaf_ApplicationYaf_Dispatcher::getApplication - - - - Retrive the Yaf_Application instance. same as - Yaf_Application::app. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.seealso; - - Yaf_Application::app - - - - - - diff --git a/en/yaf_dispatcher/getinstance.xml b/en/yaf_dispatcher/getinstance.xml deleted file mode 100644 index 354f0f0..0000000 --- a/en/yaf_dispatcher/getinstance.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Dispatcher::getInstance - Retrive the dispatcher instance - - - - &reftitle.description; - - public static Yaf_DispatcherYaf_Dispatcher::getInstance - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/getrequest.xml b/en/yaf_dispatcher/getrequest.xml deleted file mode 100644 index ca519c3..0000000 --- a/en/yaf_dispatcher/getrequest.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Dispatcher::getRequest - Retrive the request instance - - - - &reftitle.description; - - public Yaf_Request_AbstractYaf_Dispatcher::getRequest - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/getrouter.xml b/en/yaf_dispatcher/getrouter.xml deleted file mode 100644 index 79ee38a..0000000 --- a/en/yaf_dispatcher/getrouter.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Dispatcher::getRouter - Retrive router instance - - - - &reftitle.description; - - public Yaf_RouterYaf_Dispatcher::getRouter - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/initview.xml b/en/yaf_dispatcher/initview.xml deleted file mode 100644 index 0ba4366..0000000 --- a/en/yaf_dispatcher/initview.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Dispatcher::initView - Initialize view and return it - - - - &reftitle.description; - - public Yaf_View_InterfaceYaf_Dispatcher::initView - stringtemplates_dir - arrayoptions - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - templates_dir - - - - - - - - options - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/registerplugin.xml b/en/yaf_dispatcher/registerplugin.xml deleted file mode 100644 index c48feeb..0000000 --- a/en/yaf_dispatcher/registerplugin.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - Yaf_Dispatcher::registerPlugin - Register a plugin - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::registerPlugin - Yaf_Plugin_Abstractplugin - - - Register a plugin(see Yaf_Plugin_Abstract). - Generally, we register plugins in Bootstrap(see - Yaf_Bootstrap_Abstract). - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - plugin - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Dispatcher::registerPlugin</function>example - -registerPlugin($user); - } -} -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_Plugin_Abstract - - - Yaf_Bootstrap_Abstract - - - - - - diff --git a/en/yaf_dispatcher/returnresponse.xml b/en/yaf_dispatcher/returnresponse.xml deleted file mode 100644 index 7b423a9..0000000 --- a/en/yaf_dispatcher/returnresponse.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Dispatcher::returnResponse - The returnResponse purpose - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::returnResponse - boolflag - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - flag - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/setdefaultaction.xml b/en/yaf_dispatcher/setdefaultaction.xml deleted file mode 100644 index c239642..0000000 --- a/en/yaf_dispatcher/setdefaultaction.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Dispatcher::setDefaultAction - Change default action name - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::setDefaultAction - stringaction - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - action - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/setdefaultcontroller.xml b/en/yaf_dispatcher/setdefaultcontroller.xml deleted file mode 100644 index ef2059d..0000000 --- a/en/yaf_dispatcher/setdefaultcontroller.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Dispatcher::setDefaultController - Change default controller name - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::setDefaultController - stringcontroller - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - controller - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/setdefaultmodule.xml b/en/yaf_dispatcher/setdefaultmodule.xml deleted file mode 100644 index 406256f..0000000 --- a/en/yaf_dispatcher/setdefaultmodule.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Dispatcher::setDefaultModule - Change default module name - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::setDefaultModule - stringmodule - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - module - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/seterrorhandler.xml b/en/yaf_dispatcher/seterrorhandler.xml deleted file mode 100644 index 73ee717..0000000 --- a/en/yaf_dispatcher/seterrorhandler.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Dispatcher::setErrorHandler - The setErrorHandler purpose - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::setErrorHandler - callcallback - interror_types - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - callback - - - - - - - - error_types - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/setrequest.xml b/en/yaf_dispatcher/setrequest.xml deleted file mode 100644 index 9d177f0..0000000 --- a/en/yaf_dispatcher/setrequest.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Dispatcher::setRequest - The setRequest purpose - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::setRequest - Yaf_Request_Abstractrequest - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - plugin - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/setview.xml b/en/yaf_dispatcher/setview.xml deleted file mode 100644 index 1950df9..0000000 --- a/en/yaf_dispatcher/setview.xml +++ /dev/null @@ -1,253 +0,0 @@ - - - - - - Yaf_Dispatcher::setView - Set a custom view engine - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::setView - Yaf_View_Interfaceview - - - This method proviods a solution for that if you want use a custom view - engine instead of Yaf_View_Simple - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - view - - - A Yaf_View_Interface instance - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>A custom View engine</function>example - -_smarty = new Smarty; - - if (null !== $tmplPath) { - $this->setScriptPath($tmplPath); - } - - foreach ($extraParams as $key => $value) { - $this->_smarty->$key = $value; - } - } - - /** - * Set the path to the templates - * - * @param string $path The directory to set as the path. - * @return void - */ - public function setScriptPath($path) - { - if (is_readable($path)) { - $this->_smarty->template_dir = $path; - return; - } - - throw new Exception('Invalid path provided'); - } - - /** - * Assign a variable to the template - * - * @param string $key The variable name. - * @param mixed $val The variable value. - * @return void - */ - public function __set($key, $val) - { - $this->_smarty->assign($key, $val); - } - - /** - * Allows testing with empty() and isset() to work - * - * @param string $key - * @return boolean - */ - public function __isset($key) - { - return (null !== $this->_smarty->get_template_vars($key)); - } - - /** - * Allows unset() on object properties to work - * - * @param string $key - * @return void - */ - public function __unset($key) - { - $this->_smarty->clear_assign($key); - } - - /** - * Assign variables to the template - * - * Allows setting a specific key to the specified value, OR passing - * an array of key => value pairs to set en masse. - * - * @see __set() - * @param string|array $spec The assignment strategy to use (key or - * array of key => value pairs) - * @param mixed $value (Optional) If assigning a named variable, - * use this as the value. - * @return void - */ - public function assign($spec, $value = null) { - if (is_array($spec)) { - $this->_smarty->assign($spec); - return; - } - - $this->_smarty->assign($spec, $value); - } - - /** - * Clear all assigned variables - * - * Clears all variables assigned to Yaf_View either via - * {@link assign()} or property overloading - * ({@link __get()}/{@link __set()}). - * - * @return void - */ - public function clearVars() { - $this->_smarty->clear_all_assign(); - } - - /** - * Processes a template and returns the output. - * - * @param string $name The template to process. - * @return string The output. - */ - public function render($name, $value = NULL) { - return $this->_smarty->fetch($name); - } - - public function display($name, $value = NULL) { - echo $this->_smarty->fetch($name); - } - -} -?> -]]> - - - - <function>Yaf_Dispatcher::setView</function>example - -getConfig(); - Yaf_Registry::set("config", $config); - } - - public function _initLocalName() { - /** we put class Smarty_Adapter under the local library directory */ - Yaf_Loader::getInstance()->registerLocalNamespace('Smarty'); - } - - public function _initSmarty(Yaf_Dispatcher $dispatcher) { - $smarty = new Smarty_Adapter(null, Yaf_Registry::get("config")->get("smarty")); - $dispatcher->setView($smarty); - /* now the Smarty view engine become the default view engine of Yaf */ - } -} -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_View_Interface - Yaf_View_Simple - - - - - diff --git a/en/yaf_dispatcher/sleep.xml b/en/yaf_dispatcher/sleep.xml deleted file mode 100644 index 6890eb7..0000000 --- a/en/yaf_dispatcher/sleep.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Dispatcher::__sleep - Yaf_Dispatcher can not be serialized - - - - &reftitle.description; - - private voidYaf_Dispatcher::__sleep - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/throwexception.xml b/en/yaf_dispatcher/throwexception.xml deleted file mode 100644 index ca8b591..0000000 --- a/en/yaf_dispatcher/throwexception.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Dispatcher::throwException - Switch on/off exception throwing - - - - &reftitle.description; - - public Yaf_DispatcherYaf_Dispatcher::throwException - boolflag - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - flag - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_dispatcher/wakeup.xml b/en/yaf_dispatcher/wakeup.xml deleted file mode 100644 index 64baecf..0000000 --- a/en/yaf_dispatcher/wakeup.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Dispatcher::__wakeup - Yaf_Dispatcher can not be unserialized - - - - &reftitle.description; - - private voidYaf_Dispatcher::__wakeup - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_exception/construct.xml b/en/yaf_exception/construct.xml deleted file mode 100644 index 285816e..0000000 --- a/en/yaf_exception/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Exception::__construct - The __construct purpose - - - - &reftitle.description; - - public Yaf_Exception::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_exception/getprevious.xml b/en/yaf_exception/getprevious.xml deleted file mode 100644 index 35d90f9..0000000 --- a/en/yaf_exception/getprevious.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Exception::getPrevious - The getPrevious purpose - - - - &reftitle.description; - - public voidYaf_Exception::getPrevious - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/autoload.xml b/en/yaf_loader/autoload.xml deleted file mode 100644 index 6376b58..0000000 --- a/en/yaf_loader/autoload.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::autoload - The autoload purpose - - - - &reftitle.description; - - public voidYaf_Loader::autoload - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/clearlocalnamespace.xml b/en/yaf_loader/clearlocalnamespace.xml deleted file mode 100644 index 31e527c..0000000 --- a/en/yaf_loader/clearlocalnamespace.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::clearLocalNamespace - The clearLocalNamespace purpose - - - - &reftitle.description; - - public voidYaf_Loader::clearLocalNamespace - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/clone.xml b/en/yaf_loader/clone.xml deleted file mode 100644 index a44d1d6..0000000 --- a/en/yaf_loader/clone.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::__clone - The __clone purpose - - - - &reftitle.description; - - private voidYaf_Loader::__clone - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/construct.xml b/en/yaf_loader/construct.xml deleted file mode 100644 index 078c035..0000000 --- a/en/yaf_loader/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::__construct - The __construct purpose - - - - &reftitle.description; - - publicYaf_Loader::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/getinstance.xml b/en/yaf_loader/getinstance.xml deleted file mode 100644 index 1ce7946..0000000 --- a/en/yaf_loader/getinstance.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::getInstance - The getInstance purpose - - - - &reftitle.description; - - public static voidYaf_Loader::getInstance - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/getlibrarypath.xml b/en/yaf_loader/getlibrarypath.xml deleted file mode 100644 index 27538af..0000000 --- a/en/yaf_loader/getlibrarypath.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::getLibraryPath - get the library path - - - - &reftitle.description; - - public Yaf_LoaderYaf_Loader::getLibraryPath - boolis_globalfalse - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/getlocalnamespace.xml b/en/yaf_loader/getlocalnamespace.xml deleted file mode 100644 index 53e69e5..0000000 --- a/en/yaf_loader/getlocalnamespace.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::getLocalNamespace - The getLocalNamespace purpose - - - - &reftitle.description; - - public voidYaf_Loader::getLocalNamespace - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/import.xml b/en/yaf_loader/import.xml deleted file mode 100644 index 1e2725c..0000000 --- a/en/yaf_loader/import.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::import - The import purpose - - - - &reftitle.description; - - public static voidYaf_Loader::import - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/islocalname.xml b/en/yaf_loader/islocalname.xml deleted file mode 100644 index fac2e6e..0000000 --- a/en/yaf_loader/islocalname.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::isLocalName - The isLocalName purpose - - - - &reftitle.description; - - public voidYaf_Loader::isLocalName - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/registerlocalnamespace.xml b/en/yaf_loader/registerlocalnamespace.xml deleted file mode 100644 index f9d726f..0000000 --- a/en/yaf_loader/registerlocalnamespace.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::registerLocalNamespace - The registerLocalNamespace purpose - - - - &reftitle.description; - - public voidYaf_Loader::registerLocalNamespace - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/setlibrarypath.xml b/en/yaf_loader/setlibrarypath.xml deleted file mode 100644 index 6ebe8d5..0000000 --- a/en/yaf_loader/setlibrarypath.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - Yaf_Loader::setLibraryPath - Change the library path - - - - &reftitle.description; - - public Yaf_LoaderYaf_Loader::setLibraryPath - stringdirectory - boolis_globalfalse - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/sleep.xml b/en/yaf_loader/sleep.xml deleted file mode 100644 index d7552d4..0000000 --- a/en/yaf_loader/sleep.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::__sleep - The __sleep purpose - - - - &reftitle.description; - - private voidYaf_Loader::__sleep - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_loader/wakeup.xml b/en/yaf_loader/wakeup.xml deleted file mode 100644 index e2e05b0..0000000 --- a/en/yaf_loader/wakeup.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Loader::__wakeup - The __wakeup purpose - - - - &reftitle.description; - - private voidYaf_Loader::__wakeup - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_plugin_abstract/dispatchloopshutdown.xml b/en/yaf_plugin_abstract/dispatchloopshutdown.xml deleted file mode 100644 index c94a047..0000000 --- a/en/yaf_plugin_abstract/dispatchloopshutdown.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - Yaf_Plugin_Abstract::dispatchLoopShutdown - The dispatchLoopShutdown purpose - - - - &reftitle.description; - - public voidYaf_Plugin_Abstract::dispatchLoopShutdown - Yaf_Request_Abstractrequest - Yaf_Response_Abstractresponse - - - This is the latest hook in Yaf plugin hook system, if a custom plugin - implement this method, then it will be called after the dispatch loop - finished. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - response - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.seealso; - - Yaf_Plugin_Abstract::routerStartup - Yaf_Plugin_Abstract::routerShutdown - Yaf_Plugin_Abstract::dispatchLoopStartup - Yaf_Plugin_Abstract::preDispatch - Yaf_Plugin_Abstract::postDispatch - - - - - - diff --git a/en/yaf_plugin_abstract/dispatchloopstartup.xml b/en/yaf_plugin_abstract/dispatchloopstartup.xml deleted file mode 100644 index 16bec7e..0000000 --- a/en/yaf_plugin_abstract/dispatchloopstartup.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Plugin_Abstract::dispatchLoopStartup - The dispatchLoopStartup purpose - - - - &reftitle.description; - - public voidYaf_Plugin_Abstract::dispatchLoopStartup - Yaf_Request_Abstractrequest - Yaf_Response_Abstractresponse - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - response - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_plugin_abstract/postdispatch.xml b/en/yaf_plugin_abstract/postdispatch.xml deleted file mode 100644 index 48ce5d1..0000000 --- a/en/yaf_plugin_abstract/postdispatch.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Plugin_Abstract::postDispatch - The postDispatch purpose - - - - &reftitle.description; - - public voidYaf_Plugin_Abstract::postDispatch - Yaf_Request_Abstractrequest - Yaf_Response_Abstractresponse - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - response - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_plugin_abstract/predispatch.xml b/en/yaf_plugin_abstract/predispatch.xml deleted file mode 100644 index 0164c08..0000000 --- a/en/yaf_plugin_abstract/predispatch.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Plugin_Abstract::preDispatch - The preDispatch purpose - - - - &reftitle.description; - - public voidYaf_Plugin_Abstract::preDispatch - Yaf_Request_Abstractrequest - Yaf_Response_Abstractresponse - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - response - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_plugin_abstract/preresponse.xml b/en/yaf_plugin_abstract/preresponse.xml deleted file mode 100644 index be99768..0000000 --- a/en/yaf_plugin_abstract/preresponse.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Plugin_Abstract::preResponse - The preResponse purpose - - - - &reftitle.description; - - public voidYaf_Plugin_Abstract::preResponse - Yaf_Request_Abstractrequest - Yaf_Response_Abstractresponse - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - response - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_plugin_abstract/routershutdown.xml b/en/yaf_plugin_abstract/routershutdown.xml deleted file mode 100644 index 56161e5..0000000 --- a/en/yaf_plugin_abstract/routershutdown.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Yaf_Plugin_Abstract::routerShutdown - The routerShutdown purpose - - - - &reftitle.description; - - public voidYaf_Plugin_Abstract::routerShutdown - Yaf_Request_Abstractrequest - Yaf_Response_Abstractresponse - - - This hook will be trigged after the route process finished, this hook - is usually used for login check. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - response - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Plugin_Abstract::routerShutdown</function>example - -getControllerName(); - - /** - * Use access controller is unecessary for APIs - */ - if (in_array(strtolower($controller), array( - 'api', - ))) { - return TRUE; - } - - if (Yaf_Session::getInstance()->has("login")) { - return TRUE; - } - - /* Use access check failed, need to login */ - $response->redirect("http://yourdomain.com/login/"); - return FALSE; - } -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_Plugin_Abstract::routerStartup - Yaf_Plugin_Abstract::dispatchLoopStartup - Yaf_Plugin_Abstract::preDispatch - Yaf_Plugin_Abstract::postDispatch - Yaf_Plugin_Abstract::dispatchLoopShutdown - - - - - - diff --git a/en/yaf_plugin_abstract/routerstartup.xml b/en/yaf_plugin_abstract/routerstartup.xml deleted file mode 100644 index d998e46..0000000 --- a/en/yaf_plugin_abstract/routerstartup.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - Yaf_Plugin_Abstract::routerStartup - RouterStartup hook - - - - &reftitle.description; - - public voidYaf_Plugin_Abstract::routerStartup - Yaf_Request_Abstractrequest - Yaf_Response_Abstractresponse - - - This is the earliest hook in Yaf plugin hook system, if a custom plugin - implement this method, then it will be called before routing a request. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - response - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.seealso; - - Yaf_Plugin_Abstract::routerShutdown - Yaf_Plugin_Abstract::dispatchLoopStartup - Yaf_Plugin_Abstract::preDispatch - Yaf_Plugin_Abstract::postDispatch - Yaf_Plugin_Abstract::dispatchLoopShutdown - - - - - - - diff --git a/en/yaf_registry/clone.xml b/en/yaf_registry/clone.xml deleted file mode 100644 index 995027c..0000000 --- a/en/yaf_registry/clone.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Registry::__clone - The __clone purpose - - - - &reftitle.description; - - private voidYaf_Registry::__clone - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_registry/construct.xml b/en/yaf_registry/construct.xml deleted file mode 100644 index c2865df..0000000 --- a/en/yaf_registry/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Registry::__construct - The __construct purpose - - - - &reftitle.description; - - Yaf_Registry::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_registry/del.xml b/en/yaf_registry/del.xml deleted file mode 100644 index 1b98e4e..0000000 --- a/en/yaf_registry/del.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Registry::del - The del purpose - - - - &reftitle.description; - - public static voidYaf_Registry::del - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_registry/get.xml b/en/yaf_registry/get.xml deleted file mode 100644 index 7fbc0aa..0000000 --- a/en/yaf_registry/get.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Registry::get - The get purpose - - - - &reftitle.description; - - public static voidYaf_Registry::get - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_registry/has.xml b/en/yaf_registry/has.xml deleted file mode 100644 index 7a39c87..0000000 --- a/en/yaf_registry/has.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Registry::has - The has purpose - - - - &reftitle.description; - - public static voidYaf_Registry::has - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_registry/set.xml b/en/yaf_registry/set.xml deleted file mode 100644 index 1030ace..0000000 --- a/en/yaf_registry/set.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Registry::set - The set purpose - - - - &reftitle.description; - - public static voidYaf_Registry::set - stringname - stringvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - value - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getactionname.xml b/en/yaf_request_abstract/getactionname.xml deleted file mode 100644 index 32a72dd..0000000 --- a/en/yaf_request_abstract/getactionname.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::getActionName - The getActionName purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getActionName - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getbaseuri.xml b/en/yaf_request_abstract/getbaseuri.xml deleted file mode 100644 index d16ae25..0000000 --- a/en/yaf_request_abstract/getbaseuri.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::getBaseUri - The getBaseUri purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getBaseUri - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getcontrollername.xml b/en/yaf_request_abstract/getcontrollername.xml deleted file mode 100644 index 90630f6..0000000 --- a/en/yaf_request_abstract/getcontrollername.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::getControllerName - The getControllerName purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getControllerName - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getenv.xml b/en/yaf_request_abstract/getenv.xml deleted file mode 100644 index a2ea4e5..0000000 --- a/en/yaf_request_abstract/getenv.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Request_Abstract::getEnv - The getEnv purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getEnv - stringname - stringdefault - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - default - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getexception.xml b/en/yaf_request_abstract/getexception.xml deleted file mode 100644 index 0545db6..0000000 --- a/en/yaf_request_abstract/getexception.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::getException - The getException purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getException - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getlanguage.xml b/en/yaf_request_abstract/getlanguage.xml deleted file mode 100644 index afe8545..0000000 --- a/en/yaf_request_abstract/getlanguage.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::getLanguage - The getLanguage purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getLanguage - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getmethod.xml b/en/yaf_request_abstract/getmethod.xml deleted file mode 100644 index 2729508..0000000 --- a/en/yaf_request_abstract/getmethod.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::getMethod - The getMethod purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getMethod - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getmodulename.xml b/en/yaf_request_abstract/getmodulename.xml deleted file mode 100644 index 5596833..0000000 --- a/en/yaf_request_abstract/getmodulename.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::getModuleName - The getModuleName purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getModuleName - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getparam.xml b/en/yaf_request_abstract/getparam.xml deleted file mode 100644 index dd01d83..0000000 --- a/en/yaf_request_abstract/getparam.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Request_Abstract::getParam - The getParam purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getParam - stringname - stringdefault - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - default - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getparams.xml b/en/yaf_request_abstract/getparams.xml deleted file mode 100644 index f16334c..0000000 --- a/en/yaf_request_abstract/getparams.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::getParams - The getParams purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getParams - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getrequesturi.xml b/en/yaf_request_abstract/getrequesturi.xml deleted file mode 100644 index cc0b43a..0000000 --- a/en/yaf_request_abstract/getrequesturi.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::getRequestUri - The getRequestUri purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getRequestUri - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/getserver.xml b/en/yaf_request_abstract/getserver.xml deleted file mode 100644 index 684648d..0000000 --- a/en/yaf_request_abstract/getserver.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Request_Abstract::getServer - The getServer purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::getServer - stringname - stringdefault - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - default - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/iscli.xml b/en/yaf_request_abstract/iscli.xml deleted file mode 100644 index 4557291..0000000 --- a/en/yaf_request_abstract/iscli.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::isCli - The isCli purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::isCli - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/isdispatched.xml b/en/yaf_request_abstract/isdispatched.xml deleted file mode 100644 index bd47e37..0000000 --- a/en/yaf_request_abstract/isdispatched.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::isDispatched - The isDispatched purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::isDispatched - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/isget.xml b/en/yaf_request_abstract/isget.xml deleted file mode 100644 index f579989..0000000 --- a/en/yaf_request_abstract/isget.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::isGet - The isGet purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::isGet - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/ishead.xml b/en/yaf_request_abstract/ishead.xml deleted file mode 100644 index 875b152..0000000 --- a/en/yaf_request_abstract/ishead.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::isHead - The isHead purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::isHead - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/isoptions.xml b/en/yaf_request_abstract/isoptions.xml deleted file mode 100644 index 1d7f151..0000000 --- a/en/yaf_request_abstract/isoptions.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::isOptions - The isOptions purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::isOptions - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/ispost.xml b/en/yaf_request_abstract/ispost.xml deleted file mode 100644 index feff5c7..0000000 --- a/en/yaf_request_abstract/ispost.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::isPost - The isPost purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::isPost - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/isput.xml b/en/yaf_request_abstract/isput.xml deleted file mode 100644 index b42257c..0000000 --- a/en/yaf_request_abstract/isput.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::isPut - The isPut purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::isPut - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/isrouted.xml b/en/yaf_request_abstract/isrouted.xml deleted file mode 100644 index 7e4b01a..0000000 --- a/en/yaf_request_abstract/isrouted.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::isRouted - The isRouted purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::isRouted - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/isxmlhttprequest.xml b/en/yaf_request_abstract/isxmlhttprequest.xml deleted file mode 100644 index 94ec46d..0000000 --- a/en/yaf_request_abstract/isxmlhttprequest.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::isXmlHttpRequest - The isXmlHttpRequest purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::isXmlHttpRequest - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/setactionname.xml b/en/yaf_request_abstract/setactionname.xml deleted file mode 100644 index 6205f92..0000000 --- a/en/yaf_request_abstract/setactionname.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Request_Abstract::setActionName - The setActionName purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::setActionName - stringaction - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - action - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/setbaseuri.xml b/en/yaf_request_abstract/setbaseuri.xml deleted file mode 100644 index 8620f00..0000000 --- a/en/yaf_request_abstract/setbaseuri.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Request_Abstract::setBaseUri - The setBaseUri purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::setBaseUri - stringuir - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - uir - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/setcontrollername.xml b/en/yaf_request_abstract/setcontrollername.xml deleted file mode 100644 index f220e5e..0000000 --- a/en/yaf_request_abstract/setcontrollername.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Request_Abstract::setControllerName - The setControllerName purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::setControllerName - stringcontroller - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - controller - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/setdispatched.xml b/en/yaf_request_abstract/setdispatched.xml deleted file mode 100644 index 7d314ed..0000000 --- a/en/yaf_request_abstract/setdispatched.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Abstract::setDispatched - The setDispatched purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::setDispatched - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/setmodulename.xml b/en/yaf_request_abstract/setmodulename.xml deleted file mode 100644 index 54c39b8..0000000 --- a/en/yaf_request_abstract/setmodulename.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Request_Abstract::setModuleName - The setModuleName purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::setModuleName - stringmodule - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - module - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/setparam.xml b/en/yaf_request_abstract/setparam.xml deleted file mode 100644 index 3b22a50..0000000 --- a/en/yaf_request_abstract/setparam.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Request_Abstract::setParam - The setParam purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::setParam - stringname - stringvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - value - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/setrequesturi.xml b/en/yaf_request_abstract/setrequesturi.xml deleted file mode 100644 index ce2a97a..0000000 --- a/en/yaf_request_abstract/setrequesturi.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Request_Abstract::setRequestUri - The setRequestUri purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::setRequestUri - stringuir - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - uir - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_abstract/setrouted.xml b/en/yaf_request_abstract/setrouted.xml deleted file mode 100644 index 38daae3..0000000 --- a/en/yaf_request_abstract/setrouted.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Request_Abstract::setRouted - The setRouted purpose - - - - &reftitle.description; - - public voidYaf_Request_Abstract::setRouted - stringflag - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - flag - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_http/clone.xml b/en/yaf_request_http/clone.xml deleted file mode 100644 index dbd2a84..0000000 --- a/en/yaf_request_http/clone.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Http::__clone - The __clone purpose - - - - &reftitle.description; - - private voidYaf_Request_Http::__clone - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_http/construct.xml b/en/yaf_request_http/construct.xml deleted file mode 100644 index fbc52d8..0000000 --- a/en/yaf_request_http/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Http::__construct - The __construct purpose - - - - &reftitle.description; - - Yaf_Request_Http::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_http/get.xml b/en/yaf_request_http/get.xml deleted file mode 100644 index 06d5004..0000000 --- a/en/yaf_request_http/get.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Http::get - The get purpose - - - - &reftitle.description; - - public voidYaf_Request_Http::get - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_http/getcookie.xml b/en/yaf_request_http/getcookie.xml deleted file mode 100644 index 7faf4ae..0000000 --- a/en/yaf_request_http/getcookie.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Http::getCookie - The getCookie purpose - - - - &reftitle.description; - - public voidYaf_Request_Http::getCookie - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_http/getfiles.xml b/en/yaf_request_http/getfiles.xml deleted file mode 100644 index e4239d4..0000000 --- a/en/yaf_request_http/getfiles.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Http::getFiles - The getFiles purpose - - - - &reftitle.description; - - public voidYaf_Request_Http::getFiles - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_http/getpost.xml b/en/yaf_request_http/getpost.xml deleted file mode 100644 index 443aa7d..0000000 --- a/en/yaf_request_http/getpost.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Http::getPost - The getPost purpose - - - - &reftitle.description; - - public voidYaf_Request_Http::getPost - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_http/getquery.xml b/en/yaf_request_http/getquery.xml deleted file mode 100644 index cd3ea09..0000000 --- a/en/yaf_request_http/getquery.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Http::getQuery - fetch a query parameter - - - - &reftitle.description; - - public voidYaf_Request_Http::getQuery - - - - Fetch a query parameter in $_GET. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_http/getrequest.xml b/en/yaf_request_http/getrequest.xml deleted file mode 100644 index 03cc816..0000000 --- a/en/yaf_request_http/getrequest.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Http::getRequest - The getRequest purpose - - - - &reftitle.description; - - public voidYaf_Request_Http::getRequest - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_http/isxmlhttprequest.xml b/en/yaf_request_http/isxmlhttprequest.xml deleted file mode 100644 index de43c75..0000000 --- a/en/yaf_request_http/isxmlhttprequest.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Http::isXmlHttpRequest - The isXmlHttpRequest purpose - - - - &reftitle.description; - - public voidYaf_Request_Http::isXmlHttpRequest - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_simple/clone.xml b/en/yaf_request_simple/clone.xml deleted file mode 100644 index 85a0155..0000000 --- a/en/yaf_request_simple/clone.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Simple::__clone - The __clone purpose - - - - &reftitle.description; - - private voidYaf_Request_Simple::__clone - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_simple/construct.xml b/en/yaf_request_simple/construct.xml deleted file mode 100644 index 275a230..0000000 --- a/en/yaf_request_simple/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Simple::__construct - The __construct purpose - - - - &reftitle.description; - - Yaf_Request_Simple::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_simple/get.xml b/en/yaf_request_simple/get.xml deleted file mode 100644 index 6684b95..0000000 --- a/en/yaf_request_simple/get.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Simple::get - The get purpose - - - - &reftitle.description; - - public voidYaf_Request_Simple::get - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_simple/getcookie.xml b/en/yaf_request_simple/getcookie.xml deleted file mode 100644 index 454b967..0000000 --- a/en/yaf_request_simple/getcookie.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Simple::getCookie - The getCookie purpose - - - - &reftitle.description; - - public voidYaf_Request_Simple::getCookie - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_simple/getfiles.xml b/en/yaf_request_simple/getfiles.xml deleted file mode 100644 index b62f60f..0000000 --- a/en/yaf_request_simple/getfiles.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Simple::getFiles - The getFiles purpose - - - - &reftitle.description; - - public voidYaf_Request_Simple::getFiles - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_simple/getpost.xml b/en/yaf_request_simple/getpost.xml deleted file mode 100644 index 87d630a..0000000 --- a/en/yaf_request_simple/getpost.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Simple::getPost - The getPost purpose - - - - &reftitle.description; - - public voidYaf_Request_Simple::getPost - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_simple/getquery.xml b/en/yaf_request_simple/getquery.xml deleted file mode 100644 index b2967c5..0000000 --- a/en/yaf_request_simple/getquery.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Simple::getQuery - The getQuery purpose - - - - &reftitle.description; - - public voidYaf_Request_Simple::getQuery - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_simple/getrequest.xml b/en/yaf_request_simple/getrequest.xml deleted file mode 100644 index 860959c..0000000 --- a/en/yaf_request_simple/getrequest.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Simple::getRequest - The getRequest purpose - - - - &reftitle.description; - - public voidYaf_Request_Simple::getRequest - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_request_simple/isxmlhttprequest.xml b/en/yaf_request_simple/isxmlhttprequest.xml deleted file mode 100644 index 2c6d483..0000000 --- a/en/yaf_request_simple/isxmlhttprequest.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Request_Simple::isXmlHttpRequest - The isXmlHttpRequest purpose - - - - &reftitle.description; - - public voidYaf_Request_Simple::isXmlHttpRequest - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/appendbody.xml b/en/yaf_response_abstract/appendbody.xml deleted file mode 100644 index 03be7e4..0000000 --- a/en/yaf_response_abstract/appendbody.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::appendBody - The appendBody purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::appendBody - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/clearbody.xml b/en/yaf_response_abstract/clearbody.xml deleted file mode 100644 index 9be0030..0000000 --- a/en/yaf_response_abstract/clearbody.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::clearBody - The clearBody purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::clearBody - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/clearheaders.xml b/en/yaf_response_abstract/clearheaders.xml deleted file mode 100644 index b063340..0000000 --- a/en/yaf_response_abstract/clearheaders.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::clearHeaders - The clearHeaders purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::clearHeaders - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/clone.xml b/en/yaf_response_abstract/clone.xml deleted file mode 100644 index b0bfea2..0000000 --- a/en/yaf_response_abstract/clone.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::__clone - The __clone purpose - - - - &reftitle.description; - - private voidYaf_Response_Abstract::__clone - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/construct.xml b/en/yaf_response_abstract/construct.xml deleted file mode 100644 index 04d2ab2..0000000 --- a/en/yaf_response_abstract/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::__construct - The __construct purpose - - - - &reftitle.description; - - public Yaf_Response_Abstract::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/destruct.xml b/en/yaf_response_abstract/destruct.xml deleted file mode 100644 index aacd308..0000000 --- a/en/yaf_response_abstract/destruct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::__destruct - The __destruct purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::__destruct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/getbody.xml b/en/yaf_response_abstract/getbody.xml deleted file mode 100644 index 3afe99c..0000000 --- a/en/yaf_response_abstract/getbody.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::getBody - The getBody purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::getBody - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/getheader.xml b/en/yaf_response_abstract/getheader.xml deleted file mode 100644 index 7eb77c9..0000000 --- a/en/yaf_response_abstract/getheader.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::getHeader - The getHeader purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::getHeader - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/prependbody.xml b/en/yaf_response_abstract/prependbody.xml deleted file mode 100644 index aa0b869..0000000 --- a/en/yaf_response_abstract/prependbody.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::prependBody - The prependBody purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::prependBody - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/response.xml b/en/yaf_response_abstract/response.xml deleted file mode 100644 index f21518d..0000000 --- a/en/yaf_response_abstract/response.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::response - The response purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::response - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/setallheaders.xml b/en/yaf_response_abstract/setallheaders.xml deleted file mode 100644 index 46ff244..0000000 --- a/en/yaf_response_abstract/setallheaders.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::setAllHeaders - The setAllHeaders purpose - - - - &reftitle.description; - - protected voidYaf_Response_Abstract::setAllHeaders - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/setbody.xml b/en/yaf_response_abstract/setbody.xml deleted file mode 100644 index 8a46d86..0000000 --- a/en/yaf_response_abstract/setbody.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::setBody - The setBody purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::setBody - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/setheader.xml b/en/yaf_response_abstract/setheader.xml deleted file mode 100644 index 16adfdd..0000000 --- a/en/yaf_response_abstract/setheader.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::setHeader - The setHeader purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::setHeader - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/setredirect.xml b/en/yaf_response_abstract/setredirect.xml deleted file mode 100644 index 339e528..0000000 --- a/en/yaf_response_abstract/setredirect.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::setRedirect - The setRedirect purpose - - - - &reftitle.description; - - public voidYaf_Response_Abstract::setRedirect - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_response_abstract/tostring.xml b/en/yaf_response_abstract/tostring.xml deleted file mode 100644 index 0639be0..0000000 --- a/en/yaf_response_abstract/tostring.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Response_Abstract::__toString - The __toString purpose - - - - &reftitle.description; - - private voidYaf_Response_Abstract::__toString - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_route_interface/route.xml b/en/yaf_route_interface/route.xml deleted file mode 100644 index 16ae261..0000000 --- a/en/yaf_route_interface/route.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - Yaf_Route_Interface::route - route a request - - - - &reftitle.description; - - abstract public boolYaf_Route_Interface::route - Yaf_Request_Abstractrequest - - - Yaf_Route_Interface::route is the only method - that a custom route should implement. - - - if this method return TRUE, then the route process will be end. otherwise, - Yaf_Router will call next route in the route stack - to route request. - - - - This method would set the route result to the parameter request, by - calling Yaf_Request_Abstract::setControllerName, - Yaf_Request_Abstract::setActionName and - Yaf_Request_Abstract::setModuleName. - - - - This method should also call - Yaf_Request_Abstract::setRouted to make the - request routed at last. - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - A Yaf_Request_Abstract instance. - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_route_map/construct.xml b/en/yaf_route_map/construct.xml deleted file mode 100644 index 71826b3..0000000 --- a/en/yaf_route_map/construct.xml +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - Yaf_Route_Map::__construct - The __construct purpose - - - - &reftitle.description; - - public Yaf_Route_Map::__construct - stringcontroller_preferfalse - stringdelimiter'' - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - controller_prefer - - - Whether the result should considering as controller or action - - - - - delimiter - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Route_Map</function>example - -getRouter()->addRoute("name", - new Yaf_Route_Map()); -?> -]]> - - &example.outputs.similar; - - "product_foo_bar", -) -]]> - - - - <function>Yaf_Route_Map</function>example - -getRouter()->addRoute("name", - new Yaf_Route_Map(true, "_")); -?> -]]> - - &example.outputs.similar; - - "user_list", -) - -/** - * and request parameters: - */ -array( - "foo" => 22, -) -]]> - - - - <function>Yaf_Route_Map</function>example - - array( - "type" => "map", //Yaf_Route_Map route - "controllerPrefer" => FALSE, - "delimiter" => "#!", - ), - ); - Yaf_Dispatcher::getInstance()->getRouter()->addConfig( - new Yaf_Config_Simple($config)); -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_Router::addRoute - Yaf_Route_Static - Yaf_Route_Supervar - Yaf_Route_Simple - Yaf_Route_Regex - Yaf_Route_Rewrite - - - - - - diff --git a/en/yaf_route_map/route.xml b/en/yaf_route_map/route.xml deleted file mode 100644 index ed51110..0000000 --- a/en/yaf_route_map/route.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Route_Map::route - The route purpose - - - - &reftitle.description; - - public boolYaf_Route_Map::route - Yaf_Request_Abstractrequest - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_route_regex/construct.xml b/en/yaf_route_regex/construct.xml deleted file mode 100644 index 482899c..0000000 --- a/en/yaf_route_regex/construct.xml +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - Yaf_Route_Regex::__construct - The __construct purpose - - - - &reftitle.description; - - publicYaf_Route_Regex::__construct - stringmatch - arrayroute - arraymap - arrayverify - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - match - - - A complete Regex pattern, will be used to match a request uri, if - doesn't matched, Yaf_Route_Regex will return - FALSE. - - - - - route - - - When the match pattern matches the request uri, - Yaf_Route_Regex will use this to decide which - m/c/a to routed. - - - either of m/c/a in this array is optianl, if you don't assgian a - specific value, it will be routed to default. - - - - - map - - - A array to assign name to the captrues in the match result. - - - - - verify - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Route_Regex</function>example - -getRouter()->addRoute("name", - new Yaf_Route_Regex( - "#^/product/([^/]+)/([^/])+#", //match request uri leading "/product" - array( - 'controller' => "product", //route to product controller, - ), - array( - 1 => "name", // now you can call $request->getParam("name") - 2 => "id", // to get the first captrue in the match pattern. - ) - ) - ); -?> -]]> - - - - <function>Yaf_Route_Regex</function>example - - array( - "type" => "regex", //Yaf_Route_Regex route - "match" => "#(.*)#", //match arbitrary request uri - "route" => array( - 'controller' => "product", //route to product controller, - 'action' => "dummy", //route to dummy action - ), - "map" => array( - 1 => "uri", // now you can call $request->getParam("uri") - ), - ), - ); - Yaf_Dispatcher::getInstance()->getRouter()->addConfig( - new Yaf_Config_Simple($config)); -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_Router::addRoute - Yaf_Router::addConfig - Yaf_Route_Static - Yaf_Route_Supervar - Yaf_Route_Simple - Yaf_Route_Rewrite - Yaf_Route_Map - - - - - - diff --git a/en/yaf_route_regex/route.xml b/en/yaf_route_regex/route.xml deleted file mode 100644 index 91120e0..0000000 --- a/en/yaf_route_regex/route.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - Yaf_Route_Regex::route - The route purpose - - - - &reftitle.description; - - public boolYaf_Route_Regex::route - Yaf_Request_Abstractrequest - - - Route a incoming request. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - - - - &reftitle.returnvalues; - - If the pattern given by the first parameter of - Yaf_Route_Regex::_construct matche the request - uri, return TRUE, otherwise return FALSE. - - - - - - - diff --git a/en/yaf_route_rewrite/construct.xml b/en/yaf_route_rewrite/construct.xml deleted file mode 100644 index f10491d..0000000 --- a/en/yaf_route_rewrite/construct.xml +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - Yaf_Route_Rewrite::__construct - The __construct purpose - - - - &reftitle.description; - - publicYaf_Route_Rewrite::__construct - stringmatch - arrayroute - arrayverify - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - match - - - A pattern, will be used to match a request uri, if - doesn't matched, Yaf_Route_Rewrite will return - FALSE. - - - - - route - - - When the match pattern matches the request uri, - Yaf_Route_Rewrite will use this to decide which - m/c/a to routed. - - - either of m/c/a in this array is optianl, if you don't assgian a - specific value, it will be routed to default. - - - - - verify - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Route_Rewrite</function>example - -getRouter()->addRoute("name", - new Yaf_Route_rewrite( - "/product/:name/:id/*", //match request uri leading "/product" - array( - 'controller' => "product", //route to product controller, - ), - ) - ); -?> -]]> - - &example.outputs.similar; - - "product", - "module" => "index", //(default) - "action" => "index", //(default) -) - -/** - * and request parameters: - */ -array( - "name" => "foo", - "id" => 22, - "foo" => bar -) -]]> - - - - <function>Yaf_Route_Rewrite</function>example - - array( - "type" => "rewrite", //Yaf_Route_Rewrite route - "match" => "/user-list/:id", //match only /user/list/?/ - "route" => array( - 'controller' => "user", //route to user controller, - 'action' => "list", //route to list action - ), - ), - ); - Yaf_Dispatcher::getInstance()->getRouter()->addConfig( - new Yaf_Config_Simple($config)); -?> -]]> - - &example.outputs.similar; - - "user", - "action" => "list", - "module" => "index", //(default) -) - -/** - * and request parameters: - */ -array( - "id" => 22, -) -]]> - - - - - - &reftitle.seealso; - - Yaf_Router::addRoute - Yaf_Router::addConfig - Yaf_Route_Static - Yaf_Route_Supervar - Yaf_Route_Simple - Yaf_Route_Regex - Yaf_Route_Map - - - - - - diff --git a/en/yaf_route_rewrite/route.xml b/en/yaf_route_rewrite/route.xml deleted file mode 100644 index 77350d3..0000000 --- a/en/yaf_route_rewrite/route.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Route_Rewrite::route - The route purpose - - - - &reftitle.description; - - public boolYaf_Route_Rewrite::route - Yaf_Request_Abstractrequest - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_route_simple/construct.xml b/en/yaf_route_simple/construct.xml deleted file mode 100644 index aa4d3c3..0000000 --- a/en/yaf_route_simple/construct.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - Yaf_Route_Simple::__construct - Yaf_Route_Simple constructor - - - - &reftitle.description; - - publicYaf_Route_Simple::__construct - stringmodule_name - stringcontroller_name - stringaction_name - - - Yaf_Route_Simple will get route info from query - string. and the parameters of this constructor will used as keys while searching for the - route info in $_GET. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - module_name - - - The key name of the module info. - - - - - controller_name - - - the key name of the controller info. - - - - - action_name - - - the key name of the action info. - - - - - - - - &reftitle.returnvalues; - - Always return TRUE. - - - - - &reftitle.examples; - - <function>Yaf_Route_Simple::route</function>example - -addRoute("simple", $route); -?> -]]> - - - - <function>Yaf_Route_Simple::route</function>example - - module = default(index), controller = a, action = b - -Request: http://yourdomain.com/path -=> module = default(index), controller = default(index), action = default(index) -]]> - - - - - - &reftitle.seealso; - - Yaf_Route_Supervar::route - Yaf_Route_Static::route - Yaf_Route_Regex::route - Yaf_Route_Rewrite::route - Yaf_Route_Map::route - - - - - - diff --git a/en/yaf_route_simple/route.xml b/en/yaf_route_simple/route.xml deleted file mode 100644 index 1571f9a..0000000 --- a/en/yaf_route_simple/route.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - Yaf_Route_Simple::route - Route a request - - - - &reftitle.description; - - public boolYaf_Route_Simple::route - Yaf_Request_Abstractrequest - - - see Yaf_Route_Simple::__construct - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - - - - &reftitle.returnvalues; - - always be TRUE - - - - - &reftitle.seealso; - - Yaf_Route_Supervar::route - Yaf_Route_Static::route - Yaf_Route_Regex::route - Yaf_Route_Rewrite::route - Yaf_Route_Map::route - - - - - - diff --git a/en/yaf_route_static/match.xml b/en/yaf_route_static/match.xml deleted file mode 100644 index 66f5d01..0000000 --- a/en/yaf_route_static/match.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Route_Static::match - The match purpose - - - - &reftitle.description; - - public voidYaf_Route_Static::match - stringuri - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - uri - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_route_static/route.xml b/en/yaf_route_static/route.xml deleted file mode 100644 index 16e3d45..0000000 --- a/en/yaf_route_static/route.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - Yaf_Route_Static::route - Route a request - - - - &reftitle.description; - - public boolYaf_Route_Static::route - Yaf_Request_Abstractrequest - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - - - - &reftitle.returnvalues; - - always be TRUE - - - - - &reftitle.examples; - - <function>Yaf_Route_Static::route</function>example - - module = index, controller=a, action=b - -//assuming ap.action_prefer = On -Request: http://yourdomain.com/b -=> module = default(index), controller = default(index), action = b - -//assuming ap.action_prefer = Off -Request: http://yourdomain.com/b -=> module = default(index), controller = b, action = default(index) - - -Request: http://yourdomain.com/a/b/foo/bar/test/a/id/4 -=> module = default(index), controller = a, action = b, request parameters: foo = bar, test = a, id = 4 -]]> - - - - - - &reftitle.seealso; - - Yaf_Route_Supervar::route - Yaf_Route_Simple::route - Yaf_Route_Regex::route - Yaf_Route_Rewrite::route - Yaf_Route_Map::route - - - - - - - diff --git a/en/yaf_route_supervar/construct.xml b/en/yaf_route_supervar/construct.xml deleted file mode 100644 index d06b80f..0000000 --- a/en/yaf_route_supervar/construct.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - Yaf_Route_Supervar::__construct - The __construct purpose - - - - &reftitle.description; - - publicYaf_Route_Supervar::__construct - stringsupervar_name - - - Yaf_Route_Supervar is similar with - Yaf_Route_Static, the difference is - Yaf_Route_Supervar will look for path info in query - string, and the parameter supervar_name is the key. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - supervar_name - - - The name of key. - - - - - - - - &reftitle.returnvalues; - - - - - - &reftitle.examples; - - <function>Yaf_Route_Supervar</function>example - -getRouter()->addRoute("name", - new Yaf_Route_Supervar("r")); - ); -?> -]]> - - &example.outputs.similar; - - index(default), - "controller" => ctr, - "action" => act, - "params" => array( - "var" => value, - ) - ) -]]> - - - - - - &reftitle.seealso; - - Yaf_Router::addRoute - Yaf_Router::addConfig - Yaf_Route_Static - Yaf_Route_Regex - Yaf_Route_Simple - Yaf_Route_Rewrite - Yaf_Route_Map - - - - - - diff --git a/en/yaf_route_supervar/route.xml b/en/yaf_route_supervar/route.xml deleted file mode 100644 index 824d77a..0000000 --- a/en/yaf_route_supervar/route.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - Yaf_Route_Supervar::route - The route purpose - - - - &reftitle.description; - - public boolYaf_Route_Supervar::route - Yaf_Request_Abstractrequest - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - request - - - - - - - - - - - &reftitle.returnvalues; - - If there is a key(which was defined in - Yaf_Route_Supervar::__construct) in $_GET, return TRUE. - otherwise return FALSE. - - - - - - - diff --git a/en/yaf_router/addconfig.xml b/en/yaf_router/addconfig.xml deleted file mode 100644 index 31596c4..0000000 --- a/en/yaf_router/addconfig.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - Yaf_Router::addConfig - Add config-defined routes into Router - - - - &reftitle.description; - - public voidYaf_Router::addConfig - Yaf_Config_Abstractconfig - - - Add Routes defined in application.ini into - Yaf_Router's route stack - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>application.ini</function>example - - - - - - <function>Yaf_Dispatcher::autoConfig</function>example - -getConfig(); - Yaf_Registry::set("config", $config); - } - - public function _initRoute(Yaf_Dispatcher $dispatcher) { - $router = $dispatcher->getRouter(); - /** - * we can add some pre-defined routes in application.ini - */ - $router->addConfig(Yaf_Registry::get("config")->routes); - } -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_Router::addRoute - Yaf_Route_Static - Yaf_Route_Supervar - Yaf_Route_Simple - Yaf_Route_Regex - Yaf_Route_Rewrite - Yaf_Route_Map - - - - - - diff --git a/en/yaf_router/addroute.xml b/en/yaf_router/addroute.xml deleted file mode 100644 index 5af0526..0000000 --- a/en/yaf_router/addroute.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - Yaf_Router::addRoute - Add new Route into Router - - - - &reftitle.description; - - public Yaf_RouterYaf_Router::addRoute - stringname - Yaf_Route_Abstractroute - - - defaultly, Yaf_Router using a Yaf_Route_Static as its defualt route. you - can add new routes into Router's route stack by calling this method. - - - the newer route will be called before the older(route stack), and if the newer router return - TRUE, the router process will be end. otherwise, the older one will be - called. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Dispatcher::autoRender</function>example - -getConfig(); - Yaf_Registry::set("config", $config); - } - - public function _initRoute(Yaf_Dispatcher $dispatcher) { - $router = $dispatcher->getRouter(); - /** - * we can add some pre-defined routes in application.ini - */ - $router->addConfig(Yaf_Registry::get("config")->routes); - /** - * add a Rewrite route, then for a request uri: - * http://***/product/list/22/foo - * will be matched by this route, and result: - * - * [module] => - * [controller] => product - * [action] => info - * [method] => GET - * [params:protected] => Array - * ( - * [id] => 22 - * [name] => foo - * ) - * - */ - $route = new Yaf_Route_Rewrite( - "/product/list/:id/:name", - array( - "controller" => "product", - "action" => "info", - ) - ); - - $router->addRoute('dummy', $route); - } -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_Router::addConfig - Yaf_Route_Static - Yaf_Route_Supervar - Yaf_Route_Simple - Yaf_Route_Regex - Yaf_Route_Rewrite - Yaf_Route_Map - - - - - - diff --git a/en/yaf_router/construct.xml b/en/yaf_router/construct.xml deleted file mode 100644 index 6c66a19..0000000 --- a/en/yaf_router/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Router::__construct - Yaf_Router constructor - - - - &reftitle.description; - - publicYaf_Router::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_router/getcurrentroute.xml b/en/yaf_router/getcurrentroute.xml deleted file mode 100644 index d7d53ec..0000000 --- a/en/yaf_router/getcurrentroute.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - Yaf_Router::getCurrentRoute - Get the effective route name - - - - &reftitle.description; - - public stringYaf_Router::getCurrentRoute - - - - Get the name of the route which is effective in the route process. - - - You should call this method after the route process finished, since - before that, this method will always return NULL. - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - String, the name of the effective route. - - - - - &reftitle.examples; - - Register some routes in Bootstrap - -getConfig(); - Yaf_Registry::set("config", $config); - } - - public function _initRoute(Yaf_Dispatcher $dispatcher) { - $router = $dispatcher->getRouter(); - $rewrite_route = new Yaf_Route_Rewrite( - "/product/list/:page", - array( - "controller" => "product", - "action" => "list", - ) - ); - - $regex_route = new Yaf_Route_Rewrite( - "#^/product/info/(\d+)", - array( - "controller" => "product", - "action" => "info", - ) - ); - - $router->addRoute('rewrite', $rewrite_route)->addRoute('regex', $regex_route); - } - - /** - * register plugin - */ - public function __initPlugins(Yaf_Dispatcher $dispatcher) { - $dispatcher->registerPlugin(new DummyPlugin()); - } -?> -]]> - - - - plugin Dummy.php (under <link - linkend="configuration.yaf.directory">application.directory</link>/plugins) - -getRouter()->getCurrentRoute()); - } -?> -?> -]]> - - &example.outputs.similar; - - - - - - - - &reftitle.seealso; - - Yaf_Bootstrap_Abstract - Yaf_Plugin_Abstract - Yaf_Router::addRoute - - - - - - diff --git a/en/yaf_router/getroute.xml b/en/yaf_router/getroute.xml deleted file mode 100644 index 67c3d49..0000000 --- a/en/yaf_router/getroute.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Router::getRoute - The getRoute purpose - - - - &reftitle.description; - - public voidYaf_Router::getRoute - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_router/getroutes.xml b/en/yaf_router/getroutes.xml deleted file mode 100644 index 059ae01..0000000 --- a/en/yaf_router/getroutes.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Router::getRoutes - The getRoutes purpose - - - - &reftitle.description; - - public voidYaf_Router::getRoutes - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_router/route.xml b/en/yaf_router/route.xml deleted file mode 100644 index aa8c041..0000000 --- a/en/yaf_router/route.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Router::route - The route purpose - - - - &reftitle.description; - - public boolYaf_Router::route - Yaf_Request_Abstractrequest - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/clone.xml b/en/yaf_session/clone.xml deleted file mode 100644 index 260d8f5..0000000 --- a/en/yaf_session/clone.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::__clone - The __clone purpose - - - - &reftitle.description; - - private voidYaf_Session::__clone - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/construct.xml b/en/yaf_session/construct.xml deleted file mode 100644 index 00e7a21..0000000 --- a/en/yaf_session/construct.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::__construct - The __construct purpose - - - - &reftitle.description; - - Yaf_Session::__construct - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/count.xml b/en/yaf_session/count.xml deleted file mode 100644 index ec0e8c6..0000000 --- a/en/yaf_session/count.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::count - The count purpose - - - - &reftitle.description; - - public voidYaf_Session::count - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/current.xml b/en/yaf_session/current.xml deleted file mode 100644 index bbcd00b..0000000 --- a/en/yaf_session/current.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::current - The current purpose - - - - &reftitle.description; - - public voidYaf_Session::current - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/del.xml b/en/yaf_session/del.xml deleted file mode 100644 index f56e312..0000000 --- a/en/yaf_session/del.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Session::del - The del purpose - - - - &reftitle.description; - - public voidYaf_Session::del - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/get.xml b/en/yaf_session/get.xml deleted file mode 100644 index 26ff114..0000000 --- a/en/yaf_session/get.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Session::__get - The __get purpose - - - - &reftitle.description; - - public voidYaf_Session::__get - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/getinstance.xml b/en/yaf_session/getinstance.xml deleted file mode 100644 index bd3ac36..0000000 --- a/en/yaf_session/getinstance.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::getInstance - The getInstance purpose - - - - &reftitle.description; - - public static voidYaf_Session::getInstance - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/has.xml b/en/yaf_session/has.xml deleted file mode 100644 index a720cba..0000000 --- a/en/yaf_session/has.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Session::has - The has purpose - - - - &reftitle.description; - - public voidYaf_Session::has - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/isset.xml b/en/yaf_session/isset.xml deleted file mode 100644 index b344baf..0000000 --- a/en/yaf_session/isset.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Session::__isset - The __isset purpose - - - - &reftitle.description; - - public voidYaf_Session::__isset - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/key.xml b/en/yaf_session/key.xml deleted file mode 100644 index d948306..0000000 --- a/en/yaf_session/key.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::key - The key purpose - - - - &reftitle.description; - - public voidYaf_Session::key - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/next.xml b/en/yaf_session/next.xml deleted file mode 100644 index 2e93b50..0000000 --- a/en/yaf_session/next.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::next - The next purpose - - - - &reftitle.description; - - public voidYaf_Session::next - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/offsetexists.xml b/en/yaf_session/offsetexists.xml deleted file mode 100644 index f5f714a..0000000 --- a/en/yaf_session/offsetexists.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Session::offsetExists - The offsetExists purpose - - - - &reftitle.description; - - public voidYaf_Session::offsetExists - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/offsetget.xml b/en/yaf_session/offsetget.xml deleted file mode 100644 index 2a8c186..0000000 --- a/en/yaf_session/offsetget.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Session::offsetGet - The offsetGet purpose - - - - &reftitle.description; - - public voidYaf_Session::offsetGet - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/offsetset.xml b/en/yaf_session/offsetset.xml deleted file mode 100644 index 7c32705..0000000 --- a/en/yaf_session/offsetset.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Session::offsetSet - The offsetSet purpose - - - - &reftitle.description; - - public voidYaf_Session::offsetSet - stringname - stringvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - value - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/offsetunset.xml b/en/yaf_session/offsetunset.xml deleted file mode 100644 index 130e4ec..0000000 --- a/en/yaf_session/offsetunset.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Session::offsetUnset - The offsetUnset purpose - - - - &reftitle.description; - - public voidYaf_Session::offsetUnset - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/rewind.xml b/en/yaf_session/rewind.xml deleted file mode 100644 index 032dd5e..0000000 --- a/en/yaf_session/rewind.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::rewind - The rewind purpose - - - - &reftitle.description; - - public voidYaf_Session::rewind - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/set.xml b/en/yaf_session/set.xml deleted file mode 100644 index e15bad4..0000000 --- a/en/yaf_session/set.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_Session::__set - The __set purpose - - - - &reftitle.description; - - public voidYaf_Session::__set - stringname - stringvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - value - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/sleep.xml b/en/yaf_session/sleep.xml deleted file mode 100644 index 1eba918..0000000 --- a/en/yaf_session/sleep.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::__sleep - The __sleep purpose - - - - &reftitle.description; - - private voidYaf_Session::__sleep - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/start.xml b/en/yaf_session/start.xml deleted file mode 100644 index b7e79ea..0000000 --- a/en/yaf_session/start.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::start - The start purpose - - - - &reftitle.description; - - public voidYaf_Session::start - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/unset.xml b/en/yaf_session/unset.xml deleted file mode 100644 index 8d584a2..0000000 --- a/en/yaf_session/unset.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_Session::__unset - The __unset purpose - - - - &reftitle.description; - - public voidYaf_Session::__unset - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/valid.xml b/en/yaf_session/valid.xml deleted file mode 100644 index 97d6563..0000000 --- a/en/yaf_session/valid.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::valid - The valid purpose - - - - &reftitle.description; - - public voidYaf_Session::valid - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_session/wakeup.xml b/en/yaf_session/wakeup.xml deleted file mode 100644 index 18cd144..0000000 --- a/en/yaf_session/wakeup.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_Session::__wakeup - The __wakeup purpose - - - - &reftitle.description; - - private voidYaf_Session::__wakeup - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_interface/assign.xml b/en/yaf_view_interface/assign.xml deleted file mode 100644 index 9b893e9..0000000 --- a/en/yaf_view_interface/assign.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_View_Interface::assign - Assign value to View engine - - - - &reftitle.description; - - abstract public boolYaf_View_Interface::assign - stringname - stringvalue - - - Assigan values to View engine, then the value can access directly by name in template. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - value - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_interface/display.xml b/en/yaf_view_interface/display.xml deleted file mode 100644 index 13e3611..0000000 --- a/en/yaf_view_interface/display.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_View_Interface::display - Render and output a template - - - - &reftitle.description; - - abstract public boolYaf_View_Interface::display - stringtpl - arraytpl_vars - - - Render a template and output the result immediatly. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - tpl - - - - - - - - tpl_vars - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_interface/getscriptpath.xml b/en/yaf_view_interface/getscriptpath.xml deleted file mode 100644 index 83c67b6..0000000 --- a/en/yaf_view_interface/getscriptpath.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_View_Interface::getScriptPath - The getScriptPath purpose - - - - &reftitle.description; - - abstract public voidYaf_View_Interface::getScriptPath - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_interface/render.xml b/en/yaf_view_interface/render.xml deleted file mode 100644 index 016bd89..0000000 --- a/en/yaf_view_interface/render.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_View_Interface::render - Render a template - - - - &reftitle.description; - - abstract public stringYaf_View_Interface::render - stringtpl - arraytpl_vars - - - Render a template and return the result. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - tpl - - - - - - - - tpl_vars - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_interface/setscriptpath.xml b/en/yaf_view_interface/setscriptpath.xml deleted file mode 100644 index c93b6e8..0000000 --- a/en/yaf_view_interface/setscriptpath.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - Yaf_View_Interface::setScriptPath - The setScriptPath purpose - - - - &reftitle.description; - - abstract public voidYaf_View_Interface::setScriptPath - stringtemplate_dir - - - Set the templates base directory, this is usually called by - Yaf_Dispatcher - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - template_dir - - - A absolute path to the template directory, by default, - Yaf_Dispatcher use - application.directory . "/views" as this paramter. - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_simple/assign.xml b/en/yaf_view_simple/assign.xml deleted file mode 100644 index 4d4cb5d..0000000 --- a/en/yaf_view_simple/assign.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - Yaf_View_Simple::assign - Assign values - - - - &reftitle.description; - - public boolYaf_View_Simple::assign - stringname - mixedvalue - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - A string or an array. - - - if is string, then the next argument $value is required. - - - - - value - - - mixed value - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_View_Simple::assign</function>example - -getView()->assign("foo", "bar"); - $this->_view->assign( array( "key" => "value", "name" => "value")); - } -?> -]]> - - - - <function>template</function>example - - - - <?php echo $foo; ?> - - - _tpl_vars as $name => value) { - echo $$name; // or echo $this->_tpl_vars[$name]; - } - ?> - - -]]> - - - - - - &reftitle.seealso; - - Yaf_View_Simple::assignRef - Yaf_View_Interface::clear - Yaf_View_Simple::__set - - - - - - diff --git a/en/yaf_view_simple/assignref.xml b/en/yaf_view_simple/assignref.xml deleted file mode 100644 index 4c7707f..0000000 --- a/en/yaf_view_simple/assignref.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - Yaf_View_Simple::assignRef - The assignRef purpose - - - - &reftitle.description; - - public boolYaf_View_Simple::assignRef - stringname - mixedvalue - - - unlike Yaf_View_Simple::assign, this method - assign a ref value to engine. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - A string name which will be used to access the value in the tempalte. - - - - - value - - - mixed value - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_View_Simple::assignRef</function>example - -getView()->assign("foo", $value); - - /* plz note that there was a bug before Yaf 2.1.4, - * which make following output "bar"; - */ - $dummy = $this->getView()->render("index/index.phtml"); - echo $value; - - //prevent the auto-render - Yaf_Dispatcher::getInstance()->autoRender(FALSE); - } -?> -]]> - - - - <function>template</function>example - - - - <?php echo $foo; $foo = "changed"; ?> - - - - -]]> - - &example.outputs.similar; - - - - - - - - &reftitle.seealso; - - Yaf_View_Simple::assign - Yaf_View_Simple::__set - - - - - - diff --git a/en/yaf_view_simple/clear.xml b/en/yaf_view_simple/clear.xml deleted file mode 100644 index 17fdee2..0000000 --- a/en/yaf_view_simple/clear.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - Yaf_View_Simple::clear - Clear Assigned values - - - - &reftitle.description; - - public boolYaf_View_Simple::clear - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - assigned variable name - - - if empty, will clear all assigned variables - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_View_Simple::clear</function>example - -getView()->clear("foo")->clear("bar"); // clear "foo" and "bar" - $this->_view->clear(); //clear all assigned variables - } -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_View_Simple::assignRef - Yaf_View_Interface::assign - Yaf_View_Simple::__set - - - - - - diff --git a/en/yaf_view_simple/construct.xml b/en/yaf_view_simple/construct.xml deleted file mode 100644 index d63ff5d..0000000 --- a/en/yaf_view_simple/construct.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - Yaf_View_Simple::__construct - The __construct purpose - - - - &reftitle.description; - - public Yaf_View_Simple::__construct - stringtempalte_dir - arrayoptions - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - tempalte_dir - - - The base directory of the templates, by default, - it is APPLICATOIN . "/views" for Yaf. - - - - - options - - - " in your template(regardless of "short_open_tag"), - so comes a option named "short_tag", you can switch this off - to prevent use short_tag in template. - ]]> - - - - - - - - &reftitle.examples; - - <function>Yaf_View_Simple::__constructor</function>example - - false //doesn't allow use short tag in template - )); -?> -]]> - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_simple/display.xml b/en/yaf_view_simple/display.xml deleted file mode 100644 index f1e85d3..0000000 --- a/en/yaf_view_simple/display.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_View_Simple::display - Render and dispaly - - - - &reftitle.description; - - public boolYaf_View_Simple::display - stringtpl - arraytpl_vars - - - Render a template and dispaly the result instantly. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - tpl - - - - - - - - tpl_vars - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_simple/get.xml b/en/yaf_view_simple/get.xml deleted file mode 100644 index 7e048b1..0000000 --- a/en/yaf_view_simple/get.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - Yaf_View_Simple::__get - Retrieve assigned variable - - - - &reftitle.description; - - public voidYaf_View_Simple::__get - stringname - - - - - parameter can be empty since 2.1.11 - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - the assigned variable name - - - if this is empty, all assigned variables will be returned - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_simple/getscriptpath.xml b/en/yaf_view_simple/getscriptpath.xml deleted file mode 100644 index ade745a..0000000 --- a/en/yaf_view_simple/getscriptpath.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Yaf_View_Simple::getScriptPath - Get template base directory - - - - &reftitle.description; - - public stringYaf_View_Simple::getScriptPath - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_simple/isset.xml b/en/yaf_view_simple/isset.xml deleted file mode 100644 index 3fb9725..0000000 --- a/en/yaf_view_simple/isset.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_View_Simple::__isset - The __isset purpose - - - - &reftitle.description; - - public voidYaf_View_Simple::__isset - stringname - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_simple/render.xml b/en/yaf_view_simple/render.xml deleted file mode 100644 index d92c17d..0000000 --- a/en/yaf_view_simple/render.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Yaf_View_Simple::render - Render template - - - - &reftitle.description; - - public stringYaf_View_Simple::render - stringtpl - arraytpl_vars - - - Render a tempalte and return the result. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - tpl - - - - - - - - tpl_vars - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - diff --git a/en/yaf_view_simple/set.xml b/en/yaf_view_simple/set.xml deleted file mode 100644 index dbfcc8b..0000000 --- a/en/yaf_view_simple/set.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - Yaf_View_Simple::__set - Set value to engine - - - - &reftitle.description; - - public voidYaf_View_Simple::__set - stringname - mixedvalue - - - This is a easier way to instead of - Yaf_View_Simple::assign. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - name - - - A string value name. - - - - - value - - - Mixed value. - - - - - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_View_Simple::__set</function>example - -getView()->foo = "bar"; // same as assign("foo", "bar"); - } -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_View_Simple::assignRef - Yaf_View_Interface::assign - - - - - - diff --git a/en/yaf_view_simple/setscriptpath.xml b/en/yaf_view_simple/setscriptpath.xml deleted file mode 100644 index 6c98adc..0000000 --- a/en/yaf_view_simple/setscriptpath.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Yaf_View_Simple::setScriptPath - Set tempalte base directory - - - - &reftitle.description; - - public boolYaf_View_Simple::setScriptPath - stringtemplate_dir - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - - - template_dir - - - - - - - - - - - &reftitle.returnvalues; - - - - - - - - - From aaefcbee145ac4c3c4dec65f7b1efef1350b3fb6 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 02:05:28 +0800 Subject: [PATCH 03/26] process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改为过程 --- zh/appconfig.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh/appconfig.xml b/zh/appconfig.xml index 001ad07..a0725ad 100644 --- a/zh/appconfig.xml +++ b/zh/appconfig.xml @@ -192,7 +192,7 @@ yaf.dispatcher.catchException = 0 - 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, + 一个以逗号分割的已注册的模块(module)列表,在路由过程中使用, 特别是在PATH_INFO中有超过3段的时候。 @@ -263,10 +263,10 @@ yaf.dispatcher.catchException = 0 - 在路由进程中用来移除接受到的URI的固定前缀。 + 在路由过程中用来移除接受到的URI的固定前缀。 例如,有一个接收到的URI: "/prefix/controller/action". 如果你将application.baseUri 设置成 - "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由过程中 一般情况下,你不需要设置这个值 From e25a6d1f19ccb7b39f73e709dc16dfaa18f0b03c Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 09:08:45 +0800 Subject: [PATCH 04/26] Revert "process" This reverts commit aaefcbee145ac4c3c4dec65f7b1efef1350b3fb6. --- zh/appconfig.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh/appconfig.xml b/zh/appconfig.xml index a0725ad..001ad07 100644 --- a/zh/appconfig.xml +++ b/zh/appconfig.xml @@ -192,7 +192,7 @@ yaf.dispatcher.catchException = 0 - 一个以逗号分割的已注册的模块(module)列表,在路由过程中使用, + 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, 特别是在PATH_INFO中有超过3段的时候。 @@ -263,10 +263,10 @@ yaf.dispatcher.catchException = 0 - 在路由过程中用来移除接受到的URI的固定前缀。 + 在路由进程中用来移除接受到的URI的固定前缀。 例如,有一个接收到的URI: "/prefix/controller/action". 如果你将application.baseUri 设置成 - "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由过程中 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 一般情况下,你不需要设置这个值 From 2881d0d2e33523be6d8de34afb6a0e4cda2d2ac5 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 09:08:47 +0800 Subject: [PATCH 05/26] Revert "Revert "process"" This reverts commit e25a6d1f19ccb7b39f73e709dc16dfaa18f0b03c. --- zh/appconfig.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh/appconfig.xml b/zh/appconfig.xml index 001ad07..a0725ad 100644 --- a/zh/appconfig.xml +++ b/zh/appconfig.xml @@ -192,7 +192,7 @@ yaf.dispatcher.catchException = 0 - 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, + 一个以逗号分割的已注册的模块(module)列表,在路由过程中使用, 特别是在PATH_INFO中有超过3段的时候。 @@ -263,10 +263,10 @@ yaf.dispatcher.catchException = 0 - 在路由进程中用来移除接受到的URI的固定前缀。 + 在路由过程中用来移除接受到的URI的固定前缀。 例如,有一个接收到的URI: "/prefix/controller/action". 如果你将application.baseUri 设置成 - "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由过程中 一般情况下,你不需要设置这个值 From 4c72090a999b681845ee43d2965ffcc7eb02730a Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 09:08:48 +0800 Subject: [PATCH 06/26] Revert "Revert "Revert "process""" This reverts commit 2881d0d2e33523be6d8de34afb6a0e4cda2d2ac5. --- zh/appconfig.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh/appconfig.xml b/zh/appconfig.xml index a0725ad..001ad07 100644 --- a/zh/appconfig.xml +++ b/zh/appconfig.xml @@ -192,7 +192,7 @@ yaf.dispatcher.catchException = 0 - 一个以逗号分割的已注册的模块(module)列表,在路由过程中使用, + 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, 特别是在PATH_INFO中有超过3段的时候。 @@ -263,10 +263,10 @@ yaf.dispatcher.catchException = 0 - 在路由过程中用来移除接受到的URI的固定前缀。 + 在路由进程中用来移除接受到的URI的固定前缀。 例如,有一个接收到的URI: "/prefix/controller/action". 如果你将application.baseUri 设置成 - "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由过程中 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 一般情况下,你不需要设置这个值 From 6483edbc8376499e108eb6343c354deb94513309 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 09:08:48 +0800 Subject: [PATCH 07/26] Revert "Revert "Revert "Revert "process"""" This reverts commit 4c72090a999b681845ee43d2965ffcc7eb02730a. --- zh/appconfig.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh/appconfig.xml b/zh/appconfig.xml index 001ad07..a0725ad 100644 --- a/zh/appconfig.xml +++ b/zh/appconfig.xml @@ -192,7 +192,7 @@ yaf.dispatcher.catchException = 0 - 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, + 一个以逗号分割的已注册的模块(module)列表,在路由过程中使用, 特别是在PATH_INFO中有超过3段的时候。 @@ -263,10 +263,10 @@ yaf.dispatcher.catchException = 0 - 在路由进程中用来移除接受到的URI的固定前缀。 + 在路由过程中用来移除接受到的URI的固定前缀。 例如,有一个接收到的URI: "/prefix/controller/action". 如果你将application.baseUri 设置成 - "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由过程中 一般情况下,你不需要设置这个值 From 54d4230843c8336914e021c03fcc48ea24fbe3e1 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 13:04:15 +0800 Subject: [PATCH 08/26] Revert "Revert "Revert "Revert "Revert "process""""" This reverts commit 6483edbc8376499e108eb6343c354deb94513309. --- zh/appconfig.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh/appconfig.xml b/zh/appconfig.xml index a0725ad..001ad07 100644 --- a/zh/appconfig.xml +++ b/zh/appconfig.xml @@ -192,7 +192,7 @@ yaf.dispatcher.catchException = 0 - 一个以逗号分割的已注册的模块(module)列表,在路由过程中使用, + 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, 特别是在PATH_INFO中有超过3段的时候。 @@ -263,10 +263,10 @@ yaf.dispatcher.catchException = 0 - 在路由过程中用来移除接受到的URI的固定前缀。 + 在路由进程中用来移除接受到的URI的固定前缀。 例如,有一个接收到的URI: "/prefix/controller/action". 如果你将application.baseUri 设置成 - "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由过程中 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 一般情况下,你不需要设置这个值 From 7f9dad6bec9eda47fb86c74c1b4b9a94f8878eff Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 13:04:16 +0800 Subject: [PATCH 09/26] Revert "Revert "Revert "Revert "Revert "Revert "process"""""" This reverts commit 54d4230843c8336914e021c03fcc48ea24fbe3e1. --- zh/appconfig.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh/appconfig.xml b/zh/appconfig.xml index 001ad07..a0725ad 100644 --- a/zh/appconfig.xml +++ b/zh/appconfig.xml @@ -192,7 +192,7 @@ yaf.dispatcher.catchException = 0 - 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, + 一个以逗号分割的已注册的模块(module)列表,在路由过程中使用, 特别是在PATH_INFO中有超过3段的时候。 @@ -263,10 +263,10 @@ yaf.dispatcher.catchException = 0 - 在路由进程中用来移除接受到的URI的固定前缀。 + 在路由过程中用来移除接受到的URI的固定前缀。 例如,有一个接收到的URI: "/prefix/controller/action". 如果你将application.baseUri 设置成 - "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由过程中 一般情况下,你不需要设置这个值 From 42821b6d979036a10d383378037a975d047c42de Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 13:04:17 +0800 Subject: [PATCH 10/26] Revert "Revert "Revert "Revert "Revert "Revert "Revert "process""""""" This reverts commit 7f9dad6bec9eda47fb86c74c1b4b9a94f8878eff. --- zh/appconfig.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh/appconfig.xml b/zh/appconfig.xml index a0725ad..001ad07 100644 --- a/zh/appconfig.xml +++ b/zh/appconfig.xml @@ -192,7 +192,7 @@ yaf.dispatcher.catchException = 0 - 一个以逗号分割的已注册的模块(module)列表,在路由过程中使用, + 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, 特别是在PATH_INFO中有超过3段的时候。 @@ -263,10 +263,10 @@ yaf.dispatcher.catchException = 0 - 在路由过程中用来移除接受到的URI的固定前缀。 + 在路由进程中用来移除接受到的URI的固定前缀。 例如,有一个接收到的URI: "/prefix/controller/action". 如果你将application.baseUri 设置成 - "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由过程中 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 一般情况下,你不需要设置这个值 From 72f1fcffe4f6bf623c674967ba6656baaeda877d Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 13:04:17 +0800 Subject: [PATCH 11/26] Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "process"""""""" This reverts commit 42821b6d979036a10d383378037a975d047c42de. --- zh/appconfig.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh/appconfig.xml b/zh/appconfig.xml index 001ad07..a0725ad 100644 --- a/zh/appconfig.xml +++ b/zh/appconfig.xml @@ -192,7 +192,7 @@ yaf.dispatcher.catchException = 0 - 一个以逗号分割的已注册的模块(module)列表,在路由进程中使用, + 一个以逗号分割的已注册的模块(module)列表,在路由过程中使用, 特别是在PATH_INFO中有超过3段的时候。 @@ -263,10 +263,10 @@ yaf.dispatcher.catchException = 0 - 在路由进程中用来移除接受到的URI的固定前缀。 + 在路由过程中用来移除接受到的URI的固定前缀。 例如,有一个接收到的URI: "/prefix/controller/action". 如果你将application.baseUri 设置成 - "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由进程中 + "/prefix", 那么只有 "/controller/action" 被当作 PATH_INFO 在路由过程中 一般情况下,你不需要设置这个值 From a4b20c16515ea1a51b21276502b9e670a5da44be Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 11 Jul 2012 14:06:06 +0800 Subject: [PATCH 12/26] yaf_application ya_application_zh --- zh/yaf-application.xml | 156 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 zh/yaf-application.xml diff --git a/zh/yaf-application.xml b/zh/yaf-application.xml new file mode 100644 index 0000000..b5ce8c0 --- /dev/null +++ b/zh/yaf-application.xml @@ -0,0 +1,156 @@ + + + + + + The Yaf_Application class + Yaf_Application + Yaf\Application + + + + +
+ &reftitle.intro; + + Yaf_Application + 为提供资源重用,共同的和基于模块的引导类和依赖性检查提供一个引导程序 + + + + + Yaf_Application 实现单例模式, + and Yaf_Application 不能被序列化或则反序列化 + 这将导致当你试着使用PHPUnit为Yaf写一些测试案例时出现问题。 + + + 你可以使用PHPUnit的@backupGlobals注释去控制全局变量的备份和恢复操作。 + 这可以解决这个问题 + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Application + + + + + final + Yaf_Application + + + + &Properties; + + protected + config + + + protected + dispatcher + + + protected + static + _app + + + protected + _modules + + + protected + _running + + + protected + _environ + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + config + + + + + + dispatcher + + + + + + _app + + + + + + _modules + + + + + + _running + + + + + + _environ + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-application; + +
+ + From 7d8c8944e2fbe2b97c50ef565a1873849fb2e2f6 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Thu, 12 Jul 2012 01:41:41 +0800 Subject: [PATCH 13/26] yaf_application zh --- zh/yaf_application/app.xml | 64 +++++++++ zh/yaf_application/bootstrap.xml | 145 +++++++++++++++++++++ zh/yaf_application/clearlasterror.xml | 93 +++++++++++++ zh/yaf_application/clone.xml | 58 +++++++++ zh/yaf_application/construct.xml | 174 +++++++++++++++++++++++++ zh/yaf_application/destruct.xml | 58 +++++++++ zh/yaf_application/environ.xml | 85 ++++++++++++ zh/yaf_application/execute.xml | 106 +++++++++++++++ zh/yaf_application/getappdirectory.xml | 67 ++++++++++ zh/yaf_application/getconfig.xml | 98 ++++++++++++++ zh/yaf_application/getdispatcher.xml | 140 ++++++++++++++++++++ zh/yaf_application/getlasterrormsg.xml | 92 +++++++++++++ zh/yaf_application/getlasterrorno.xml | 94 +++++++++++++ zh/yaf_application/getmodules.xml | 89 +++++++++++++ zh/yaf_application/run.xml | 59 +++++++++ zh/yaf_application/setappdirectory.xml | 67 ++++++++++ zh/yaf_application/sleep.xml | 58 +++++++++ zh/yaf_application/wakeup.xml | 58 +++++++++ 18 files changed, 1605 insertions(+) create mode 100644 zh/yaf_application/app.xml create mode 100644 zh/yaf_application/bootstrap.xml create mode 100644 zh/yaf_application/clearlasterror.xml create mode 100644 zh/yaf_application/clone.xml create mode 100644 zh/yaf_application/construct.xml create mode 100644 zh/yaf_application/destruct.xml create mode 100644 zh/yaf_application/environ.xml create mode 100644 zh/yaf_application/execute.xml create mode 100644 zh/yaf_application/getappdirectory.xml create mode 100644 zh/yaf_application/getconfig.xml create mode 100644 zh/yaf_application/getdispatcher.xml create mode 100644 zh/yaf_application/getlasterrormsg.xml create mode 100644 zh/yaf_application/getlasterrorno.xml create mode 100644 zh/yaf_application/getmodules.xml create mode 100644 zh/yaf_application/run.xml create mode 100644 zh/yaf_application/setappdirectory.xml create mode 100644 zh/yaf_application/sleep.xml create mode 100644 zh/yaf_application/wakeup.xml diff --git a/zh/yaf_application/app.xml b/zh/yaf_application/app.xml new file mode 100644 index 0000000..bfd96b6 --- /dev/null +++ b/zh/yaf_application/app.xml @@ -0,0 +1,64 @@ + + + + + + Yaf_Application::app + 调用一个应用实例 + + + + &reftitle.description; + + public static voidYaf_Application::app + + + + 调用 Yaf_Application 实例, + 另外, 同样我们也必须查看 + Yaf_Dispatcher::getApplication. + + &warn.undocumented.func; + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + 一个yaf_Application实例,如果在之前没有Yaf_Application初始化,将会返回null + + + + + &reftitle.seealso; + + Yaf_Dispatcher::getApplication + + + + + + diff --git a/zh/yaf_application/bootstrap.xml b/zh/yaf_application/bootstrap.xml new file mode 100644 index 0000000..1aa12bf --- /dev/null +++ b/zh/yaf_application/bootstrap.xml @@ -0,0 +1,145 @@ + + + + + + Yaf_Application::bootstrap + 调用引导程序 + + + + &reftitle.description; + + public voidYaf_Application::bootstrap + Yaf_Bootstrap_Abstractbootstrap + + + 运行引导程序,所有在引导程序中定义并以“_init”为前缀的方法将根据他们被声明的顺序被调用, + 如果参数的引导程序未提供,Yaf将会在application.directory目录下找寻一个引导程序 + aaaa + &warn.undocumented.func; + + + + &reftitle.parameters; + + + bootstrap + + + A Yaf_Bootstrap_Abstract instance + + + + + + + + &reftitle.returnvalues; + + Yaf_Application instance + + + + + &reftitle.examples; + + <function>A Bootstrap</function>example + + +]]> + + + + <function>Yaf_Application::bootstrap</function>example + +bootstrap(); +?> +]]> + + &example.outputs.similar; + + + + + + <function>Yaf_Application::bootstrap</function>example + +start(); + } + + public function _initDatabase(Yaf_Dispatcher $dispatcher) + { + $config = Yaf_Application::app()->getConfig()->application->database; + Yaf_Registry::set('db', VendorDatabase($config)); + } +} +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_Bootstrap_Abstract + + + + + + + diff --git a/zh/yaf_application/clearlasterror.xml b/zh/yaf_application/clearlasterror.xml new file mode 100644 index 0000000..16dd568 --- /dev/null +++ b/zh/yaf_application/clearlasterror.xml @@ -0,0 +1,93 @@ + + + + + + Yaf_Application::clearLastError + 清除最后的错误信息 + + + + &reftitle.description; + + public Yaf_ApplicationYaf_Application::clearLastError + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Application::clearLastError</function>example + +clearLastError(); + var_dump(Yaf_Application::app()->getLastErrorNo()); +} + +$config = array( + "application" => array( + "directory" => "/tmp/notexists", + "dispatcher" => array( + "throwException" => 0, //触发错误来代替发生错误时抛出异常 + ), + ), +); + +$app = new Yaf_Application($config); +$app->getDispatcher()->setErrorHandler("error_handler", E_RECOVERABLE_ERROR); +$app->run(); +?> +]]> + + &example.outputs.similar; + + + + + + + + + diff --git a/zh/yaf_application/clone.xml b/zh/yaf_application/clone.xml new file mode 100644 index 0000000..cb75daa --- /dev/null +++ b/zh/yaf_application/clone.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Application::__clone + Yaf_Application 不能被克隆 + + + + &reftitle.description; + + private voidYaf_Application::__clone + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_application/construct.xml b/zh/yaf_application/construct.xml new file mode 100644 index 0000000..b83c89d --- /dev/null +++ b/zh/yaf_application/construct.xml @@ -0,0 +1,174 @@ + + + + + + Yaf_Application::__construct + Yaf_Application 构造方法 + + + + &reftitle.description; + + publicYaf_Application::__construct + mixedconfig + stringenvrion + + + Instance a Yaf_Application. + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + config + + + 一个ini配置文件路径, 或则一个含配置信息的数组 + + + 如果它是一个ini配置文件,那里应该有一项被yaf.environ定义, + yaf.environ默认定义为 + "product" + + + 如果你使用一个ini配置文件做为你的application的配置容器, + 你需要打开 yaf.cache_config + 来提高性能。 + + + + + 配置项(还有他们的默认值)如下: + + 一个ini配置文件例子 + + + + + + + + + envrion + + + 这个配置项将会被做为最后的配置项被加载 + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Application::__construct</function>example + +bootstrap()->run(); +?> +]]> + + &example.outputs.similar; + + + + + + <function>Yaf_Application::__construct</function>example + + array( + "directory" => realpath(dirname(__FILE__)) . "/application", + ), +); + +/** Yaf_Application */ +$application = new Yaf_Application($config); +$application->bootstrap()->run(); +?> +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.seealso; + + Yaf_Config_Ini + + + + + + diff --git a/zh/yaf_application/destruct.xml b/zh/yaf_application/destruct.xml new file mode 100644 index 0000000..027bbe0 --- /dev/null +++ b/zh/yaf_application/destruct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Application::__destruct + Yaf_Application 析构方法 + + + + &reftitle.description; + + public voidYaf_Application::__destruct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_application/environ.xml b/zh/yaf_application/environ.xml new file mode 100644 index 0000000..0896d6e --- /dev/null +++ b/zh/yaf_application/environ.xml @@ -0,0 +1,85 @@ + + + + + + Yaf_Application::environ + 检索环境 + + + + &reftitle.description; + + public voidYaf_Application::environ + + + + 检索环境,它已经被yaf.environ定义,默认值是"product" + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Application::environ</function>example + + array( + "directory" => realpath(dirname(__FILE__)) . "/application", + ), +); + +/** Yaf_Application */ +$application = new Yaf_Application($config); +print_r($application->environ()); +?> +]]> + + &example.outputs.similar; + + + + + + + + + diff --git a/zh/yaf_application/execute.xml b/zh/yaf_application/execute.xml new file mode 100644 index 0000000..6816a07 --- /dev/null +++ b/zh/yaf_application/execute.xml @@ -0,0 +1,106 @@ + + + + + + Yaf_Application::execute + 执行回调函数 + + + + &reftitle.description; + + public voidYaf_Application::execute + callableentry + string... + + + 这种方法通常用于通过计划任务(crontab)来执行Yaf_Application + 使得计划任务执行也可以通过使用自动装载器和引导机制 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + entry + + + + + + + + ... + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Application::execute</function>example + + array( + "directory" => realpath(dirname(__FILE__)) . "/application", + ), +); + +/** Yaf_Application */ +$application = new Yaf_Application($config); +$application->execute("main", $argc, $argv); +?> +]]> + + &example.outputs.similar; + + + + + + + + + diff --git a/zh/yaf_application/getappdirectory.xml b/zh/yaf_application/getappdirectory.xml new file mode 100644 index 0000000..1d6aa01 --- /dev/null +++ b/zh/yaf_application/getappdirectory.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Application::getAppDirectory + 获得 application 的目录 + + + + &reftitle.description; + + public Yaf_ApplicationYaf_Application::getAppDirectory + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + directory + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_application/getconfig.xml b/zh/yaf_application/getconfig.xml new file mode 100644 index 0000000..d0d34ee --- /dev/null +++ b/zh/yaf_application/getconfig.xml @@ -0,0 +1,98 @@ + + + + + + Yaf_Application::getConfig + 检索配置实例 + + + + &reftitle.description; + + public Yaf_Config_AbstractYaf_Application::getConfig + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + A Yaf_Config_Abstract instance + + + + + &reftitle.examples; + + <function>Yaf_Application::getConfig</function>example + + array( + "directory" => realpath(dirname(__FILE__)) . "/application", + ), +); + +/** Yaf_Application */ +$application = new Yaf_Application($config); +print_r($application->getConfig()); +?> +]]> + + &example.outputs.similar; + + Array + ( + [application] => Array + ( + [directory] => /home/laruence/local/www/htdocs/application + ) + + ) + + [_readonly:protected] => 1 +) +]]> + + + + + + + + diff --git a/zh/yaf_application/getdispatcher.xml b/zh/yaf_application/getdispatcher.xml new file mode 100644 index 0000000..e315888 --- /dev/null +++ b/zh/yaf_application/getdispatcher.xml @@ -0,0 +1,140 @@ + + + + + + Yaf_Application::getDispatcher + 获取 Yaf_Dispatcher 实例 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Application::getDispatcher + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Application::getDispatcher</function>example + + array( + "directory" => realpath(dirname(__FILE__)) . "/application", + ), +); + +/** Yaf_Application */ +$application = new Yaf_Application($config); +print_r($application->getDispatcher()); +?> +]]> + + &example.outputs.similar; + + Yaf_Router Object + ( + [_routes:protected] => Array + ( + [_default] => Yaf_Route_Static Object + ( + ) + + ) + + [_current:protected] => + ) + + [_view:protected] => + [_request:protected] => Yaf_Request_Http Object + ( + [module] => + [controller] => + [action] => + [method] => Cli + [params:protected] => Array + ( + ) + + [language:protected] => + [_exception:protected] => + [_base_uri:protected] => + [uri:protected] => + [dispatched:protected] => + [routed:protected] => + ) + + [_plugins:protected] => Array + ( + ) + + [_auto_render:protected] => 1 + [_return_response:protected] => + [_instantly_flush:protected] => + [_default_module:protected] => Index + [_default_controller:protected] => Index + [_default_action:protected] => index + [_response] => Yaf_Response_Cli Object + ( + [_header:protected] => Array + ( + ) + + [_body:protected] => + [_sendheader:protected] => + ) + +) +]]> + + + + + + + + diff --git a/zh/yaf_application/getlasterrormsg.xml b/zh/yaf_application/getlasterrormsg.xml new file mode 100644 index 0000000..b7e6355 --- /dev/null +++ b/zh/yaf_application/getlasterrormsg.xml @@ -0,0 +1,92 @@ + + + + + + Yaf_Application::getLastErrorMsg + 取得最后发生的错误的消息 + + + + &reftitle.description; + + public stringYaf_Application::getLastErrorMsg + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Application::getLastErrorMsg</function>example + +getLastErrorMsg()); +} + +$config = array( + "application" => array( + "directory" => "/tmp/notexists", + "dispatcher" => array( + "throwException" => 0, //trigger error instead of throw exception when error occure + ), + ), +); + +$app = new Yaf_Application($config); +$app->getDispatcher()->setErrorHandler("error_handler", E_RECOVERABLE_ERROR); +$app->run(); +?> +]]> + + &example.outputs.similar; + + + + + + + + + diff --git a/zh/yaf_application/getlasterrorno.xml b/zh/yaf_application/getlasterrorno.xml new file mode 100644 index 0000000..b2fcb32 --- /dev/null +++ b/zh/yaf_application/getlasterrorno.xml @@ -0,0 +1,94 @@ + + + + + + Yaf_Application::getLastErrorNo + 获取最后发生的错误的错误代码 + + + + &reftitle.description; + + public intYaf_Application::getLastErrorNo + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + &reftitle.examples; + + <function>Yaf_Application::getLastErrorNo</function>example + +getLastErrorNo()); + var_dump(Yaf_Application::app()->getLastErrorNo() == YAF_ERR_NOTFOUND_CONTROLLER); +} + +$config = array( + "application" => array( + "directory" => "/tmp/notexists", + "dispatcher" => array( + "throwException" => 0, //trigger error instead of throw exception when error occure + ), + ), +); + +$app = new Yaf_Application($config); +$app->getDispatcher()->setErrorHandler("error_handler", E_RECOVERABLE_ERROR); +$app->run(); +?> +]]> + + &example.outputs.similar; + + + + + + + + + + diff --git a/zh/yaf_application/getmodules.xml b/zh/yaf_application/getmodules.xml new file mode 100644 index 0000000..a952f53 --- /dev/null +++ b/zh/yaf_application/getmodules.xml @@ -0,0 +1,89 @@ + + + + + + Yaf_Application::getModules + 获取已经定义的模块(module)名称 + + + + &reftitle.description; + + public arrayYaf_Application::getModules + + + + 获取已经在配置中定义的模块名字列表,如果没定义任何模块, + 还是将会有一个"Index"的模块 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Application::getModules</function>example + + array( + "directory" => realpath(dirname(__FILE__)) . "/application", + ), +); + +/** Yaf_Application */ +$application = new Yaf_Application($config); +print_r($application->getModules()); +?> +]]> + + &example.outputs.similar; + + Index +) +]]> + + + + + + + diff --git a/zh/yaf_application/run.xml b/zh/yaf_application/run.xml new file mode 100644 index 0000000..fd2a99b --- /dev/null +++ b/zh/yaf_application/run.xml @@ -0,0 +1,59 @@ + + + + + + Yaf_Application::run + 开始运行 Yaf_Application + + + + &reftitle.description; + + public voidYaf_Application::run + + + + 运行一个 Yaf_Application, 使Yaf_Application接收一个请求,并且路由这个请求, + 调度控制器/动作(controller/action),并且提供响应,最后返回响应给客服端。 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_application/setappdirectory.xml b/zh/yaf_application/setappdirectory.xml new file mode 100644 index 0000000..d28b130 --- /dev/null +++ b/zh/yaf_application/setappdirectory.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Application::setAppDirectory + 更改 application 的目录 + + + + &reftitle.description; + + public Yaf_ApplicationYaf_Application::setAppDirectory + stringdirectory + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + directory + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_application/sleep.xml b/zh/yaf_application/sleep.xml new file mode 100644 index 0000000..6ab2146 --- /dev/null +++ b/zh/yaf_application/sleep.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Application::__sleep + Yaf_Application 不能被序列化 + + + + &reftitle.description; + + private voidYaf_Application::__sleep + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_application/wakeup.xml b/zh/yaf_application/wakeup.xml new file mode 100644 index 0000000..16411ff --- /dev/null +++ b/zh/yaf_application/wakeup.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Application::__wakeup + Yaf_Application 不能被反序列化 + + + + &reftitle.description; + + private voidYaf_Application::__wakeup + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + From 042bfe73b73b73af69ec836d21af301b241746a5 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Thu, 12 Jul 2012 01:53:53 +0800 Subject: [PATCH 14/26] yaf-bootstrap-abstract zh --- zh/yaf-bootstrap-abstract.xml | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 zh/yaf-bootstrap-abstract.xml diff --git a/zh/yaf-bootstrap-abstract.xml b/zh/yaf-bootstrap-abstract.xml new file mode 100644 index 0000000..003de98 --- /dev/null +++ b/zh/yaf-bootstrap-abstract.xml @@ -0,0 +1,72 @@ + + + + + + The Yaf_Bootstrap_Abstract class + Yaf_Bootstrap_Abstract + + + + +
+ &reftitle.intro; + + Bootstrap是一种用来在运行Application之前做一些初始化配置信息的工作的机制 + + + 用户可以通过继承Yaf_Bootstrap_Abstract来定义自己的Bootstrap类。 + + + 任何方法在Bootstrap类中以"_init"为前缀声明, + 将会被Yaf_Application::bootstrap 根据他们定义的顺序一个一个的调用 + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Bootstrap_Abstract + + + + + abstract + Yaf_Bootstrap_Abstract + + + &Properties; + + &Methods; + + + +
+ +
+ +
+ + From 209cfc07cdb8914d600e06d03b06a20a8bcd6613 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Thu, 12 Jul 2012 18:47:42 +0800 Subject: [PATCH 15/26] yaf_dispatcher zh --- zh/yaf_application/run.xml | 2 +- zh/yaf_dispatcher/autorender.xml | 95 ++++++++ zh/yaf_dispatcher/catchexception.xml | 120 ++++++++++ zh/yaf_dispatcher/clone.xml | 58 +++++ zh/yaf_dispatcher/construct.xml | 58 +++++ zh/yaf_dispatcher/disableview.xml | 58 +++++ zh/yaf_dispatcher/dispatch.xml | 79 +++++++ zh/yaf_dispatcher/enableview.xml | 58 +++++ zh/yaf_dispatcher/flushinstantly.xml | 67 ++++++ zh/yaf_dispatcher/getapplication.xml | 65 ++++++ zh/yaf_dispatcher/getinstance.xml | 58 +++++ zh/yaf_dispatcher/getrequest.xml | 58 +++++ zh/yaf_dispatcher/getrouter.xml | 58 +++++ zh/yaf_dispatcher/initview.xml | 76 +++++++ zh/yaf_dispatcher/registerplugin.xml | 102 +++++++++ zh/yaf_dispatcher/returnresponse.xml | 67 ++++++ zh/yaf_dispatcher/setdefaultaction.xml | 67 ++++++ zh/yaf_dispatcher/setdefaultcontroller.xml | 67 ++++++ zh/yaf_dispatcher/setdefaultmodule.xml | 67 ++++++ zh/yaf_dispatcher/seterrorhandler.xml | 76 +++++++ zh/yaf_dispatcher/setrequest.xml | 67 ++++++ zh/yaf_dispatcher/setview.xml | 251 +++++++++++++++++++++ zh/yaf_dispatcher/sleep.xml | 58 +++++ zh/yaf_dispatcher/throwexception.xml | 67 ++++++ zh/yaf_dispatcher/wakeup.xml | 58 +++++ 25 files changed, 1856 insertions(+), 1 deletion(-) create mode 100644 zh/yaf_dispatcher/autorender.xml create mode 100644 zh/yaf_dispatcher/catchexception.xml create mode 100644 zh/yaf_dispatcher/clone.xml create mode 100644 zh/yaf_dispatcher/construct.xml create mode 100644 zh/yaf_dispatcher/disableview.xml create mode 100644 zh/yaf_dispatcher/dispatch.xml create mode 100644 zh/yaf_dispatcher/enableview.xml create mode 100644 zh/yaf_dispatcher/flushinstantly.xml create mode 100644 zh/yaf_dispatcher/getapplication.xml create mode 100644 zh/yaf_dispatcher/getinstance.xml create mode 100644 zh/yaf_dispatcher/getrequest.xml create mode 100644 zh/yaf_dispatcher/getrouter.xml create mode 100644 zh/yaf_dispatcher/initview.xml create mode 100644 zh/yaf_dispatcher/registerplugin.xml create mode 100644 zh/yaf_dispatcher/returnresponse.xml create mode 100644 zh/yaf_dispatcher/setdefaultaction.xml create mode 100644 zh/yaf_dispatcher/setdefaultcontroller.xml create mode 100644 zh/yaf_dispatcher/setdefaultmodule.xml create mode 100644 zh/yaf_dispatcher/seterrorhandler.xml create mode 100644 zh/yaf_dispatcher/setrequest.xml create mode 100644 zh/yaf_dispatcher/setview.xml create mode 100644 zh/yaf_dispatcher/sleep.xml create mode 100644 zh/yaf_dispatcher/throwexception.xml create mode 100644 zh/yaf_dispatcher/wakeup.xml diff --git a/zh/yaf_application/run.xml b/zh/yaf_application/run.xml index fd2a99b..c8e5a04 100644 --- a/zh/yaf_application/run.xml +++ b/zh/yaf_application/run.xml @@ -15,7 +15,7 @@ 运行一个 Yaf_Application, 使Yaf_Application接收一个请求,并且路由这个请求, - 调度控制器/动作(controller/action),并且提供响应,最后返回响应给客服端。 + 调度控制器/动作(controller/action),并且渲染响应,最后返回响应给客服端。 &warn.undocumented.func; diff --git a/zh/yaf_dispatcher/autorender.xml b/zh/yaf_dispatcher/autorender.xml new file mode 100644 index 0000000..65150f7 --- /dev/null +++ b/zh/yaf_dispatcher/autorender.xml @@ -0,0 +1,95 @@ + + + + + + Yaf_Dispatcher::autoRender + 开启/关闭自动提供功能 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::autoRender + boolflag + + + Yaf_Dispatcher 在调度一个传入的请求后,会自动渲染, + 你可以通过调用这个方法并将flag设为true来防止他自动渲染 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + flag + + + bool + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Dispatcher::autoRender</function>example + +getRequest()->isXmlHttpRequest()) { + //do not call render for ajax request + //we will output a json string + Yaf_Dispatcher::getInstance()->autoRender(FALSE); + } + } +} +?> +]]> + + &example.outputs.similar; + + + + + + + + + diff --git a/zh/yaf_dispatcher/catchexception.xml b/zh/yaf_dispatcher/catchexception.xml new file mode 100644 index 0000000..0079132 --- /dev/null +++ b/zh/yaf_dispatcher/catchexception.xml @@ -0,0 +1,120 @@ + + + + + + Yaf_Dispatcher::catchException + 打开关闭异常捕获 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::catchException + boolflag + + + 当 application.dispatcher.throwException是打开的(你可以通过调用 + Yaf_Dispatcher::throwException(TRUE) 来打开它),Yaf将会抛出异常代替触发错误。 + + + 然后如果你打开 Yaf_Dispatcher::catchException(你可以通过 + application.dispatcher.catchException(TRUE)来打开它), 如果你定义了ErrorController::error 那么所有 + 未捕获的异常将被捕获 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + flag + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Dispatcher::catchException</function>example + +getCode()) { + case YAF_ERR_NOTFOUND_MODULE: + case YAF_ERR_NOTFOUND_CONTROLLER: + case YAF_ERR_NOTFOUND_ACTION: + case YAF_ERR_NOTFOUND_VIEW: + echo 404, ":", $exception->getMessage(); + break; + default : + $message = $exception->getMessage(); + echo 0, ":", $exception->getMessage(); + break; + } + } +} +?> +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.seealso; + + Yaf_Dispatcher::throwException + + + + + + diff --git a/zh/yaf_dispatcher/clone.xml b/zh/yaf_dispatcher/clone.xml new file mode 100644 index 0000000..1643265 --- /dev/null +++ b/zh/yaf_dispatcher/clone.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Dispatcher::__clone + Yaf_Dispatcher 不能被克隆 + + + + &reftitle.description; + + private voidYaf_Dispatcher::__clone + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/construct.xml b/zh/yaf_dispatcher/construct.xml new file mode 100644 index 0000000..370824a --- /dev/null +++ b/zh/yaf_dispatcher/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Dispatcher::__construct + Yaf_Dispatcher 构造方法 + + + + &reftitle.description; + + publicYaf_Dispatcher::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/disableview.xml b/zh/yaf_dispatcher/disableview.xml new file mode 100644 index 0000000..51b80ed --- /dev/null +++ b/zh/yaf_dispatcher/disableview.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Dispatcher::disableView + 禁用视图渲染 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::disableView + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/dispatch.xml b/zh/yaf_dispatcher/dispatch.xml new file mode 100644 index 0000000..3b6bd6a --- /dev/null +++ b/zh/yaf_dispatcher/dispatch.xml @@ -0,0 +1,79 @@ + + + + + + Yaf_Dispatcher::dispatch + 调度一个请求 + + + + &reftitle.description; + + public Yaf_Response_AbstractYaf_Dispatcher::dispatch + Yaf_Request_Abstractrequest + + + 这个方法担任了Yaf_Dispatcher的重要工作. 它带来一个请求对象。 + + + 调度过程中有3个不同的事件: + + 路由//routing + 调度//dispatching + 响应//response + + 路由只发生一次,当dispatch()方法被调用时,使用请求对象里面的值。 + 调度发生在一个循环里;一个请求既可以向调度显示多个action, + 或则controller、plugin可能会重置请求对象使得额外的action被调度(see + Yaf_Plugin_Abstract. 当这2个事件完成, + Yaf_Dispatcher 会返回一个响应。 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + diff --git a/zh/yaf_dispatcher/enableview.xml b/zh/yaf_dispatcher/enableview.xml new file mode 100644 index 0000000..3d40ef7 --- /dev/null +++ b/zh/yaf_dispatcher/enableview.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Dispatcher::enableView + 启用视图渲染 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::enableView + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/flushinstantly.xml b/zh/yaf_dispatcher/flushinstantly.xml new file mode 100644 index 0000000..7be2929 --- /dev/null +++ b/zh/yaf_dispatcher/flushinstantly.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Dispatcher::flushInstantly + 开启/关闭即时刷新 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::flushInstantly + boolflag + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + flag + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/getapplication.xml b/zh/yaf_dispatcher/getapplication.xml new file mode 100644 index 0000000..5510b09 --- /dev/null +++ b/zh/yaf_dispatcher/getapplication.xml @@ -0,0 +1,65 @@ + + + + + + Yaf_Dispatcher::getApplication + 检索application + + + + &reftitle.description; + + public Yaf_ApplicationYaf_Dispatcher::getApplication + + + + 检索 Yaf_Application 实例. 和 + Yaf_Application::app一样. + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.seealso; + + Yaf_Application::app + + + + + + diff --git a/zh/yaf_dispatcher/getinstance.xml b/zh/yaf_dispatcher/getinstance.xml new file mode 100644 index 0000000..623127e --- /dev/null +++ b/zh/yaf_dispatcher/getinstance.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Dispatcher::getInstance + 检索调度器实例 + + + + &reftitle.description; + + public static Yaf_DispatcherYaf_Dispatcher::getInstance + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/getrequest.xml b/zh/yaf_dispatcher/getrequest.xml new file mode 100644 index 0000000..137affb --- /dev/null +++ b/zh/yaf_dispatcher/getrequest.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Dispatcher::getRequest + 检索请求实例 + + + + &reftitle.description; + + public Yaf_Request_AbstractYaf_Dispatcher::getRequest + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/getrouter.xml b/zh/yaf_dispatcher/getrouter.xml new file mode 100644 index 0000000..075a47f --- /dev/null +++ b/zh/yaf_dispatcher/getrouter.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Dispatcher::getRouter + 检索路由器实例 + + + + &reftitle.description; + + public Yaf_RouterYaf_Dispatcher::getRouter + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/initview.xml b/zh/yaf_dispatcher/initview.xml new file mode 100644 index 0000000..d403f19 --- /dev/null +++ b/zh/yaf_dispatcher/initview.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Dispatcher::initView + 初始化视图并返回它 + + + + &reftitle.description; + + public Yaf_View_InterfaceYaf_Dispatcher::initView + stringtemplates_dir + arrayoptions + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + templates_dir + + + + + + + + options + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/registerplugin.xml b/zh/yaf_dispatcher/registerplugin.xml new file mode 100644 index 0000000..5c7174b --- /dev/null +++ b/zh/yaf_dispatcher/registerplugin.xml @@ -0,0 +1,102 @@ + + + + + + Yaf_Dispatcher::registerPlugin + 注册插件 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::registerPlugin + Yaf_Plugin_Abstractplugin + + + 注册插件(see Yaf_Plugin_Abstract). + 通常我们在Bootstrap里面注册(see + Yaf_Bootstrap_Abstract). + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + plugin + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Dispatcher::registerPlugin</function>example + +registerPlugin($user); + } +} +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_Plugin_Abstract + + + Yaf_Bootstrap_Abstract + + + + + + diff --git a/zh/yaf_dispatcher/returnresponse.xml b/zh/yaf_dispatcher/returnresponse.xml new file mode 100644 index 0000000..62f782c --- /dev/null +++ b/zh/yaf_dispatcher/returnresponse.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Dispatcher::returnResponse + 它目的是返回响应 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::returnResponse + boolflag + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + flag + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/setdefaultaction.xml b/zh/yaf_dispatcher/setdefaultaction.xml new file mode 100644 index 0000000..aef6703 --- /dev/null +++ b/zh/yaf_dispatcher/setdefaultaction.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Dispatcher::setDefaultAction + 改变默认action名字 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::setDefaultAction + stringaction + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + action + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/setdefaultcontroller.xml b/zh/yaf_dispatcher/setdefaultcontroller.xml new file mode 100644 index 0000000..a20ae2c --- /dev/null +++ b/zh/yaf_dispatcher/setdefaultcontroller.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Dispatcher::setDefaultController + 改变默认controller名字/refpurpose> + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::setDefaultController + stringcontroller + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + controller + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/setdefaultmodule.xml b/zh/yaf_dispatcher/setdefaultmodule.xml new file mode 100644 index 0000000..5e6a62b --- /dev/null +++ b/zh/yaf_dispatcher/setdefaultmodule.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Dispatcher::setDefaultModule + 改变默认module名字 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::setDefaultModule + stringmodule + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + module + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/seterrorhandler.xml b/zh/yaf_dispatcher/seterrorhandler.xml new file mode 100644 index 0000000..1fda967 --- /dev/null +++ b/zh/yaf_dispatcher/seterrorhandler.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Dispatcher::setErrorHandler + 目的是设置错误处理程序 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::setErrorHandler + callcallback + interror_types + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + callback + + + + + + + + error_types + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/setrequest.xml b/zh/yaf_dispatcher/setrequest.xml new file mode 100644 index 0000000..a6c3a10 --- /dev/null +++ b/zh/yaf_dispatcher/setrequest.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Dispatcher::setRequest + 目的是设置请求对象 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::setRequest + Yaf_Request_Abstractrequest + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + plugin + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/setview.xml b/zh/yaf_dispatcher/setview.xml new file mode 100644 index 0000000..22d19e9 --- /dev/null +++ b/zh/yaf_dispatcher/setview.xml @@ -0,0 +1,251 @@ + + + + + + Yaf_Dispatcher::setView + 设置自定义的视图引擎 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::setView + Yaf_View_Interfaceview + + + 如果你想使用一个自定义的视图模板引擎代替Yaf_View_Simple + 这个方法提供了解决方法 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + view + + + 一个Yaf视图接口实例 + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>一个自定义视图引擎</function>例子 + +_smarty = new Smarty; + + if (null !== $tmplPath) { + $this->setScriptPath($tmplPath); + } + + foreach ($extraParams as $key => $value) { + $this->_smarty->$key = $value; + } + } + + /** + * Set the path to the templates + * + * @param string $path 这个目录会被设置成路径. + * @return void + */ + public function setScriptPath($path) + { + if (is_readable($path)) { + $this->_smarty->template_dir = $path; + return; + } + + throw new Exception('Invalid path provided'); + } + + /** + * 分配一个变量给模板 + * + * @param string $key 变量名 + * @param mixed $val 变量值 + * @return void + */ + public function __set($key, $val) + { + $this->_smarty->assign($key, $val); + } + + /** + * 允许使用empty()和isset()测试 + * + * @param string $key + * @return boolean + */ + public function __isset($key) + { + return (null !== $this->_smarty->get_template_vars($key)); + } + + /** + * 允许unset()方法在对象属性上工作 + * + * @param string $key + * @return void + */ + public function __unset($key) + { + $this->_smarty->clear_assign($key); + } + + /** + * 分配变量给模板 + * + * 允许为一个特殊值设置一个特殊的键,或则传递键值对的数组来集体设置 + * + * @see __set() + * @param string|array $spec 使用的分配策略(键值,或键值对数组) + * @param mixed $value (Optional) 如果指定一个变量的名字, + * 使用它作为值. + * @return void + */ + public function assign($spec, $value = null) { + if (is_array($spec)) { + $this->_smarty->assign($spec); + return; + } + + $this->_smarty->assign($spec, $value); + } + + /** + * 清除所有分配的变量 + * + * 清除所有分配给Yaf_view的变量无论是通过 + * {@link assign()} 还是通过加载属性 + * ({@link __get()}/{@link __set()}). + * + * @return void + */ + public function clearVars() { + $this->_smarty->clear_all_assign(); + } + + /** + * 处理一个模板返回并输出 + * + * @param string $name 要处理的模板. + * @return string 输出的值. + */ + public function render($name, $value = NULL) { + return $this->_smarty->fetch($name); + } + + public function display($name, $value = NULL) { + echo $this->_smarty->fetch($name); + } + +} +?> +]]> + + + + <function>Yaf_Dispatcher::setView</function>example + +getConfig(); + Yaf_Registry::set("config", $config); + } + + public function _initLocalName() { + /** 我们将Smarty_Adapter放在本地的library目录*/ + Yaf_Loader::getInstance()->registerLocalNamespace('Smarty'); + } + + public function _initSmarty(Yaf_Dispatcher $dispatcher) { + $smarty = new Smarty_Adapter(null, Yaf_Registry::get("config")->get("smarty")); + $dispatcher->setView($smarty); + /* 现在Smarty视图引擎成为了Yaf的默认引擎*/ + } +} +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_View_Interface + Yaf_View_Simple + + + + + diff --git a/zh/yaf_dispatcher/sleep.xml b/zh/yaf_dispatcher/sleep.xml new file mode 100644 index 0000000..6ddd416 --- /dev/null +++ b/zh/yaf_dispatcher/sleep.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Dispatcher::__sleep + Yaf_Dispatcher 不能被序列化 + + + + &reftitle.description; + + private voidYaf_Dispatcher::__sleep + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/throwexception.xml b/zh/yaf_dispatcher/throwexception.xml new file mode 100644 index 0000000..51c5751 --- /dev/null +++ b/zh/yaf_dispatcher/throwexception.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Dispatcher::throwException + 打开关闭异常抛出 + + + + &reftitle.description; + + public Yaf_DispatcherYaf_Dispatcher::throwException + boolflag + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + flag + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_dispatcher/wakeup.xml b/zh/yaf_dispatcher/wakeup.xml new file mode 100644 index 0000000..430ae96 --- /dev/null +++ b/zh/yaf_dispatcher/wakeup.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Dispatcher::__wakeup + Yaf_Dispatcher 不能被反序列化 + + + + &reftitle.description; + + private voidYaf_Dispatcher::__wakeup + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + From d100243c430cc720c77bc5b49726e17bf16778f7 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Thu, 12 Jul 2012 22:34:21 +0800 Subject: [PATCH 16/26] yaf-config-abstract MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不需要翻译 --- zh/yaf-config-abstract.xml | 100 ++++++++++++++++++++++++++++ zh/yaf_config_abstract/get.xml | 59 ++++++++++++++++ zh/yaf_config_abstract/readonly.xml | 58 ++++++++++++++++ zh/yaf_config_abstract/set.xml | 58 ++++++++++++++++ zh/yaf_config_abstract/toarray.xml | 58 ++++++++++++++++ 5 files changed, 333 insertions(+) create mode 100644 zh/yaf-config-abstract.xml create mode 100644 zh/yaf_config_abstract/get.xml create mode 100644 zh/yaf_config_abstract/readonly.xml create mode 100644 zh/yaf_config_abstract/set.xml create mode 100644 zh/yaf_config_abstract/toarray.xml diff --git a/zh/yaf-config-abstract.xml b/zh/yaf-config-abstract.xml new file mode 100644 index 0000000..f98fa40 --- /dev/null +++ b/zh/yaf-config-abstract.xml @@ -0,0 +1,100 @@ + + + + + + The Yaf_Config_Abstract class + Yaf_Config_Abstract + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Config_Abstract + + + + + abstract + Yaf_Config_Abstract + + + + &Properties; + + protected + _config + + + protected + _readonly + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _config + + + + + + _readonly + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-config-abstract; + +
+ + diff --git a/zh/yaf_config_abstract/get.xml b/zh/yaf_config_abstract/get.xml new file mode 100644 index 0000000..ed98fd3 --- /dev/null +++ b/zh/yaf_config_abstract/get.xml @@ -0,0 +1,59 @@ + + + + + + Yaf_Config_Abstract::get + Getter + + + + &reftitle.description; + + abstract public mixedYaf_Config_Abstract::get + stringname + mixedvalue + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_abstract/readonly.xml b/zh/yaf_config_abstract/readonly.xml new file mode 100644 index 0000000..f31b135 --- /dev/null +++ b/zh/yaf_config_abstract/readonly.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Abstract::readonly + Find a config whether readonly + + + + &reftitle.description; + + abstract public boolYaf_Config_Abstract::readonly + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_abstract/set.xml b/zh/yaf_config_abstract/set.xml new file mode 100644 index 0000000..ae295ef --- /dev/null +++ b/zh/yaf_config_abstract/set.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Abstract::set + Setter + + + + &reftitle.description; + + abstract public Yaf_Config_AbstractYaf_Config_Abstract::set + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_abstract/toarray.xml b/zh/yaf_config_abstract/toarray.xml new file mode 100644 index 0000000..2820ab6 --- /dev/null +++ b/zh/yaf_config_abstract/toarray.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Abstract::toArray + Cast to array + + + + &reftitle.description; + + abstract public arrayYaf_Config_Abstract::toArray + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + From 4e83d36ef4448c3abaed000fe4b39e2786127d08 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 25 Jul 2012 15:37:12 +0800 Subject: [PATCH 17/26] yaf_config_ini MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit simple… --- zh/yaf-config-ini.xml | 178 +++++++++++++++++++++++++++++ zh/yaf_config_ini/construct.xml | 76 ++++++++++++ zh/yaf_config_ini/count.xml | 58 ++++++++++ zh/yaf_config_ini/current.xml | 58 ++++++++++ zh/yaf_config_ini/get.xml | 67 +++++++++++ zh/yaf_config_ini/isset.xml | 67 +++++++++++ zh/yaf_config_ini/key.xml | 58 ++++++++++ zh/yaf_config_ini/next.xml | 58 ++++++++++ zh/yaf_config_ini/offsetexists.xml | 67 +++++++++++ zh/yaf_config_ini/offsetget.xml | 67 +++++++++++ zh/yaf_config_ini/offsetset.xml | 76 ++++++++++++ zh/yaf_config_ini/offsetunset.xml | 67 +++++++++++ zh/yaf_config_ini/readonly.xml | 58 ++++++++++ zh/yaf_config_ini/rewind.xml | 58 ++++++++++ zh/yaf_config_ini/set.xml | 76 ++++++++++++ zh/yaf_config_ini/toarray.xml | 58 ++++++++++ zh/yaf_config_ini/valid.xml | 58 ++++++++++ 17 files changed, 1205 insertions(+) create mode 100644 zh/yaf-config-ini.xml create mode 100644 zh/yaf_config_ini/construct.xml create mode 100644 zh/yaf_config_ini/count.xml create mode 100644 zh/yaf_config_ini/current.xml create mode 100644 zh/yaf_config_ini/get.xml create mode 100644 zh/yaf_config_ini/isset.xml create mode 100644 zh/yaf_config_ini/key.xml create mode 100644 zh/yaf_config_ini/next.xml create mode 100644 zh/yaf_config_ini/offsetexists.xml create mode 100644 zh/yaf_config_ini/offsetget.xml create mode 100644 zh/yaf_config_ini/offsetset.xml create mode 100644 zh/yaf_config_ini/offsetunset.xml create mode 100644 zh/yaf_config_ini/readonly.xml create mode 100644 zh/yaf_config_ini/rewind.xml create mode 100644 zh/yaf_config_ini/set.xml create mode 100644 zh/yaf_config_ini/toarray.xml create mode 100644 zh/yaf_config_ini/valid.xml diff --git a/zh/yaf-config-ini.xml b/zh/yaf-config-ini.xml new file mode 100644 index 0000000..01602ac --- /dev/null +++ b/zh/yaf-config-ini.xml @@ -0,0 +1,178 @@ + + + + + + The Yaf_Config_Ini class + Yaf_Config_Ini + + + + +
+ &reftitle.intro; + + Yaf_Config_Ini 允许开发者储存配置数据在熟悉的ini格式种,并且可以通过使用嵌套对象属性 + 的语法来读取它们。INI格式专门提供了一种又层次结构的配置数据密钥,并且在配置数据之间继承。 + 配置数据之间的层次结构通过使用点或则句号'.'来分离键键实现。一段配置信息可能继承或扩展另 + 一段配置信息通过遵从这段配置信息的名字在这一段配置信息后面加上冒号":",并且也要遵从这一 + 段配置信息继承的数据块名字。 + + + Yaf_Config_Ini 使用 parse_ini_file这个php函数。请重读本文档了解那些传入 + Yaf_Config_ini中的特殊行为,例如这些特殊值的处理:"true","false","yes", + "no","null". + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Config_Ini + + + + + Yaf_Config_Ini + + + + extends + Yaf_Config_Abstract + + + + Iterator + + + + Traversable + + + + ArrayAccess + + + + Countable + + + + &Properties; + + + &Methods; + + + &InheritedMethods; + + + + + +
+ + + +
+ &reftitle.properties; + + + _config + + + + + + _readonly + + + + + +
+ + +
+ &reftitle.examples; + + <function>Yaf_Config_Ini</function>example + + 这个例子阐述了使用Yaf_Config_Ini从一个INI格式文件里面读取数据的基本用法。 + 在这个例子中有前台页面系统的配置数据和一个后台管理系统的配置数据。 + 因为后台管理系统的配置数据与前台页面系统的配置数据很像,后台管理系统继承前台页面系统。 + 在这个案例中,决定是随意的,也可以倒过来写,前台页面部分继承后台管理部分,虽然这不是 + 更复杂的情形。假设,下面的配置数据包含在/path/to/config.ini中了: + + + + + +database->params->host); +var_dump($config->database->params->dbname); +var_dump($config->get("database.params.username")); +?> +]]> + + &example.outputs.similar; + + + + +
+ +
+ + &reference.yaf.entities.yaf-config-ini; + +
+ + diff --git a/zh/yaf_config_ini/construct.xml b/zh/yaf_config_ini/construct.xml new file mode 100644 index 0000000..948991b --- /dev/null +++ b/zh/yaf_config_ini/construct.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Config_Ini::__construct + The __construct purpose + + + + &reftitle.description; + + public Yaf_Config_Ini::__construct + stringconfig_file + stringsection + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + config_file + + + + + + + + section + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/count.xml b/zh/yaf_config_ini/count.xml new file mode 100644 index 0000000..05437b3 --- /dev/null +++ b/zh/yaf_config_ini/count.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Ini::count + The count purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::count + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/current.xml b/zh/yaf_config_ini/current.xml new file mode 100644 index 0000000..2d6bfd3 --- /dev/null +++ b/zh/yaf_config_ini/current.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Ini::current + The current purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::current + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/get.xml b/zh/yaf_config_ini/get.xml new file mode 100644 index 0000000..be51ab4 --- /dev/null +++ b/zh/yaf_config_ini/get.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Config_Ini::__get + The __get purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::__get + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/isset.xml b/zh/yaf_config_ini/isset.xml new file mode 100644 index 0000000..b716151 --- /dev/null +++ b/zh/yaf_config_ini/isset.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Config_Ini::__isset + The __isset purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::__isset + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/key.xml b/zh/yaf_config_ini/key.xml new file mode 100644 index 0000000..0e89582 --- /dev/null +++ b/zh/yaf_config_ini/key.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Ini::key + The key purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::key + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/next.xml b/zh/yaf_config_ini/next.xml new file mode 100644 index 0000000..afbdb1b --- /dev/null +++ b/zh/yaf_config_ini/next.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Ini::next + The next purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::next + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/offsetexists.xml b/zh/yaf_config_ini/offsetexists.xml new file mode 100644 index 0000000..53e8770 --- /dev/null +++ b/zh/yaf_config_ini/offsetexists.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Config_Ini::offsetExists + The offsetExists purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::offsetExists + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/offsetget.xml b/zh/yaf_config_ini/offsetget.xml new file mode 100644 index 0000000..a09ae59 --- /dev/null +++ b/zh/yaf_config_ini/offsetget.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Config_Ini::offsetGet + The offsetGet purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::offsetGet + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/offsetset.xml b/zh/yaf_config_ini/offsetset.xml new file mode 100644 index 0000000..2e251a2 --- /dev/null +++ b/zh/yaf_config_ini/offsetset.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Config_Ini::offsetSet + The offsetSet purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::offsetSet + stringname + stringvalue + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + value + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/offsetunset.xml b/zh/yaf_config_ini/offsetunset.xml new file mode 100644 index 0000000..db8ea49 --- /dev/null +++ b/zh/yaf_config_ini/offsetunset.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Config_Ini::offsetUnset + The offsetUnset purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::offsetUnset + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/readonly.xml b/zh/yaf_config_ini/readonly.xml new file mode 100644 index 0000000..0f5a0c7 --- /dev/null +++ b/zh/yaf_config_ini/readonly.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Ini::readonly + The readonly purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::readonly + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/rewind.xml b/zh/yaf_config_ini/rewind.xml new file mode 100644 index 0000000..194239a --- /dev/null +++ b/zh/yaf_config_ini/rewind.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Ini::rewind + The rewind purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::rewind + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/set.xml b/zh/yaf_config_ini/set.xml new file mode 100644 index 0000000..21c4fb0 --- /dev/null +++ b/zh/yaf_config_ini/set.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Config_Ini::__set + The __set purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::__set + stringname + mixedvalue + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + value + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/toarray.xml b/zh/yaf_config_ini/toarray.xml new file mode 100644 index 0000000..554b39e --- /dev/null +++ b/zh/yaf_config_ini/toarray.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Ini::toArray + The toArray purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::toArray + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_config_ini/valid.xml b/zh/yaf_config_ini/valid.xml new file mode 100644 index 0000000..673a2e4 --- /dev/null +++ b/zh/yaf_config_ini/valid.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Config_Ini::valid + The valid purpose + + + + &reftitle.description; + + public voidYaf_Config_Ini::valid + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + From 8715170b76fe6491ba8513771f4bb6fbdf003248 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 25 Jul 2012 16:05:34 +0800 Subject: [PATCH 18/26] config & controller simple --- zh/yaf-config-simple.xml | 120 +++++++++++++++++++ zh/yaf-controller-abstract.xml | 213 +++++++++++++++++++++++++++++++++ 2 files changed, 333 insertions(+) create mode 100644 zh/yaf-config-simple.xml create mode 100644 zh/yaf-controller-abstract.xml diff --git a/zh/yaf-config-simple.xml b/zh/yaf-config-simple.xml new file mode 100644 index 0000000..ed2a09d --- /dev/null +++ b/zh/yaf-config-simple.xml @@ -0,0 +1,120 @@ + + + + + + The Yaf_Config_Simple class + Yaf_Config_Simple + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Config_Simple + + + + + Yaf_Config_Simple + + + + extends + Yaf_Config_Abstract + + + + Iterator + + + + Traversable + + + + ArrayAccess + + + + Countable + + + + &Properties; + + protected + _readonly + + + + &Methods; + + + &InheritedMethods; + + + + + +
+ + + +
+ &reftitle.properties; + + + _config + + + + + + _readonly + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-config-simple; + +
+ + diff --git a/zh/yaf-controller-abstract.xml b/zh/yaf-controller-abstract.xml new file mode 100644 index 0000000..4c19100 --- /dev/null +++ b/zh/yaf-controller-abstract.xml @@ -0,0 +1,213 @@ + + + + + + The Yaf_Controller_Abstract class + Yaf_Controller_Abstract + + + + +
+ &reftitle.intro; + + Yaf_Controller_Abstract 是Yaf框架的核心 + MVC代表模型-视图-控制器 是一种设计模式,使应用逻辑从显示逻辑种分离出来 + + + 每一个自定义的controller将继承 + Yaf_Controller_Abstract. + + + 你将会发现你不能为你自定义的controller定义__construct方法 + 因为 Yaf_Controller_Abstract 提供了一个 + 魔术方法: Yaf_Controller_Abstract::init(). + + + 如果在你自定义的控制器种已经定义了一个init()方法,它将会在控制器被实例后就调用。 + + + Action可能会有参数,当一个请求过来时,如果那里有一个同样名字的变量在请求参数中 + Yaf_Request_Abstract::getParam) 路由之后, + 你将会把它们传送到action方法里面(see + Yaf_Action_Abstract::execute). + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Controller_Abstract + + + + + abstract + Yaf_Controller_Abstract + + + + &Properties; + + public + actions + + + protected + _module + + + protected + _name + + + protected + _request + + + protected + _response + + + protected + _invoke_args + + + protected + _view + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + actions + + + You can also define a action method in a separate PHP script by using + this property and Yaf_Action_Abstract. + + define action in a separate file + + "actions/Dummy_action.php", + ); + + /* action method may have arguments */ + public indexAction($name, $id) { + assert($name == $this->getRequest()->getParam("name")); + assert($id == $this->_request->getParam("id")); + } +} +?> +]]> + + + + Dummy_action.php + + +]]> + + + + + + + _module + + + module name + + + + + _name + + + + + + _request + + + the request object + + + + + _response + + + + + + _invoke_args + + + + + + _view + + + view engine object + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-controller-abstract; + +
+ + From 69fce706ec066320411cb3eaae2dfef90860bf86 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Wed, 25 Jul 2012 23:29:46 +0800 Subject: [PATCH 19/26] action&controller abstract simple --- zh/yaf-action-abstract.xml | 143 +++++++ zh/yaf-controller-abstract.xml | 426 +++++++++---------- zh/yaf_action_abstract/execute.xml | 122 ++++++ zh/yaf_action_abstract/getcontroller.xml | 58 +++ zh/yaf_controller_abstract/clone.xml | 58 +++ zh/yaf_controller_abstract/construct.xml | 58 +++ zh/yaf_controller_abstract/display.xml | 76 ++++ zh/yaf_controller_abstract/forward.xml | 94 ++++ zh/yaf_controller_abstract/getinvokearg.xml | 67 +++ zh/yaf_controller_abstract/getinvokeargs.xml | 58 +++ zh/yaf_controller_abstract/getmodulename.xml | 58 +++ zh/yaf_controller_abstract/getrequest.xml | 58 +++ zh/yaf_controller_abstract/getresponse.xml | 58 +++ zh/yaf_controller_abstract/getview.xml | 58 +++ zh/yaf_controller_abstract/getviewpath.xml | 58 +++ zh/yaf_controller_abstract/initview.xml | 67 +++ zh/yaf_controller_abstract/redirect.xml | 67 +++ zh/yaf_controller_abstract/render.xml | 76 ++++ zh/yaf_controller_abstract/setviewpath.xml | 67 +++ 19 files changed, 1514 insertions(+), 213 deletions(-) create mode 100644 zh/yaf-action-abstract.xml create mode 100644 zh/yaf_action_abstract/execute.xml create mode 100644 zh/yaf_action_abstract/getcontroller.xml create mode 100644 zh/yaf_controller_abstract/clone.xml create mode 100644 zh/yaf_controller_abstract/construct.xml create mode 100644 zh/yaf_controller_abstract/display.xml create mode 100644 zh/yaf_controller_abstract/forward.xml create mode 100644 zh/yaf_controller_abstract/getinvokearg.xml create mode 100644 zh/yaf_controller_abstract/getinvokeargs.xml create mode 100644 zh/yaf_controller_abstract/getmodulename.xml create mode 100644 zh/yaf_controller_abstract/getrequest.xml create mode 100644 zh/yaf_controller_abstract/getresponse.xml create mode 100644 zh/yaf_controller_abstract/getview.xml create mode 100644 zh/yaf_controller_abstract/getviewpath.xml create mode 100644 zh/yaf_controller_abstract/initview.xml create mode 100644 zh/yaf_controller_abstract/redirect.xml create mode 100644 zh/yaf_controller_abstract/render.xml create mode 100644 zh/yaf_controller_abstract/setviewpath.xml diff --git a/zh/yaf-action-abstract.xml b/zh/yaf-action-abstract.xml new file mode 100644 index 0000000..9bde205 --- /dev/null +++ b/zh/yaf-action-abstract.xml @@ -0,0 +1,143 @@ + + + + + + The Yaf_Action_Abstract class + Yaf_Action_Abstract + + + + +
+ &reftitle.intro; + + Yaf中一个action可以定义在一个单独的文件中(see + Yaf_Controller_Abstract). 同样,一个action方法 + 可以是一个 Yaf_Action_Abstract 类. + + + 既然yaf可以调用一个切入点 (自 PHP 5.3起, + 有个新的魔术方法 __invoke,但是yaf不是仅仅工作在5.3之后, + Yaf选择了另外一个魔术方法执行e), 你必须实现这个抽线方法 + Yaf_Action_Abstract::execute ,在你自定义的 + action类 + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Action_Abstract + + + + + Yaf_Action_Abstract + + + + extends + Yaf_Controller_Abstract + + + + &Properties; + + protected + _controller + + + + &Methods; + + + &InheritedMethods; + + + + + +
+ + + +
+ &reftitle.properties; + + + _module + + + + + + _name + + + + + + _request + + + + + + _response + + + + + + _invoke_args + + + + + + _view + + + + + + _controller + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-action-abstract; + +
+ + diff --git a/zh/yaf-controller-abstract.xml b/zh/yaf-controller-abstract.xml index 4c19100..eca8159 100644 --- a/zh/yaf-controller-abstract.xml +++ b/zh/yaf-controller-abstract.xml @@ -1,213 +1,213 @@ - - - - - - The Yaf_Controller_Abstract class - Yaf_Controller_Abstract - - - - -
- &reftitle.intro; - - Yaf_Controller_Abstract 是Yaf框架的核心 - MVC代表模型-视图-控制器 是一种设计模式,使应用逻辑从显示逻辑种分离出来 - - - 每一个自定义的controller将继承 - Yaf_Controller_Abstract. - - - 你将会发现你不能为你自定义的controller定义__construct方法 - 因为 Yaf_Controller_Abstract 提供了一个 - 魔术方法: Yaf_Controller_Abstract::init(). - - - 如果在你自定义的控制器种已经定义了一个init()方法,它将会在控制器被实例后就调用。 - - - Action可能会有参数,当一个请求过来时,如果那里有一个同样名字的变量在请求参数中 - Yaf_Request_Abstract::getParam) 路由之后, - 你将会把它们传送到action方法里面(see - Yaf_Action_Abstract::execute). - -
- - -
- &reftitle.classsynopsis; - - - - Yaf_Controller_Abstract - - - - - abstract - Yaf_Controller_Abstract - - - - &Properties; - - public - actions - - - protected - _module - - - protected - _name - - - protected - _request - - - protected - _response - - - protected - _invoke_args - - - protected - _view - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - actions - - - You can also define a action method in a separate PHP script by using - this property and Yaf_Action_Abstract. - - define action in a separate file - - "actions/Dummy_action.php", - ); - - /* action method may have arguments */ - public indexAction($name, $id) { - assert($name == $this->getRequest()->getParam("name")); - assert($id == $this->_request->getParam("id")); - } -} -?> -]]> - - - - Dummy_action.php - - -]]> - - - - - - - _module - - - module name - - - - - _name - - - - - - _request - - - the request object - - - - - _response - - - - - - _invoke_args - - - - - - _view - - - view engine object - - - - -
- - - -
- - &reference.yaf.entities.yaf-controller-abstract; - -
- - + + + + + + The Yaf_Controller_Abstract class + Yaf_Controller_Abstract + + + + +
+ &reftitle.intro; + + Yaf_Controller_Abstract 是Yaf框架的核心 + MVC代表模型-视图-控制器 是一种设计模式,使应用逻辑从显示逻辑种分离出来 + + + 每一个自定义的controller将继承 + Yaf_Controller_Abstract. + + + 你将会发现你不能为你自定义的controller定义__construct方法 + 因为 Yaf_Controller_Abstract 提供了一个 + 魔术方法: Yaf_Controller_Abstract::init(). + + + 如果在你自定义的控制器种已经定义了一个init()方法,它将会在控制器被实例后就调用。 + + + Action可能会有参数,当一个请求过来时,如果那里有一个同样名字的变量在请求参数中 + Yaf_Request_Abstract::getParam) 路由之后, + 你将会把它们传送到action方法里面(see + Yaf_Action_Abstract::execute). + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Controller_Abstract + + + + + abstract + Yaf_Controller_Abstract + + + + &Properties; + + public + actions + + + protected + _module + + + protected + _name + + + protected + _request + + + protected + _response + + + protected + _invoke_args + + + protected + _view + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + actions + + + 同样你可以通过使用这个属性在一个单独的php脚本文件里面定义一个 + 行为方法和 Yaf_Action_Abstract. + + 在一个单独的文件里定义一个action + + "actions/Dummy_action.php", + ); + + /* action method may have arguments */ + public indexAction($name, $id) { + assert($name == $this->getRequest()->getParam("name")); + assert($id == $this->_request->getParam("id")); + } +} +?> +]]> + + + + Dummy_action.php + + +]]> + + + + + + + _module + + + module name + + + + + _name + + + + + + _request + + + the request object + + + + + _response + + + + + + _invoke_args + + + + + + _view + + + view engine object + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-controller-abstract; + +
+ + diff --git a/zh/yaf_action_abstract/execute.xml b/zh/yaf_action_abstract/execute.xml new file mode 100644 index 0000000..cf5481e --- /dev/null +++ b/zh/yaf_action_abstract/execute.xml @@ -0,0 +1,122 @@ + + + + + + Yaf_Action_Abstract::execute + 执行action + + + + &reftitle.description; + + abstract publicmixedYaf_Action_Abstract::execute + mixedarg + mixed... + + + Yaf_Action_Abstract::execute may have agruments. + + + 在请求里检索出来的值并不安全,在你使用它之前,你可以做一些过滤工作 + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Action_Abstract::execute</function>example + + "actions/Index.php", + ); +} +?> +]]> + + + + <function>Yaf_Action_Abstract::execute</function>example + +getRequest()->getParam("name")); + assert($id == $this->getRequest()->getParam("id")); + } +} +?> +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.seealso; + + + + + + + + diff --git a/zh/yaf_action_abstract/getcontroller.xml b/zh/yaf_action_abstract/getcontroller.xml new file mode 100644 index 0000000..fd6405a --- /dev/null +++ b/zh/yaf_action_abstract/getcontroller.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Action_Abstract::getController + 获得controller实例 + + + + &reftitle.description; + + publicYaf_Controller_AbstractYaf_Action_Abstract::getController + + + + 检索控制器对象 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/clone.xml b/zh/yaf_controller_abstract/clone.xml new file mode 100644 index 0000000..81565bf --- /dev/null +++ b/zh/yaf_controller_abstract/clone.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Controller_Abstract::__clone + Yaf_Controller_Abstract can not be cloned + + + + &reftitle.description; + + final private voidYaf_Controller_Abstract::__clone + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/construct.xml b/zh/yaf_controller_abstract/construct.xml new file mode 100644 index 0000000..9f57b11 --- /dev/null +++ b/zh/yaf_controller_abstract/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Controller_Abstract::__construct + Yaf_Controller_Abstract constructor + + + + &reftitle.description; + + final private Yaf_Controller_Abstract::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/display.xml b/zh/yaf_controller_abstract/display.xml new file mode 100644 index 0000000..52e0c77 --- /dev/null +++ b/zh/yaf_controller_abstract/display.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Controller_Abstract::display + The display purpose + + + + &reftitle.description; + + final protected voidYaf_Controller_Abstract::display + stringtpl + arrayparameters + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + tpl + + + + + + + + parameters + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/forward.xml b/zh/yaf_controller_abstract/forward.xml new file mode 100644 index 0000000..36e3e1d --- /dev/null +++ b/zh/yaf_controller_abstract/forward.xml @@ -0,0 +1,94 @@ + + + + + + Yaf_Controller_Abstract::forward + The forward purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::forward + stringmodule + stringcontroller + stringaction + arrayparamters + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + module + + + + + + + + controller + + + + + + + + action + + + + + + + + paramters + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/getinvokearg.xml b/zh/yaf_controller_abstract/getinvokearg.xml new file mode 100644 index 0000000..f04881d --- /dev/null +++ b/zh/yaf_controller_abstract/getinvokearg.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Controller_Abstract::getInvokeArg + The getInvokeArg purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::getInvokeArg + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/getinvokeargs.xml b/zh/yaf_controller_abstract/getinvokeargs.xml new file mode 100644 index 0000000..e2b2f0b --- /dev/null +++ b/zh/yaf_controller_abstract/getinvokeargs.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Controller_Abstract::getInvokeArgs + The getInvokeArgs purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::getInvokeArgs + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/getmodulename.xml b/zh/yaf_controller_abstract/getmodulename.xml new file mode 100644 index 0000000..c1de337 --- /dev/null +++ b/zh/yaf_controller_abstract/getmodulename.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Controller_Abstract::getModuleName + The getModuleName purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::getModuleName + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/getrequest.xml b/zh/yaf_controller_abstract/getrequest.xml new file mode 100644 index 0000000..8c732d6 --- /dev/null +++ b/zh/yaf_controller_abstract/getrequest.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Controller_Abstract::getRequest + The getRequest purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::getRequest + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/getresponse.xml b/zh/yaf_controller_abstract/getresponse.xml new file mode 100644 index 0000000..72fae90 --- /dev/null +++ b/zh/yaf_controller_abstract/getresponse.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Controller_Abstract::getResponse + The getResponse purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::getResponse + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/getview.xml b/zh/yaf_controller_abstract/getview.xml new file mode 100644 index 0000000..808ef5d --- /dev/null +++ b/zh/yaf_controller_abstract/getview.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Controller_Abstract::getView + The getView purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::getView + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/getviewpath.xml b/zh/yaf_controller_abstract/getviewpath.xml new file mode 100644 index 0000000..c4ef6d7 --- /dev/null +++ b/zh/yaf_controller_abstract/getviewpath.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Controller_Abstract::getViewpath + The getViewpath purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::getViewpath + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/initview.xml b/zh/yaf_controller_abstract/initview.xml new file mode 100644 index 0000000..55c9b94 --- /dev/null +++ b/zh/yaf_controller_abstract/initview.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Controller_Abstract::initView + The initView purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::initView + arrayoptions + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + options + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/redirect.xml b/zh/yaf_controller_abstract/redirect.xml new file mode 100644 index 0000000..f722431 --- /dev/null +++ b/zh/yaf_controller_abstract/redirect.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Controller_Abstract::redirect + The redirect purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::redirect + stringurl + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + url + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/render.xml b/zh/yaf_controller_abstract/render.xml new file mode 100644 index 0000000..b79a194 --- /dev/null +++ b/zh/yaf_controller_abstract/render.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Controller_Abstract::render + The render purpose + + + + &reftitle.description; + + final protected voidYaf_Controller_Abstract::render + stringtpl + arrayparameters + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + tpl + + + + + + + + parameters + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_controller_abstract/setviewpath.xml b/zh/yaf_controller_abstract/setviewpath.xml new file mode 100644 index 0000000..16345f1 --- /dev/null +++ b/zh/yaf_controller_abstract/setviewpath.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Controller_Abstract::setViewpath + The setViewpath purpose + + + + &reftitle.description; + + final public voidYaf_Controller_Abstract::setViewpath + stringview_directory + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + view_directory + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + From e9e15372893b4489bf8a4254e990e598ecbe93b6 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Thu, 26 Jul 2012 09:23:02 +0800 Subject: [PATCH 20/26] view-interface simple --- zh/yaf-view-interface.xml | 68 ++++++++++++++++++++++ zh/yaf_view_interface/assign.xml | 76 +++++++++++++++++++++++++ zh/yaf_view_interface/display.xml | 76 +++++++++++++++++++++++++ zh/yaf_view_interface/getscriptpath.xml | 58 +++++++++++++++++++ zh/yaf_view_interface/render.xml | 76 +++++++++++++++++++++++++ zh/yaf_view_interface/setscriptpath.xml | 71 +++++++++++++++++++++++ 6 files changed, 425 insertions(+) create mode 100644 zh/yaf-view-interface.xml create mode 100644 zh/yaf_view_interface/assign.xml create mode 100644 zh/yaf_view_interface/display.xml create mode 100644 zh/yaf_view_interface/getscriptpath.xml create mode 100644 zh/yaf_view_interface/render.xml create mode 100644 zh/yaf_view_interface/setscriptpath.xml diff --git a/zh/yaf-view-interface.xml b/zh/yaf-view-interface.xml new file mode 100644 index 0000000..44be318 --- /dev/null +++ b/zh/yaf-view-interface.xml @@ -0,0 +1,68 @@ + + + + + + The Yaf_View_Interface class + Yaf_View_Interface + + + + +
+ &reftitle.intro; + + Yaf允许开发者使用自定义的视图引擎代替自带的Yaf_View_Simple. + 这里有一个怎么代替Yaf_View_Simple的例子,在这里Yaf_Dispatcher::setView. + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_View_Interface + + + + + Yaf_View_Interface + + + + + &Methods; + + + + +
+ +
+ + &reference.yaf.entities.yaf-view-interface; + +
+ + diff --git a/zh/yaf_view_interface/assign.xml b/zh/yaf_view_interface/assign.xml new file mode 100644 index 0000000..f9ff85e --- /dev/null +++ b/zh/yaf_view_interface/assign.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_View_Interface::assign + 分配变量到视图引擎 + + + + &reftitle.description; + + abstract public boolYaf_View_Interface::assign + stringname + stringvalue + + + 分配变量到视图引擎,然后可以在视图模板里面使用此变量的名字直接调用。 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + value + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_interface/display.xml b/zh/yaf_view_interface/display.xml new file mode 100644 index 0000000..f6b290d --- /dev/null +++ b/zh/yaf_view_interface/display.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_View_Interface::display + 渲染和输出模板 + + + + &reftitle.description; + + abstract public boolYaf_View_Interface::display + stringtpl + arraytpl_vars + + + 渲染一个模板然后立即输出结果。 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + tpl + + + + + + + + tpl_vars + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_interface/getscriptpath.xml b/zh/yaf_view_interface/getscriptpath.xml new file mode 100644 index 0000000..83c67b6 --- /dev/null +++ b/zh/yaf_view_interface/getscriptpath.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_View_Interface::getScriptPath + The getScriptPath purpose + + + + &reftitle.description; + + abstract public voidYaf_View_Interface::getScriptPath + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_interface/render.xml b/zh/yaf_view_interface/render.xml new file mode 100644 index 0000000..7b93e04 --- /dev/null +++ b/zh/yaf_view_interface/render.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_View_Interface::render + 渲染一个模板 + + + + &reftitle.description; + + abstract public stringYaf_View_Interface::render + stringtpl + arraytpl_vars + + + 渲染一个模板然后返回结果 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + tpl + + + + + + + + tpl_vars + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_interface/setscriptpath.xml b/zh/yaf_view_interface/setscriptpath.xml new file mode 100644 index 0000000..7a75069 --- /dev/null +++ b/zh/yaf_view_interface/setscriptpath.xml @@ -0,0 +1,71 @@ + + + + + + Yaf_View_Interface::setScriptPath + 设置脚本路径 + + + + &reftitle.description; + + abstract public voidYaf_View_Interface::setScriptPath + stringtemplate_dir + + + 设置模板的基础目录,这个方法常常被 + Yaf_Dispatcher调用 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + template_dir + + + 一个模板目录的绝对路径,默认情况下, + A absolute path to the template directory, by default, + Yaf_Dispatcher 使用 + application.directory . "/views" 作为这个参数. + + + + + + + + &reftitle.returnvalues; + + + + + + + + + From be00694f7c28191100b5068a1ff6d8972c9b951b Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Thu, 26 Jul 2012 12:41:30 +0800 Subject: [PATCH 21/26] loader&plugin&view simple --- zh/yaf-loader.xml | 286 ++++++++++++++++++ zh/yaf-plugin-abstract.xml | 75 +++++ zh/yaf-view-simple.xml | 104 +++++++ zh/yaf_loader/autoload.xml | 58 ++++ zh/yaf_loader/clearlocalnamespace.xml | 58 ++++ zh/yaf_loader/clone.xml | 58 ++++ zh/yaf_loader/construct.xml | 58 ++++ zh/yaf_loader/getinstance.xml | 58 ++++ zh/yaf_loader/getlibrarypath.xml | 58 ++++ zh/yaf_loader/getlocalnamespace.xml | 58 ++++ zh/yaf_loader/import.xml | 58 ++++ zh/yaf_loader/islocalname.xml | 58 ++++ zh/yaf_loader/registerlocalnamespace.xml | 58 ++++ zh/yaf_loader/setlibrarypath.xml | 59 ++++ zh/yaf_loader/sleep.xml | 58 ++++ zh/yaf_loader/wakeup.xml | 58 ++++ .../dispatchloopshutdown.xml | 87 ++++++ .../dispatchloopstartup.xml | 76 +++++ zh/yaf_plugin_abstract/postdispatch.xml | 76 +++++ zh/yaf_plugin_abstract/predispatch.xml | 76 +++++ zh/yaf_plugin_abstract/preresponse.xml | 76 +++++ zh/yaf_plugin_abstract/routershutdown.xml | 121 ++++++++ zh/yaf_plugin_abstract/routerstartup.xml | 88 ++++++ zh/yaf_view_simple/assign.xml | 124 ++++++++ zh/yaf_view_simple/assignref.xml | 132 ++++++++ zh/yaf_view_simple/clear.xml | 96 ++++++ zh/yaf_view_simple/construct.xml | 98 ++++++ zh/yaf_view_simple/display.xml | 76 +++++ zh/yaf_view_simple/get.xml | 74 +++++ zh/yaf_view_simple/getscriptpath.xml | 58 ++++ zh/yaf_view_simple/isset.xml | 67 ++++ zh/yaf_view_simple/render.xml | 76 +++++ zh/yaf_view_simple/set.xml | 101 +++++++ zh/yaf_view_simple/setscriptpath.xml | 67 ++++ 34 files changed, 2789 insertions(+) create mode 100644 zh/yaf-loader.xml create mode 100644 zh/yaf-plugin-abstract.xml create mode 100644 zh/yaf-view-simple.xml create mode 100644 zh/yaf_loader/autoload.xml create mode 100644 zh/yaf_loader/clearlocalnamespace.xml create mode 100644 zh/yaf_loader/clone.xml create mode 100644 zh/yaf_loader/construct.xml create mode 100644 zh/yaf_loader/getinstance.xml create mode 100644 zh/yaf_loader/getlibrarypath.xml create mode 100644 zh/yaf_loader/getlocalnamespace.xml create mode 100644 zh/yaf_loader/import.xml create mode 100644 zh/yaf_loader/islocalname.xml create mode 100644 zh/yaf_loader/registerlocalnamespace.xml create mode 100644 zh/yaf_loader/setlibrarypath.xml create mode 100644 zh/yaf_loader/sleep.xml create mode 100644 zh/yaf_loader/wakeup.xml create mode 100644 zh/yaf_plugin_abstract/dispatchloopshutdown.xml create mode 100644 zh/yaf_plugin_abstract/dispatchloopstartup.xml create mode 100644 zh/yaf_plugin_abstract/postdispatch.xml create mode 100644 zh/yaf_plugin_abstract/predispatch.xml create mode 100644 zh/yaf_plugin_abstract/preresponse.xml create mode 100644 zh/yaf_plugin_abstract/routershutdown.xml create mode 100644 zh/yaf_plugin_abstract/routerstartup.xml create mode 100644 zh/yaf_view_simple/assign.xml create mode 100644 zh/yaf_view_simple/assignref.xml create mode 100644 zh/yaf_view_simple/clear.xml create mode 100644 zh/yaf_view_simple/construct.xml create mode 100644 zh/yaf_view_simple/display.xml create mode 100644 zh/yaf_view_simple/get.xml create mode 100644 zh/yaf_view_simple/getscriptpath.xml create mode 100644 zh/yaf_view_simple/isset.xml create mode 100644 zh/yaf_view_simple/render.xml create mode 100644 zh/yaf_view_simple/set.xml create mode 100644 zh/yaf_view_simple/setscriptpath.xml diff --git a/zh/yaf-loader.xml b/zh/yaf-loader.xml new file mode 100644 index 0000000..a723582 --- /dev/null +++ b/zh/yaf-loader.xml @@ -0,0 +1,286 @@ + + + + + + The Yaf_Loader class + Yaf_Loader + + + + +
+ &reftitle.intro; + + Yaf_Loader 介绍Yaf一个全自动的装载的解决方案。 + + + 首先,Yaf_Application的实例将会呗检索, + Yaf_Loader将会实例一个单例,并且使用spl_autoload注册它自己。 + 你可以使用Yaf_Loader::getInstance检索一个实例。 + + + Yaf_Loader 视图只用一次load一个类,如果失败, + 基于 yaf.use_spl_auload, 如果这个配置项是开打的, + Yaf_Loader::autoload将会返回FALSE,这个给了其他自动装载雷机会。 + 如果这个配置项是关闭的(默认是关闭的,off),Yaf_Loader::autoload 将会 + 返回TRUE,更重要的是一个非常有用的警告将被触发(对于找到为什么一个类不能load非常有用) + + + 请保持yaf.use_spl_autoload 是关闭的(off),除非有一些库,有它自己的自动加载 + 机制,并且不能重写它。 + + + + + 默认情况下,Yaf_Loader假设所有的library(定义类的脚本) + 都存放在global library directory里, + 它已经在php.ini(yaf.library配置项)里面定义。 + + + + 如果你想使用Yaf_Loader检索一些类库,在 + local class directory中(已经在application.ini种定义, + 默认情况下是application.directory . "/libraray" ) + 你需要注册类的前缀,可以使用Yaf_Loader::registerLocalNameSpace + + + + 来看一些例子(假设 APPLICATION_PATH 是application.directory): + + Config example + + + + + 假设下面的本地命名空间已经注册: + + Register localnamespace + +registerLocalNameSpace(array("Foo", "Bar")); + } +?> +]]> + + + + 然后自动装载的例子: + + Load class example + + + // APPLICATION_PATH/library/Foo/Bar/Test.php + +class GLO_Name => + // /global_dir/Glo/Name.php + +class BarNon_Test + // /global_dir/Barnon/Test.php +]]> + + + + 从PHP 5.3起,你可以使用命名空间: + + Load namespace class example + + + // APPLICATION_PATH/library/Foo/Bar/Dummy.php + +class \FooBar\Bar\Dummy => + // /global_dir/FooBar/Bar/Dummy.php +]]> + + + + + + 你可能注意到了所有的文件件的第一个字母都是大写的, + 通过在php.ini中使用yaf.lowcase_path = On, + 你也可以让他们是小写的。 + + + + Yaf_Loader 也设计去加载MVC类, + 规则如下: + + MVC class loading example + + +// APPLICATION_PATH/controllers/ + +Model Classes => +// APPLICATION_PATH/models/ + +Plugin Classes => +// APPLICATION_PATH/plugins/ +]]> + + + Yaf识别一个类的后缀(这是默认情况下的,你也可以改变为前缀,通过改变配置 yaf.name_suffix)来决定它是否是一个MVC类: + Yaf identify a class's suffix(this is by default, you can also change to + the prefix by change the configure yaf.name_suffix) to decide whether it + is a MVC class: + + MVC 类的区别 + + + // ***Controller + +Model Classes => + // ***Model + +Plugin Classes => + // ***Plugin +]]> + + + + some examples: + + MVC loading example + + + // APPLICATION_PATH/models/Data.php + +class DummyPlugin => + // APPLICATION_PATH/plugins/Dummy.php + +class A_B_TestModel => + // APPLICATION_PATH/models/A/B/Test.php +]]> + + + 但是,这个目录将会被yaf.lowcase_path影响。 + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Loader + + + + + Yaf_Loader + + + + &Properties; + + protected + _local_ns + + + protected + _library + + + protected + _global_library + + + static + _instance + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _local_ns + + + + + + _library + + + 默认情况下,这个值是application.directory . "/library", + 你可以通过在application.ini(application.library)里面更改或则调用Yaf_Loader::setLibraryPath + 方法 + + + + + _global_library + + + + + + _instance + + + + + +
+ + + +
+ + + &reference.yaf.entities.yaf-loader; + +
+ + diff --git a/zh/yaf-plugin-abstract.xml b/zh/yaf-plugin-abstract.xml new file mode 100644 index 0000000..0c4c9e5 --- /dev/null +++ b/zh/yaf-plugin-abstract.xml @@ -0,0 +1,75 @@ + + + + + + The Yaf_Plugin_Abstract class + Yaf_Plugin_Abstract + + + + +
+ &reftitle.intro; + + 插件考虑到了框架的简单可扩展性和可定制性。 + + + 插件也是类。实际的类定义将取决于这个元件-你可能需要实现这个接口, + 但是实际上,插件本身任然是一个类。 + + + 一个插件可以通过使用Yaf_Dispatcher::registerPlugin + 装载进YAf里,注册之后,所有插件实现的方法根据接口将会在适当的时候调用。 + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Plugin_Abstract + + + + + Yaf_Plugin_Abstract + + + + + &Methods; + + + + +
+ +
+ + &reference.yaf.entities.yaf-plugin-abstract; + +
+ + diff --git a/zh/yaf-view-simple.xml b/zh/yaf-view-simple.xml new file mode 100644 index 0000000..f07279f --- /dev/null +++ b/zh/yaf-view-simple.xml @@ -0,0 +1,104 @@ + + + + + + The Yaf_View_Simple class + Yaf_View_Simple + + + + +
+ &reftitle.intro; + + Yaf_View_Simple 在Yaf中是内建的模板引擎, + 它是一个简单极速的模板引擎,但是仅仅能支持php脚本模板。 + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_View_Simple + + + + + Yaf_View_Simple + + + + Yaf_View_Interface + + + + &Properties; + + protected + _tpl_vars + + + protected + _tpl_dir + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _tpl_vars + + + + + + _tpl_dir + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-view-simple; + +
+ + diff --git a/zh/yaf_loader/autoload.xml b/zh/yaf_loader/autoload.xml new file mode 100644 index 0000000..6376b58 --- /dev/null +++ b/zh/yaf_loader/autoload.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::autoload + The autoload purpose + + + + &reftitle.description; + + public voidYaf_Loader::autoload + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/clearlocalnamespace.xml b/zh/yaf_loader/clearlocalnamespace.xml new file mode 100644 index 0000000..31e527c --- /dev/null +++ b/zh/yaf_loader/clearlocalnamespace.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::clearLocalNamespace + The clearLocalNamespace purpose + + + + &reftitle.description; + + public voidYaf_Loader::clearLocalNamespace + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/clone.xml b/zh/yaf_loader/clone.xml new file mode 100644 index 0000000..a44d1d6 --- /dev/null +++ b/zh/yaf_loader/clone.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::__clone + The __clone purpose + + + + &reftitle.description; + + private voidYaf_Loader::__clone + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/construct.xml b/zh/yaf_loader/construct.xml new file mode 100644 index 0000000..078c035 --- /dev/null +++ b/zh/yaf_loader/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::__construct + The __construct purpose + + + + &reftitle.description; + + publicYaf_Loader::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/getinstance.xml b/zh/yaf_loader/getinstance.xml new file mode 100644 index 0000000..1ce7946 --- /dev/null +++ b/zh/yaf_loader/getinstance.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::getInstance + The getInstance purpose + + + + &reftitle.description; + + public static voidYaf_Loader::getInstance + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/getlibrarypath.xml b/zh/yaf_loader/getlibrarypath.xml new file mode 100644 index 0000000..27538af --- /dev/null +++ b/zh/yaf_loader/getlibrarypath.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::getLibraryPath + get the library path + + + + &reftitle.description; + + public Yaf_LoaderYaf_Loader::getLibraryPath + boolis_globalfalse + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/getlocalnamespace.xml b/zh/yaf_loader/getlocalnamespace.xml new file mode 100644 index 0000000..53e69e5 --- /dev/null +++ b/zh/yaf_loader/getlocalnamespace.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::getLocalNamespace + The getLocalNamespace purpose + + + + &reftitle.description; + + public voidYaf_Loader::getLocalNamespace + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/import.xml b/zh/yaf_loader/import.xml new file mode 100644 index 0000000..1e2725c --- /dev/null +++ b/zh/yaf_loader/import.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::import + The import purpose + + + + &reftitle.description; + + public static voidYaf_Loader::import + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/islocalname.xml b/zh/yaf_loader/islocalname.xml new file mode 100644 index 0000000..fac2e6e --- /dev/null +++ b/zh/yaf_loader/islocalname.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::isLocalName + The isLocalName purpose + + + + &reftitle.description; + + public voidYaf_Loader::isLocalName + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/registerlocalnamespace.xml b/zh/yaf_loader/registerlocalnamespace.xml new file mode 100644 index 0000000..f9d726f --- /dev/null +++ b/zh/yaf_loader/registerlocalnamespace.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::registerLocalNamespace + The registerLocalNamespace purpose + + + + &reftitle.description; + + public voidYaf_Loader::registerLocalNamespace + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/setlibrarypath.xml b/zh/yaf_loader/setlibrarypath.xml new file mode 100644 index 0000000..6ebe8d5 --- /dev/null +++ b/zh/yaf_loader/setlibrarypath.xml @@ -0,0 +1,59 @@ + + + + + + Yaf_Loader::setLibraryPath + Change the library path + + + + &reftitle.description; + + public Yaf_LoaderYaf_Loader::setLibraryPath + stringdirectory + boolis_globalfalse + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/sleep.xml b/zh/yaf_loader/sleep.xml new file mode 100644 index 0000000..d7552d4 --- /dev/null +++ b/zh/yaf_loader/sleep.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::__sleep + The __sleep purpose + + + + &reftitle.description; + + private voidYaf_Loader::__sleep + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_loader/wakeup.xml b/zh/yaf_loader/wakeup.xml new file mode 100644 index 0000000..e2e05b0 --- /dev/null +++ b/zh/yaf_loader/wakeup.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Loader::__wakeup + The __wakeup purpose + + + + &reftitle.description; + + private voidYaf_Loader::__wakeup + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_plugin_abstract/dispatchloopshutdown.xml b/zh/yaf_plugin_abstract/dispatchloopshutdown.xml new file mode 100644 index 0000000..05c316d --- /dev/null +++ b/zh/yaf_plugin_abstract/dispatchloopshutdown.xml @@ -0,0 +1,87 @@ + + + + + + Yaf_Plugin_Abstract::dispatchLoopShutdown + dispatchLoopShutdown purpose + + + + &reftitle.description; + + public voidYaf_Plugin_Abstract::dispatchLoopShutdown + Yaf_Request_Abstractrequest + Yaf_Response_Abstractresponse + + + 在Yaf插件钩子系统中,这是最后一个钩子,如果一个自定义的插件实现了这个方法, + 之后它会在调度循环完成后被调用。 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + response + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.seealso; + + Yaf_Plugin_Abstract::routerStartup + Yaf_Plugin_Abstract::routerShutdown + Yaf_Plugin_Abstract::dispatchLoopStartup + Yaf_Plugin_Abstract::preDispatch + Yaf_Plugin_Abstract::postDispatch + + + + + + diff --git a/zh/yaf_plugin_abstract/dispatchloopstartup.xml b/zh/yaf_plugin_abstract/dispatchloopstartup.xml new file mode 100644 index 0000000..16bec7e --- /dev/null +++ b/zh/yaf_plugin_abstract/dispatchloopstartup.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Plugin_Abstract::dispatchLoopStartup + The dispatchLoopStartup purpose + + + + &reftitle.description; + + public voidYaf_Plugin_Abstract::dispatchLoopStartup + Yaf_Request_Abstractrequest + Yaf_Response_Abstractresponse + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + response + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_plugin_abstract/postdispatch.xml b/zh/yaf_plugin_abstract/postdispatch.xml new file mode 100644 index 0000000..48ce5d1 --- /dev/null +++ b/zh/yaf_plugin_abstract/postdispatch.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Plugin_Abstract::postDispatch + The postDispatch purpose + + + + &reftitle.description; + + public voidYaf_Plugin_Abstract::postDispatch + Yaf_Request_Abstractrequest + Yaf_Response_Abstractresponse + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + response + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_plugin_abstract/predispatch.xml b/zh/yaf_plugin_abstract/predispatch.xml new file mode 100644 index 0000000..0164c08 --- /dev/null +++ b/zh/yaf_plugin_abstract/predispatch.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Plugin_Abstract::preDispatch + The preDispatch purpose + + + + &reftitle.description; + + public voidYaf_Plugin_Abstract::preDispatch + Yaf_Request_Abstractrequest + Yaf_Response_Abstractresponse + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + response + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_plugin_abstract/preresponse.xml b/zh/yaf_plugin_abstract/preresponse.xml new file mode 100644 index 0000000..be99768 --- /dev/null +++ b/zh/yaf_plugin_abstract/preresponse.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Plugin_Abstract::preResponse + The preResponse purpose + + + + &reftitle.description; + + public voidYaf_Plugin_Abstract::preResponse + Yaf_Request_Abstractrequest + Yaf_Response_Abstractresponse + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + response + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_plugin_abstract/routershutdown.xml b/zh/yaf_plugin_abstract/routershutdown.xml new file mode 100644 index 0000000..dd77f45 --- /dev/null +++ b/zh/yaf_plugin_abstract/routershutdown.xml @@ -0,0 +1,121 @@ + + + + + + Yaf_Plugin_Abstract::routerShutdown + The routerShutdown purpose + + + + &reftitle.description; + + public voidYaf_Plugin_Abstract::routerShutdown + Yaf_Request_Abstractrequest + Yaf_Response_Abstractresponse + + + 这个钩子将会在路由处理结束后被触发,这个钩子常用于登陆检查 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + response + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Plugin_Abstract::routerShutdown</function>example + +getControllerName(); + + /** + * 对Api来说,访问控制器不是必须的 + */ + if (in_array(strtolower($controller), array( + 'api', + ))) { + return TRUE; + } + + if (Yaf_Session::getInstance()->has("login")) { + return TRUE; + } + + /* 访问检查失败,需要登陆 */ + $response->redirect("http://yourdomain.com/login/"); + return FALSE; + } +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_Plugin_Abstract::routerStartup + Yaf_Plugin_Abstract::dispatchLoopStartup + Yaf_Plugin_Abstract::preDispatch + Yaf_Plugin_Abstract::postDispatch + Yaf_Plugin_Abstract::dispatchLoopShutdown + + + + + + diff --git a/zh/yaf_plugin_abstract/routerstartup.xml b/zh/yaf_plugin_abstract/routerstartup.xml new file mode 100644 index 0000000..f4b7315 --- /dev/null +++ b/zh/yaf_plugin_abstract/routerstartup.xml @@ -0,0 +1,88 @@ + + + + + + Yaf_Plugin_Abstract::routerStartup + RouterStartup hook + + + + &reftitle.description; + + public voidYaf_Plugin_Abstract::routerStartup + Yaf_Request_Abstractrequest + Yaf_Response_Abstractresponse + + + 这是在Yaf插件钩子系统最早的钩子,如果一个自定义的插件实现了这个方法, + 然后它会在路由一个请求之前被调用 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + response + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.seealso; + + Yaf_Plugin_Abstract::routerShutdown + Yaf_Plugin_Abstract::dispatchLoopStartup + Yaf_Plugin_Abstract::preDispatch + Yaf_Plugin_Abstract::postDispatch + Yaf_Plugin_Abstract::dispatchLoopShutdown + + + + + + + diff --git a/zh/yaf_view_simple/assign.xml b/zh/yaf_view_simple/assign.xml new file mode 100644 index 0000000..75c8600 --- /dev/null +++ b/zh/yaf_view_simple/assign.xml @@ -0,0 +1,124 @@ + + + + + + Yaf_View_Simple::assign + Assign values + + + + &reftitle.description; + + public boolYaf_View_Simple::assign + stringname + mixedvalue + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + 字符串或则数组 + + + 如果此参数是字符串,那么下个参数是必须的。 + + + + + value + + + mixed value + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_View_Simple::assign</function>example + +getView()->assign("foo", "bar"); + $this->_view->assign( array( "key" => "value", "name" => "value")); + } +?> +]]> + + + + <function>template</function>example + + + + <?php echo $foo; ?> + + + _tpl_vars as $name => value) { + echo $$name; // or echo $this->_tpl_vars[$name]; + } + ?> + + +]]> + + + + + + &reftitle.seealso; + + Yaf_View_Simple::assignRef + Yaf_View_Interface::clear + Yaf_View_Simple::__set + + + + + + diff --git a/zh/yaf_view_simple/assignref.xml b/zh/yaf_view_simple/assignref.xml new file mode 100644 index 0000000..00a1614 --- /dev/null +++ b/zh/yaf_view_simple/assignref.xml @@ -0,0 +1,132 @@ + + + + + + Yaf_View_Simple::assignRef + assign关键字/refpurpose> + + + + &reftitle.description; + + public boolYaf_View_Simple::assignRef + stringname + mixedvalue + + + 与 Yaf_View_Simple::assign不同, + 这二个方法分配一个关键字值给引擎 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + 一个用来在模板里面可以通过它来访问值的字符串名。 + + + + + value + + + mixed value + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_View_Simple::assignRef</function>example + +getView()->assign("foo", $value); + + /* plz note that there was a bug before Yaf 2.1.4, + * which make following output "bar"; + */ + $dummy = $this->getView()->render("index/index.phtml"); + echo $value; + + //prevent the auto-render + Yaf_Dispatcher::getInstance()->autoRender(FALSE); + } +?> +]]> + + + + <function>template</function>example + + + + <?php echo $foo; $foo = "changed"; ?> + + + + +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.seealso; + + Yaf_View_Simple::assign + Yaf_View_Simple::__set + + + + + + diff --git a/zh/yaf_view_simple/clear.xml b/zh/yaf_view_simple/clear.xml new file mode 100644 index 0000000..8bd1e07 --- /dev/null +++ b/zh/yaf_view_simple/clear.xml @@ -0,0 +1,96 @@ + + + + + + Yaf_View_Simple::clear + 清除已经分配的值 + + + + &reftitle.description; + + public boolYaf_View_Simple::clear + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + 已经分配给模板的变量名 + + + 如果唯恐,它将会清除所有已分配的变量 + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_View_Simple::clear</function>example + +getView()->clear("foo")->clear("bar"); // clear "foo" and "bar" + $this->_view->clear(); //clear all assigned variables + } +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_View_Simple::assignRef + Yaf_View_Interface::assign + Yaf_View_Simple::__set + + + + + + diff --git a/zh/yaf_view_simple/construct.xml b/zh/yaf_view_simple/construct.xml new file mode 100644 index 0000000..88d10b5 --- /dev/null +++ b/zh/yaf_view_simple/construct.xml @@ -0,0 +1,98 @@ + + + + + + Yaf_View_Simple::__construct + The __construct purpose + + + + &reftitle.description; + + public Yaf_View_Simple::__construct + stringtempalte_dir + arrayoptions + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + tempalte_dir + + + 模板引擎的基础目录,默认情况下是APPLICATOIN . "/views" for Yaf. + + + + + options + + + " 在你的模板里面(无论 "short_open_tag"是否打开), + 因此有个选项名叫“short_tag”,你可以切换关闭它,防止它在模板种 + 使用。 + ]]> + + + + + + + + &reftitle.examples; + + <function>Yaf_View_Simple::__constructor</function>example + + false //不允许在模板里面使用短标签 + )); +?> +]]> + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_simple/display.xml b/zh/yaf_view_simple/display.xml new file mode 100644 index 0000000..cd96e61 --- /dev/null +++ b/zh/yaf_view_simple/display.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_View_Simple::display + 渲染并显示 + + + + &reftitle.description; + + public boolYaf_View_Simple::display + stringtpl + arraytpl_vars + + + 渲染一个模板并且立即显示结果 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + tpl + + + + + + + + tpl_vars + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_simple/get.xml b/zh/yaf_view_simple/get.xml new file mode 100644 index 0000000..0707f36 --- /dev/null +++ b/zh/yaf_view_simple/get.xml @@ -0,0 +1,74 @@ + + + + + + Yaf_View_Simple::__get + 检索已分配的变量 + + + + &reftitle.description; + + public voidYaf_View_Simple::__get + stringname + + + + + 从Yaf2.1.11开始,参数可以唯恐 + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + 已分配的变量名 + + + 如果唯恐,所有已分配的变量值将被返回 + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_simple/getscriptpath.xml b/zh/yaf_view_simple/getscriptpath.xml new file mode 100644 index 0000000..51977f8 --- /dev/null +++ b/zh/yaf_view_simple/getscriptpath.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_View_Simple::getScriptPath + 获取模板基础目录 + + + + &reftitle.description; + + public stringYaf_View_Simple::getScriptPath + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_simple/isset.xml b/zh/yaf_view_simple/isset.xml new file mode 100644 index 0000000..3fb9725 --- /dev/null +++ b/zh/yaf_view_simple/isset.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_View_Simple::__isset + The __isset purpose + + + + &reftitle.description; + + public voidYaf_View_Simple::__isset + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_simple/render.xml b/zh/yaf_view_simple/render.xml new file mode 100644 index 0000000..4defb19 --- /dev/null +++ b/zh/yaf_view_simple/render.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_View_Simple::render + 渲染模板 + + + + &reftitle.description; + + public stringYaf_View_Simple::render + stringtpl + arraytpl_vars + + + 渲染一个模板并返回结果 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + tpl + + + + + + + + tpl_vars + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_view_simple/set.xml b/zh/yaf_view_simple/set.xml new file mode 100644 index 0000000..2e34af0 --- /dev/null +++ b/zh/yaf_view_simple/set.xml @@ -0,0 +1,101 @@ + + + + + + Yaf_View_Simple::__set + 为引擎设置值 + + + + &reftitle.description; + + public voidYaf_View_Simple::__set + stringname + mixedvalue + + + 这个一个更简单的方法可以替代 + Yaf_View_Simple::assign。 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + 一个字符串类型的名字 + + + + + value + + + 任意类型的值 + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_View_Simple::__set</function>example + +getView()->foo = "bar"; // 与 assign("foo", "bar")一样; + } +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_View_Simple::assignRef + Yaf_View_Interface::assign + + + + + + diff --git a/zh/yaf_view_simple/setscriptpath.xml b/zh/yaf_view_simple/setscriptpath.xml new file mode 100644 index 0000000..ce53fd3 --- /dev/null +++ b/zh/yaf_view_simple/setscriptpath.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_View_Simple::setScriptPath + 设置模板的基本目录 + + + + &reftitle.description; + + public boolYaf_View_Simple::setScriptPath + stringtemplate_dir + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + template_dir + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + From 362505a7151d66510122c49f798b459ea8d40913 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Thu, 26 Jul 2012 16:52:51 +0800 Subject: [PATCH 22/26] request & route part --- zh/yaf-registry.xml | 100 ++++++++ zh/yaf-request-abstract.xml | 227 ++++++++++++++++++ zh/yaf-request-http.xml | 154 ++++++++++++ zh/yaf-request-simple.xml | 193 +++++++++++++++ zh/yaf-response-abstract.xml | 109 +++++++++ zh/yaf-route-interface.xml | 67 ++++++ zh/yaf-route-map.xml | 103 ++++++++ zh/yaf-route-regex.xml | 131 ++++++++++ zh/yaf_registry/clone.xml | 58 +++++ zh/yaf_registry/construct.xml | 58 +++++ zh/yaf_registry/del.xml | 67 ++++++ zh/yaf_registry/get.xml | 67 ++++++ zh/yaf_registry/has.xml | 67 ++++++ zh/yaf_registry/set.xml | 76 ++++++ zh/yaf_request_abstract/getactionname.xml | 58 +++++ zh/yaf_request_abstract/getbaseuri.xml | 58 +++++ zh/yaf_request_abstract/getcontrollername.xml | 58 +++++ zh/yaf_request_abstract/getenv.xml | 76 ++++++ zh/yaf_request_abstract/getexception.xml | 58 +++++ zh/yaf_request_abstract/getlanguage.xml | 58 +++++ zh/yaf_request_abstract/getmethod.xml | 58 +++++ zh/yaf_request_abstract/getmodulename.xml | 58 +++++ zh/yaf_request_abstract/getparam.xml | 76 ++++++ zh/yaf_request_abstract/getparams.xml | 58 +++++ zh/yaf_request_abstract/getrequesturi.xml | 58 +++++ zh/yaf_request_abstract/getserver.xml | 76 ++++++ zh/yaf_request_abstract/iscli.xml | 58 +++++ zh/yaf_request_abstract/isdispatched.xml | 58 +++++ zh/yaf_request_abstract/isget.xml | 58 +++++ zh/yaf_request_abstract/ishead.xml | 58 +++++ zh/yaf_request_abstract/isoptions.xml | 58 +++++ zh/yaf_request_abstract/ispost.xml | 58 +++++ zh/yaf_request_abstract/isput.xml | 58 +++++ zh/yaf_request_abstract/isrouted.xml | 58 +++++ zh/yaf_request_abstract/isxmlhttprequest.xml | 58 +++++ zh/yaf_request_abstract/setactionname.xml | 67 ++++++ zh/yaf_request_abstract/setbaseuri.xml | 67 ++++++ zh/yaf_request_abstract/setcontrollername.xml | 67 ++++++ zh/yaf_request_abstract/setdispatched.xml | 58 +++++ zh/yaf_request_abstract/setmodulename.xml | 67 ++++++ zh/yaf_request_abstract/setparam.xml | 76 ++++++ zh/yaf_request_abstract/setrequesturi.xml | 67 ++++++ zh/yaf_request_abstract/setrouted.xml | 67 ++++++ zh/yaf_request_http/clone.xml | 58 +++++ zh/yaf_request_http/construct.xml | 58 +++++ zh/yaf_request_http/get.xml | 58 +++++ zh/yaf_request_http/getcookie.xml | 58 +++++ zh/yaf_request_http/getfiles.xml | 58 +++++ zh/yaf_request_http/getpost.xml | 58 +++++ zh/yaf_request_http/getquery.xml | 58 +++++ zh/yaf_request_http/getrequest.xml | 58 +++++ zh/yaf_request_http/isxmlhttprequest.xml | 58 +++++ zh/yaf_request_simple/clone.xml | 58 +++++ zh/yaf_request_simple/construct.xml | 58 +++++ zh/yaf_request_simple/get.xml | 58 +++++ zh/yaf_request_simple/getcookie.xml | 58 +++++ zh/yaf_request_simple/getfiles.xml | 58 +++++ zh/yaf_request_simple/getpost.xml | 58 +++++ zh/yaf_request_simple/getquery.xml | 58 +++++ zh/yaf_request_simple/getrequest.xml | 58 +++++ zh/yaf_request_simple/isxmlhttprequest.xml | 58 +++++ zh/yaf_response_abstract/.DS_Store | Bin 0 -> 6148 bytes zh/yaf_response_abstract/appendbody.xml | 58 +++++ zh/yaf_response_abstract/clearbody.xml | 58 +++++ zh/yaf_response_abstract/clearheaders.xml | 58 +++++ zh/yaf_response_abstract/clone.xml | 58 +++++ zh/yaf_response_abstract/construct.xml | 58 +++++ zh/yaf_response_abstract/destruct.xml | 58 +++++ zh/yaf_response_abstract/getbody.xml | 58 +++++ zh/yaf_response_abstract/getheader.xml | 58 +++++ zh/yaf_response_abstract/prependbody.xml | 58 +++++ zh/yaf_response_abstract/response.xml | 58 +++++ zh/yaf_response_abstract/setallheaders.xml | 58 +++++ zh/yaf_response_abstract/setbody.xml | 58 +++++ zh/yaf_response_abstract/setheader.xml | 58 +++++ zh/yaf_response_abstract/setredirect.xml | 58 +++++ zh/yaf_response_abstract/tostring.xml | 58 +++++ zh/yaf_route_interface/route.xml | 82 +++++++ zh/yaf_route_map/construct.xml | 170 +++++++++++++ zh/yaf_route_map/route.xml | 67 ++++++ zh/yaf_route_regex/construct.xml | 167 +++++++++++++ zh/yaf_route_regex/route.xml | 69 ++++++ zh/yaf_view_interface/.DS_Store | Bin 0 -> 6148 bytes zh/yaf_view_simple/.DS_Store | Bin 0 -> 6148 bytes 84 files changed, 5754 insertions(+) create mode 100644 zh/yaf-registry.xml create mode 100644 zh/yaf-request-abstract.xml create mode 100644 zh/yaf-request-http.xml create mode 100644 zh/yaf-request-simple.xml create mode 100644 zh/yaf-response-abstract.xml create mode 100644 zh/yaf-route-interface.xml create mode 100644 zh/yaf-route-map.xml create mode 100644 zh/yaf-route-regex.xml create mode 100644 zh/yaf_registry/clone.xml create mode 100644 zh/yaf_registry/construct.xml create mode 100644 zh/yaf_registry/del.xml create mode 100644 zh/yaf_registry/get.xml create mode 100644 zh/yaf_registry/has.xml create mode 100644 zh/yaf_registry/set.xml create mode 100644 zh/yaf_request_abstract/getactionname.xml create mode 100644 zh/yaf_request_abstract/getbaseuri.xml create mode 100644 zh/yaf_request_abstract/getcontrollername.xml create mode 100644 zh/yaf_request_abstract/getenv.xml create mode 100644 zh/yaf_request_abstract/getexception.xml create mode 100644 zh/yaf_request_abstract/getlanguage.xml create mode 100644 zh/yaf_request_abstract/getmethod.xml create mode 100644 zh/yaf_request_abstract/getmodulename.xml create mode 100644 zh/yaf_request_abstract/getparam.xml create mode 100644 zh/yaf_request_abstract/getparams.xml create mode 100644 zh/yaf_request_abstract/getrequesturi.xml create mode 100644 zh/yaf_request_abstract/getserver.xml create mode 100644 zh/yaf_request_abstract/iscli.xml create mode 100644 zh/yaf_request_abstract/isdispatched.xml create mode 100644 zh/yaf_request_abstract/isget.xml create mode 100644 zh/yaf_request_abstract/ishead.xml create mode 100644 zh/yaf_request_abstract/isoptions.xml create mode 100644 zh/yaf_request_abstract/ispost.xml create mode 100644 zh/yaf_request_abstract/isput.xml create mode 100644 zh/yaf_request_abstract/isrouted.xml create mode 100644 zh/yaf_request_abstract/isxmlhttprequest.xml create mode 100644 zh/yaf_request_abstract/setactionname.xml create mode 100644 zh/yaf_request_abstract/setbaseuri.xml create mode 100644 zh/yaf_request_abstract/setcontrollername.xml create mode 100644 zh/yaf_request_abstract/setdispatched.xml create mode 100644 zh/yaf_request_abstract/setmodulename.xml create mode 100644 zh/yaf_request_abstract/setparam.xml create mode 100644 zh/yaf_request_abstract/setrequesturi.xml create mode 100644 zh/yaf_request_abstract/setrouted.xml create mode 100644 zh/yaf_request_http/clone.xml create mode 100644 zh/yaf_request_http/construct.xml create mode 100644 zh/yaf_request_http/get.xml create mode 100644 zh/yaf_request_http/getcookie.xml create mode 100644 zh/yaf_request_http/getfiles.xml create mode 100644 zh/yaf_request_http/getpost.xml create mode 100644 zh/yaf_request_http/getquery.xml create mode 100644 zh/yaf_request_http/getrequest.xml create mode 100644 zh/yaf_request_http/isxmlhttprequest.xml create mode 100644 zh/yaf_request_simple/clone.xml create mode 100644 zh/yaf_request_simple/construct.xml create mode 100644 zh/yaf_request_simple/get.xml create mode 100644 zh/yaf_request_simple/getcookie.xml create mode 100644 zh/yaf_request_simple/getfiles.xml create mode 100644 zh/yaf_request_simple/getpost.xml create mode 100644 zh/yaf_request_simple/getquery.xml create mode 100644 zh/yaf_request_simple/getrequest.xml create mode 100644 zh/yaf_request_simple/isxmlhttprequest.xml create mode 100644 zh/yaf_response_abstract/.DS_Store create mode 100644 zh/yaf_response_abstract/appendbody.xml create mode 100644 zh/yaf_response_abstract/clearbody.xml create mode 100644 zh/yaf_response_abstract/clearheaders.xml create mode 100644 zh/yaf_response_abstract/clone.xml create mode 100644 zh/yaf_response_abstract/construct.xml create mode 100644 zh/yaf_response_abstract/destruct.xml create mode 100644 zh/yaf_response_abstract/getbody.xml create mode 100644 zh/yaf_response_abstract/getheader.xml create mode 100644 zh/yaf_response_abstract/prependbody.xml create mode 100644 zh/yaf_response_abstract/response.xml create mode 100644 zh/yaf_response_abstract/setallheaders.xml create mode 100644 zh/yaf_response_abstract/setbody.xml create mode 100644 zh/yaf_response_abstract/setheader.xml create mode 100644 zh/yaf_response_abstract/setredirect.xml create mode 100644 zh/yaf_response_abstract/tostring.xml create mode 100644 zh/yaf_route_interface/route.xml create mode 100644 zh/yaf_route_map/construct.xml create mode 100644 zh/yaf_route_map/route.xml create mode 100644 zh/yaf_route_regex/construct.xml create mode 100644 zh/yaf_route_regex/route.xml create mode 100644 zh/yaf_view_interface/.DS_Store create mode 100644 zh/yaf_view_simple/.DS_Store diff --git a/zh/yaf-registry.xml b/zh/yaf-registry.xml new file mode 100644 index 0000000..a634c97 --- /dev/null +++ b/zh/yaf-registry.xml @@ -0,0 +1,100 @@ + + + + + + The Yaf_Registry class + Yaf_Registry + + + + +
+ &reftitle.intro; + + 所有Yaf_Registry的方法都被声明为静态的,使它能万能地被访问。 + 使得你在自己的代码中如果需要可以从任何地方获取设置任何自定义的数据。 + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Registry + + + + + Yaf_Registry + + + + &Properties; + + static + _instance + + + protected + _entries + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _instance + + + + + + _entries + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-registry; + +
+ + diff --git a/zh/yaf-request-abstract.xml b/zh/yaf-request-abstract.xml new file mode 100644 index 0000000..cfdb839 --- /dev/null +++ b/zh/yaf-request-abstract.xml @@ -0,0 +1,227 @@ + + + + + + The Yaf_Request_Abstract class + Yaf_Request_Abstract + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Request_Abstract + + + + + Yaf_Request_Abstract + + + + Constants + + const + string + Yaf_Request_Abstract::SCHEME_HTTP + http + + + const + string + Yaf_Request_Abstract::SCHEME_HTTPS + https + + + &Properties; + + public + module + + + public + controller + + + public + action + + + public + method + + + protected + params + + + protected + language + + + protected + _exception + + + protected + _base_uri + + + protected + uri + + + protected + dispatched + + + protected + routed + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + module + + + + + + controller + + + + + + action + + + + + + method + + + + + + params + + + + + + language + + + + + + _exception + + + + + + _base_uri + + + + + + uri + + + + + + dispatched + + + + + + routed + + + + + +
+ + + + +
+ &reftitle.constants; + + + + Yaf_Request_Abstract::SCHEME_HTTP + + + + + + + Yaf_Request_Abstract::SCHEME_HTTPS + + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-request-abstract; + +
+ + diff --git a/zh/yaf-request-http.xml b/zh/yaf-request-http.xml new file mode 100644 index 0000000..c94f39e --- /dev/null +++ b/zh/yaf-request-http.xml @@ -0,0 +1,154 @@ + + + + + + The Yaf_Request_Http class + Yaf_Request_Http + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Request_Http + + + + + Yaf_Request_Http + + + + extends + Yaf_Request_Abstract + + + + &Properties; + + + &Methods; + + + &InheritedMethods; + + + + + +
+ + + +
+ &reftitle.properties; + + + module + + + + + + controller + + + + + + action + + + + + + method + + + + + + params + + + + + + language + + + + + + _exception + + + + + + _base_uri + + + + + + uri + + + + + + dispatched + + + + + + routed + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-request-http; + +
+ + diff --git a/zh/yaf-request-simple.xml b/zh/yaf-request-simple.xml new file mode 100644 index 0000000..2b77978 --- /dev/null +++ b/zh/yaf-request-simple.xml @@ -0,0 +1,193 @@ + + + + + + The Yaf_Request_Simple class + Yaf_Request_Simple + + + + +
+ &reftitle.intro; + + Yaf_Request_Simple 特用于测试,即,在命令行模式下模拟一 + 些特殊的请求 + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Request_Simple + + + + + Yaf_Request_Simple + + + + extends + Yaf_Request_Abstract + + + + Constants + + const + string + Yaf_Request_Simple::SCHEME_HTTP + http + + + const + string + Yaf_Request_Simple::SCHEME_HTTPS + https + + + &Properties; + + + &Methods; + + + &InheritedMethods; + + + + + +
+ + + +
+ &reftitle.properties; + + + module + + + + + + controller + + + + + + action + + + + + + method + + + + + + params + + + + + + language + + + + + + _exception + + + + + + _base_uri + + + + + + uri + + + + + + dispatched + + + + + + routed + + + + + +
+ + + + +
+ &reftitle.constants; + + + + Yaf_Request_Simple::SCHEME_HTTP + + + + + + + Yaf_Request_Simple::SCHEME_HTTPS + + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-request-simple; + +
+ + diff --git a/zh/yaf-response-abstract.xml b/zh/yaf-response-abstract.xml new file mode 100644 index 0000000..7206d91 --- /dev/null +++ b/zh/yaf-response-abstract.xml @@ -0,0 +1,109 @@ + + + + + + The Yaf_Response_Abstract class + Yaf_Response_Abstract + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Response_Abstract + + + + + Yaf_Response_Abstract + + + + &Properties; + + protected + _header + + + protected + _body + + + protected + _sendheader + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _header + + + + + + _body + + + + + + _sendheader + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-response-abstract; + +
+ + diff --git a/zh/yaf-route-interface.xml b/zh/yaf-route-interface.xml new file mode 100644 index 0000000..c23a1aa --- /dev/null +++ b/zh/yaf-route-interface.xml @@ -0,0 +1,67 @@ + + + + + + The Yaf_Route_Interface class + Yaf_Route_Interface + + + + +
+ &reftitle.intro; + + Yaf_Route_Interface 用于开发者自定义自己的路由。 + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Route_Interface + + + + + Yaf_Route_Interface + + + + + &Methods; + + + + +
+ +
+ + &reference.yaf.entities.yaf-route-interface; + +
+ + diff --git a/zh/yaf-route-map.xml b/zh/yaf-route-map.xml new file mode 100644 index 0000000..bb52fd9 --- /dev/null +++ b/zh/yaf-route-map.xml @@ -0,0 +1,103 @@ + + + + + + The Yaf_Route_Map class + Yaf_Route_Map + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Route_Map + + + + + Yaf_Route_Map + + + + Yaf_Route_Interface + + + + &Properties; + + protected + _ctl_router + + + protected + _delimeter + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _ctl_router + + + + + + _delimeter + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-route-map; + +
+ + diff --git a/zh/yaf-route-regex.xml b/zh/yaf-route-regex.xml new file mode 100644 index 0000000..87a9094 --- /dev/null +++ b/zh/yaf-route-regex.xml @@ -0,0 +1,131 @@ + + + + + + The Yaf_Route_Regex class + Yaf_Route_Regex + + + + +
+ &reftitle.intro; + + Yaf_Route_Regex 在Yaf内建的路由种是最灵活的。 +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Route_Regex + + + + + Yaf_Route_Regex + + + + extends + Yaf_Route_Interface + + + + Yaf_Route_Interface + + + + &Properties; + + protected + _route + + + protected + _default + + + protected + _maps + + + protected + _verify + + + + &Methods; + + + &InheritedMethods; + + + + + +
+ + + +
+ &reftitle.properties; + + + _route + + + + + + _default + + + + + + _maps + + + + + + _verify + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-route-regex; + +
+ + diff --git a/zh/yaf_registry/clone.xml b/zh/yaf_registry/clone.xml new file mode 100644 index 0000000..995027c --- /dev/null +++ b/zh/yaf_registry/clone.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Registry::__clone + The __clone purpose + + + + &reftitle.description; + + private voidYaf_Registry::__clone + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_registry/construct.xml b/zh/yaf_registry/construct.xml new file mode 100644 index 0000000..c2865df --- /dev/null +++ b/zh/yaf_registry/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Registry::__construct + The __construct purpose + + + + &reftitle.description; + + Yaf_Registry::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_registry/del.xml b/zh/yaf_registry/del.xml new file mode 100644 index 0000000..1b98e4e --- /dev/null +++ b/zh/yaf_registry/del.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Registry::del + The del purpose + + + + &reftitle.description; + + public static voidYaf_Registry::del + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_registry/get.xml b/zh/yaf_registry/get.xml new file mode 100644 index 0000000..7fbc0aa --- /dev/null +++ b/zh/yaf_registry/get.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Registry::get + The get purpose + + + + &reftitle.description; + + public static voidYaf_Registry::get + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_registry/has.xml b/zh/yaf_registry/has.xml new file mode 100644 index 0000000..7a39c87 --- /dev/null +++ b/zh/yaf_registry/has.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Registry::has + The has purpose + + + + &reftitle.description; + + public static voidYaf_Registry::has + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_registry/set.xml b/zh/yaf_registry/set.xml new file mode 100644 index 0000000..1030ace --- /dev/null +++ b/zh/yaf_registry/set.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Registry::set + The set purpose + + + + &reftitle.description; + + public static voidYaf_Registry::set + stringname + stringvalue + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + value + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getactionname.xml b/zh/yaf_request_abstract/getactionname.xml new file mode 100644 index 0000000..32a72dd --- /dev/null +++ b/zh/yaf_request_abstract/getactionname.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::getActionName + The getActionName purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getActionName + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getbaseuri.xml b/zh/yaf_request_abstract/getbaseuri.xml new file mode 100644 index 0000000..d16ae25 --- /dev/null +++ b/zh/yaf_request_abstract/getbaseuri.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::getBaseUri + The getBaseUri purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getBaseUri + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getcontrollername.xml b/zh/yaf_request_abstract/getcontrollername.xml new file mode 100644 index 0000000..90630f6 --- /dev/null +++ b/zh/yaf_request_abstract/getcontrollername.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::getControllerName + The getControllerName purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getControllerName + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getenv.xml b/zh/yaf_request_abstract/getenv.xml new file mode 100644 index 0000000..a2ea4e5 --- /dev/null +++ b/zh/yaf_request_abstract/getenv.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Request_Abstract::getEnv + The getEnv purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getEnv + stringname + stringdefault + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + default + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getexception.xml b/zh/yaf_request_abstract/getexception.xml new file mode 100644 index 0000000..0545db6 --- /dev/null +++ b/zh/yaf_request_abstract/getexception.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::getException + The getException purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getException + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getlanguage.xml b/zh/yaf_request_abstract/getlanguage.xml new file mode 100644 index 0000000..afe8545 --- /dev/null +++ b/zh/yaf_request_abstract/getlanguage.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::getLanguage + The getLanguage purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getLanguage + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getmethod.xml b/zh/yaf_request_abstract/getmethod.xml new file mode 100644 index 0000000..2729508 --- /dev/null +++ b/zh/yaf_request_abstract/getmethod.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::getMethod + The getMethod purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getMethod + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getmodulename.xml b/zh/yaf_request_abstract/getmodulename.xml new file mode 100644 index 0000000..5596833 --- /dev/null +++ b/zh/yaf_request_abstract/getmodulename.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::getModuleName + The getModuleName purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getModuleName + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getparam.xml b/zh/yaf_request_abstract/getparam.xml new file mode 100644 index 0000000..dd01d83 --- /dev/null +++ b/zh/yaf_request_abstract/getparam.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Request_Abstract::getParam + The getParam purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getParam + stringname + stringdefault + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + default + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getparams.xml b/zh/yaf_request_abstract/getparams.xml new file mode 100644 index 0000000..f16334c --- /dev/null +++ b/zh/yaf_request_abstract/getparams.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::getParams + The getParams purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getParams + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getrequesturi.xml b/zh/yaf_request_abstract/getrequesturi.xml new file mode 100644 index 0000000..cc0b43a --- /dev/null +++ b/zh/yaf_request_abstract/getrequesturi.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::getRequestUri + The getRequestUri purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getRequestUri + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/getserver.xml b/zh/yaf_request_abstract/getserver.xml new file mode 100644 index 0000000..684648d --- /dev/null +++ b/zh/yaf_request_abstract/getserver.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Request_Abstract::getServer + The getServer purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::getServer + stringname + stringdefault + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + default + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/iscli.xml b/zh/yaf_request_abstract/iscli.xml new file mode 100644 index 0000000..4557291 --- /dev/null +++ b/zh/yaf_request_abstract/iscli.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::isCli + The isCli purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::isCli + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/isdispatched.xml b/zh/yaf_request_abstract/isdispatched.xml new file mode 100644 index 0000000..bd47e37 --- /dev/null +++ b/zh/yaf_request_abstract/isdispatched.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::isDispatched + The isDispatched purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::isDispatched + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/isget.xml b/zh/yaf_request_abstract/isget.xml new file mode 100644 index 0000000..f579989 --- /dev/null +++ b/zh/yaf_request_abstract/isget.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::isGet + The isGet purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::isGet + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/ishead.xml b/zh/yaf_request_abstract/ishead.xml new file mode 100644 index 0000000..875b152 --- /dev/null +++ b/zh/yaf_request_abstract/ishead.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::isHead + The isHead purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::isHead + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/isoptions.xml b/zh/yaf_request_abstract/isoptions.xml new file mode 100644 index 0000000..1d7f151 --- /dev/null +++ b/zh/yaf_request_abstract/isoptions.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::isOptions + The isOptions purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::isOptions + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/ispost.xml b/zh/yaf_request_abstract/ispost.xml new file mode 100644 index 0000000..feff5c7 --- /dev/null +++ b/zh/yaf_request_abstract/ispost.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::isPost + The isPost purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::isPost + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/isput.xml b/zh/yaf_request_abstract/isput.xml new file mode 100644 index 0000000..b42257c --- /dev/null +++ b/zh/yaf_request_abstract/isput.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::isPut + The isPut purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::isPut + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/isrouted.xml b/zh/yaf_request_abstract/isrouted.xml new file mode 100644 index 0000000..7e4b01a --- /dev/null +++ b/zh/yaf_request_abstract/isrouted.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::isRouted + The isRouted purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::isRouted + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/isxmlhttprequest.xml b/zh/yaf_request_abstract/isxmlhttprequest.xml new file mode 100644 index 0000000..94ec46d --- /dev/null +++ b/zh/yaf_request_abstract/isxmlhttprequest.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::isXmlHttpRequest + The isXmlHttpRequest purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::isXmlHttpRequest + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/setactionname.xml b/zh/yaf_request_abstract/setactionname.xml new file mode 100644 index 0000000..6205f92 --- /dev/null +++ b/zh/yaf_request_abstract/setactionname.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Request_Abstract::setActionName + The setActionName purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::setActionName + stringaction + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + action + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/setbaseuri.xml b/zh/yaf_request_abstract/setbaseuri.xml new file mode 100644 index 0000000..8620f00 --- /dev/null +++ b/zh/yaf_request_abstract/setbaseuri.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Request_Abstract::setBaseUri + The setBaseUri purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::setBaseUri + stringuir + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + uir + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/setcontrollername.xml b/zh/yaf_request_abstract/setcontrollername.xml new file mode 100644 index 0000000..f220e5e --- /dev/null +++ b/zh/yaf_request_abstract/setcontrollername.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Request_Abstract::setControllerName + The setControllerName purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::setControllerName + stringcontroller + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + controller + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/setdispatched.xml b/zh/yaf_request_abstract/setdispatched.xml new file mode 100644 index 0000000..7d314ed --- /dev/null +++ b/zh/yaf_request_abstract/setdispatched.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Abstract::setDispatched + The setDispatched purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::setDispatched + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/setmodulename.xml b/zh/yaf_request_abstract/setmodulename.xml new file mode 100644 index 0000000..54c39b8 --- /dev/null +++ b/zh/yaf_request_abstract/setmodulename.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Request_Abstract::setModuleName + The setModuleName purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::setModuleName + stringmodule + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + module + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/setparam.xml b/zh/yaf_request_abstract/setparam.xml new file mode 100644 index 0000000..3b22a50 --- /dev/null +++ b/zh/yaf_request_abstract/setparam.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Request_Abstract::setParam + The setParam purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::setParam + stringname + stringvalue + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + value + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/setrequesturi.xml b/zh/yaf_request_abstract/setrequesturi.xml new file mode 100644 index 0000000..ce2a97a --- /dev/null +++ b/zh/yaf_request_abstract/setrequesturi.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Request_Abstract::setRequestUri + The setRequestUri purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::setRequestUri + stringuir + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + uir + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_abstract/setrouted.xml b/zh/yaf_request_abstract/setrouted.xml new file mode 100644 index 0000000..38daae3 --- /dev/null +++ b/zh/yaf_request_abstract/setrouted.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Request_Abstract::setRouted + The setRouted purpose + + + + &reftitle.description; + + public voidYaf_Request_Abstract::setRouted + stringflag + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + flag + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_http/clone.xml b/zh/yaf_request_http/clone.xml new file mode 100644 index 0000000..dbd2a84 --- /dev/null +++ b/zh/yaf_request_http/clone.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Http::__clone + The __clone purpose + + + + &reftitle.description; + + private voidYaf_Request_Http::__clone + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_http/construct.xml b/zh/yaf_request_http/construct.xml new file mode 100644 index 0000000..fbc52d8 --- /dev/null +++ b/zh/yaf_request_http/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Http::__construct + The __construct purpose + + + + &reftitle.description; + + Yaf_Request_Http::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_http/get.xml b/zh/yaf_request_http/get.xml new file mode 100644 index 0000000..06d5004 --- /dev/null +++ b/zh/yaf_request_http/get.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Http::get + The get purpose + + + + &reftitle.description; + + public voidYaf_Request_Http::get + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_http/getcookie.xml b/zh/yaf_request_http/getcookie.xml new file mode 100644 index 0000000..7faf4ae --- /dev/null +++ b/zh/yaf_request_http/getcookie.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Http::getCookie + The getCookie purpose + + + + &reftitle.description; + + public voidYaf_Request_Http::getCookie + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_http/getfiles.xml b/zh/yaf_request_http/getfiles.xml new file mode 100644 index 0000000..e4239d4 --- /dev/null +++ b/zh/yaf_request_http/getfiles.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Http::getFiles + The getFiles purpose + + + + &reftitle.description; + + public voidYaf_Request_Http::getFiles + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_http/getpost.xml b/zh/yaf_request_http/getpost.xml new file mode 100644 index 0000000..443aa7d --- /dev/null +++ b/zh/yaf_request_http/getpost.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Http::getPost + The getPost purpose + + + + &reftitle.description; + + public voidYaf_Request_Http::getPost + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_http/getquery.xml b/zh/yaf_request_http/getquery.xml new file mode 100644 index 0000000..cd3ea09 --- /dev/null +++ b/zh/yaf_request_http/getquery.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Http::getQuery + fetch a query parameter + + + + &reftitle.description; + + public voidYaf_Request_Http::getQuery + + + + Fetch a query parameter in $_GET. + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_http/getrequest.xml b/zh/yaf_request_http/getrequest.xml new file mode 100644 index 0000000..03cc816 --- /dev/null +++ b/zh/yaf_request_http/getrequest.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Http::getRequest + The getRequest purpose + + + + &reftitle.description; + + public voidYaf_Request_Http::getRequest + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_http/isxmlhttprequest.xml b/zh/yaf_request_http/isxmlhttprequest.xml new file mode 100644 index 0000000..de43c75 --- /dev/null +++ b/zh/yaf_request_http/isxmlhttprequest.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Http::isXmlHttpRequest + The isXmlHttpRequest purpose + + + + &reftitle.description; + + public voidYaf_Request_Http::isXmlHttpRequest + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_simple/clone.xml b/zh/yaf_request_simple/clone.xml new file mode 100644 index 0000000..85a0155 --- /dev/null +++ b/zh/yaf_request_simple/clone.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Simple::__clone + The __clone purpose + + + + &reftitle.description; + + private voidYaf_Request_Simple::__clone + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_simple/construct.xml b/zh/yaf_request_simple/construct.xml new file mode 100644 index 0000000..275a230 --- /dev/null +++ b/zh/yaf_request_simple/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Simple::__construct + The __construct purpose + + + + &reftitle.description; + + Yaf_Request_Simple::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_simple/get.xml b/zh/yaf_request_simple/get.xml new file mode 100644 index 0000000..6684b95 --- /dev/null +++ b/zh/yaf_request_simple/get.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Simple::get + The get purpose + + + + &reftitle.description; + + public voidYaf_Request_Simple::get + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_simple/getcookie.xml b/zh/yaf_request_simple/getcookie.xml new file mode 100644 index 0000000..454b967 --- /dev/null +++ b/zh/yaf_request_simple/getcookie.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Simple::getCookie + The getCookie purpose + + + + &reftitle.description; + + public voidYaf_Request_Simple::getCookie + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_simple/getfiles.xml b/zh/yaf_request_simple/getfiles.xml new file mode 100644 index 0000000..b62f60f --- /dev/null +++ b/zh/yaf_request_simple/getfiles.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Simple::getFiles + The getFiles purpose + + + + &reftitle.description; + + public voidYaf_Request_Simple::getFiles + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_simple/getpost.xml b/zh/yaf_request_simple/getpost.xml new file mode 100644 index 0000000..87d630a --- /dev/null +++ b/zh/yaf_request_simple/getpost.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Simple::getPost + The getPost purpose + + + + &reftitle.description; + + public voidYaf_Request_Simple::getPost + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_simple/getquery.xml b/zh/yaf_request_simple/getquery.xml new file mode 100644 index 0000000..b2967c5 --- /dev/null +++ b/zh/yaf_request_simple/getquery.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Simple::getQuery + The getQuery purpose + + + + &reftitle.description; + + public voidYaf_Request_Simple::getQuery + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_simple/getrequest.xml b/zh/yaf_request_simple/getrequest.xml new file mode 100644 index 0000000..860959c --- /dev/null +++ b/zh/yaf_request_simple/getrequest.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Simple::getRequest + The getRequest purpose + + + + &reftitle.description; + + public voidYaf_Request_Simple::getRequest + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_request_simple/isxmlhttprequest.xml b/zh/yaf_request_simple/isxmlhttprequest.xml new file mode 100644 index 0000000..2c6d483 --- /dev/null +++ b/zh/yaf_request_simple/isxmlhttprequest.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Request_Simple::isXmlHttpRequest + The isXmlHttpRequest purpose + + + + &reftitle.description; + + public voidYaf_Request_Simple::isXmlHttpRequest + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/.DS_Store b/zh/yaf_response_abstract/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..9c4f340d5486f00ee9c04a1f011ff769586362dd GIT binary patch literal 6148 zcmeHKOHRWu5FJAog|@WpSZ2uzi5o;!L1GIRplzyBDG=0;RCYNAhvER-2HuPZWVcDx z6{^roF6UuD-sJtAr%F*Z)&DvY0V+Oi`p=>na!@j@AmsDOXls%-_P zfGKcj3h=jkMnihVHKFkPy`nWeQ+}5h<56CWP>&ahTcpb`G31CkG^QNPAlGtbR6dydk@dSPQhkvuK9- zG_9URJgyNBgLP1bJ)5oB@@U=^Fa=D3Uj=x5NRSv)#nPiJ9dL3405(u8hCKf!Fegz= z6-$qJ0&|`U^i-!u4Cm=6PqbdDSbFqya(ei1+OyLWij&^aej?S$r5??j0;WK$z_GvW z@&12PfBuh2c4rEh0{=<@*BCqu`Upw))~(=puT791k=VFi=}{ + + + + + Yaf_Response_Abstract::appendBody + The appendBody purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::appendBody + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/clearbody.xml b/zh/yaf_response_abstract/clearbody.xml new file mode 100644 index 0000000..9be0030 --- /dev/null +++ b/zh/yaf_response_abstract/clearbody.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::clearBody + The clearBody purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::clearBody + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/clearheaders.xml b/zh/yaf_response_abstract/clearheaders.xml new file mode 100644 index 0000000..b063340 --- /dev/null +++ b/zh/yaf_response_abstract/clearheaders.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::clearHeaders + The clearHeaders purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::clearHeaders + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/clone.xml b/zh/yaf_response_abstract/clone.xml new file mode 100644 index 0000000..b0bfea2 --- /dev/null +++ b/zh/yaf_response_abstract/clone.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::__clone + The __clone purpose + + + + &reftitle.description; + + private voidYaf_Response_Abstract::__clone + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/construct.xml b/zh/yaf_response_abstract/construct.xml new file mode 100644 index 0000000..04d2ab2 --- /dev/null +++ b/zh/yaf_response_abstract/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::__construct + The __construct purpose + + + + &reftitle.description; + + public Yaf_Response_Abstract::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/destruct.xml b/zh/yaf_response_abstract/destruct.xml new file mode 100644 index 0000000..aacd308 --- /dev/null +++ b/zh/yaf_response_abstract/destruct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::__destruct + The __destruct purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::__destruct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/getbody.xml b/zh/yaf_response_abstract/getbody.xml new file mode 100644 index 0000000..3afe99c --- /dev/null +++ b/zh/yaf_response_abstract/getbody.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::getBody + The getBody purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::getBody + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/getheader.xml b/zh/yaf_response_abstract/getheader.xml new file mode 100644 index 0000000..7eb77c9 --- /dev/null +++ b/zh/yaf_response_abstract/getheader.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::getHeader + The getHeader purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::getHeader + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/prependbody.xml b/zh/yaf_response_abstract/prependbody.xml new file mode 100644 index 0000000..aa0b869 --- /dev/null +++ b/zh/yaf_response_abstract/prependbody.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::prependBody + The prependBody purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::prependBody + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/response.xml b/zh/yaf_response_abstract/response.xml new file mode 100644 index 0000000..f21518d --- /dev/null +++ b/zh/yaf_response_abstract/response.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::response + The response purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::response + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/setallheaders.xml b/zh/yaf_response_abstract/setallheaders.xml new file mode 100644 index 0000000..46ff244 --- /dev/null +++ b/zh/yaf_response_abstract/setallheaders.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::setAllHeaders + The setAllHeaders purpose + + + + &reftitle.description; + + protected voidYaf_Response_Abstract::setAllHeaders + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/setbody.xml b/zh/yaf_response_abstract/setbody.xml new file mode 100644 index 0000000..8a46d86 --- /dev/null +++ b/zh/yaf_response_abstract/setbody.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::setBody + The setBody purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::setBody + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/setheader.xml b/zh/yaf_response_abstract/setheader.xml new file mode 100644 index 0000000..16adfdd --- /dev/null +++ b/zh/yaf_response_abstract/setheader.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::setHeader + The setHeader purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::setHeader + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/setredirect.xml b/zh/yaf_response_abstract/setredirect.xml new file mode 100644 index 0000000..339e528 --- /dev/null +++ b/zh/yaf_response_abstract/setredirect.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::setRedirect + The setRedirect purpose + + + + &reftitle.description; + + public voidYaf_Response_Abstract::setRedirect + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_response_abstract/tostring.xml b/zh/yaf_response_abstract/tostring.xml new file mode 100644 index 0000000..0639be0 --- /dev/null +++ b/zh/yaf_response_abstract/tostring.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Response_Abstract::__toString + The __toString purpose + + + + &reftitle.description; + + private voidYaf_Response_Abstract::__toString + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_route_interface/route.xml b/zh/yaf_route_interface/route.xml new file mode 100644 index 0000000..45e8fc3 --- /dev/null +++ b/zh/yaf_route_interface/route.xml @@ -0,0 +1,82 @@ + + + + + + Yaf_Route_Interface::route + 路由一个请求 + + + + &reftitle.description; + + abstract public boolYaf_Route_Interface::route + Yaf_Request_Abstractrequest + + + Yaf_Route_Interface::route 这是唯一一个自定义路由必须实现的方法。 + + + 如果这个方法返回TRUE,那么路由过程将会结束。另外, + Yaf_Router 会调用在路由堆栈中的下一个路由去路由请求。 + + + + 这个方法将会设置路由结果为请求的参数,通过调用这个几个方法: + Yaf_Request_Abstract::setControllerName, + Yaf_Request_Abstract::setActionName 和 + Yaf_Request_Abstract::setModuleName. + + + + 这个方法也将会调用 + Yaf_Request_Abstract::setRouted 最终使得请求被路由。 + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + A Yaf_Request_Abstract instance. + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_route_map/construct.xml b/zh/yaf_route_map/construct.xml new file mode 100644 index 0000000..6d5a2d9 --- /dev/null +++ b/zh/yaf_route_map/construct.xml @@ -0,0 +1,170 @@ + + + + + + Yaf_Route_Map::__construct + The __construct purpose + + + + &reftitle.description; + + public Yaf_Route_Map::__construct + stringcontroller_preferfalse + stringdelimiter'' + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + controller_prefer + + + 路由结果是否被当做controller或则action + Whether the result should considering as controller or action + + + + + delimiter + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Route_Map</function>example + +getRouter()->addRoute("name", + new Yaf_Route_Map()); +?> +]]> + + &example.outputs.similar; + + "product_foo_bar", +) +]]> + + + + <function>Yaf_Route_Map</function>example + +getRouter()->addRoute("name", + new Yaf_Route_Map(true, "_")); +?> +]]> + + &example.outputs.similar; + + "user_list", +) + +/** + * 请求参数: + */ +array( + "foo" => 22, +) +]]> + + + + <function>Yaf_Route_Map</function>example + + array( + "type" => "map", //Yaf_Route_Map route + "controllerPrefer" => FALSE, + "delimiter" => "#!", + ), + ); + Yaf_Dispatcher::getInstance()->getRouter()->addConfig( + new Yaf_Config_Simple($config)); +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_Router::addRoute + Yaf_Route_Static + Yaf_Route_Supervar + Yaf_Route_Simple + Yaf_Route_Regex + Yaf_Route_Rewrite + + + + + + diff --git a/zh/yaf_route_map/route.xml b/zh/yaf_route_map/route.xml new file mode 100644 index 0000000..ed51110 --- /dev/null +++ b/zh/yaf_route_map/route.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Route_Map::route + The route purpose + + + + &reftitle.description; + + public boolYaf_Route_Map::route + Yaf_Request_Abstractrequest + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_route_regex/construct.xml b/zh/yaf_route_regex/construct.xml new file mode 100644 index 0000000..637f862 --- /dev/null +++ b/zh/yaf_route_regex/construct.xml @@ -0,0 +1,167 @@ + + + + + + Yaf_Route_Regex::__construct + The __construct purpose + + + + &reftitle.description; + + publicYaf_Route_Regex::__construct + stringmatch + arrayroute + arraymap + arrayverify + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + match + + + 一个完整的正则表达式模式,将用来匹配请求的uri,如果不能被匹配, + Yaf_Route_Regex 将会返回FALSE. + + + + + route + + + 当匹配模式能匹配请求的uri, + Yaf_Route_Regex 将会由此来决定:m/c/a种的哪个被路由。 + + + 任何m/c/a在这个数组中是可选的,如果你不分配一个特殊的值uoqu,它将会 + 被路由到默认的参数。 + + + + + map + + + 在匹配结果里,分配一个数组的名字给捕获器。 + + + + + verify + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Route_Regex</function>example + +getRouter()->addRoute("name", + new Yaf_Route_Regex( + "#^/product/([^/]+)/([^/])+#", //匹配结果的uri引导"/product", + array( + 'controller' => "product", //路由到product controller, + ), + array( + 1 => "name", // 现在你可以调用 $request->getParam("name") + 2 => "id", // + )在匹配模式里获取第一个捕获器 + ) + ); +?> +]]> + + + + <function>Yaf_Route_Regex</function>example + + array( + "type" => "regex", //Yaf_Route_Regex 路由 + "match" => "#(.*)#", //撇配人气请求的uri + "route" => array( + 'controller' => "product", //路由到 product controller, + 'action' => "dummy", //路由到 dummy action + ), + "map" => array( + 1 => "uri", // 现在你可以调用$request->getParam("uri") + ), + ), + ); + Yaf_Dispatcher::getInstance()->getRouter()->addConfig( + new Yaf_Config_Simple($config)); +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_Router::addRoute + Yaf_Router::addConfig + Yaf_Route_Static + Yaf_Route_Supervar + Yaf_Route_Simple + Yaf_Route_Rewrite + Yaf_Route_Map + + + + + + diff --git a/zh/yaf_route_regex/route.xml b/zh/yaf_route_regex/route.xml new file mode 100644 index 0000000..2f1f0b4 --- /dev/null +++ b/zh/yaf_route_regex/route.xml @@ -0,0 +1,69 @@ + + + + + + Yaf_Route_Regex::route + The route purpose + + + + &reftitle.description; + + public boolYaf_Route_Regex::route + Yaf_Request_Abstractrequest + + + 路由一个传入的请求。 + Route a incoming request. + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + + + + &reftitle.returnvalues; + + 如果正则模式由Yaf_Route_Regex::_construct的 + 参数提供,匹配请求的uri,返回TRUE,否则返回FALSE。 + + + + + + + diff --git a/zh/yaf_view_interface/.DS_Store b/zh/yaf_view_interface/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 Date: Thu, 26 Jul 2012 17:01:32 +0800 Subject: [PATCH 23/26] regex refex --- zh/yaf_route_regex/route.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/yaf_route_regex/route.xml b/zh/yaf_route_regex/route.xml index 2f1f0b4..570ef63 100644 --- a/zh/yaf_route_regex/route.xml +++ b/zh/yaf_route_regex/route.xml @@ -40,7 +40,7 @@ &reftitle.returnvalues; 如果正则模式由Yaf_Route_Regex::_construct的 - 参数提供,匹配请求的uri,返回TRUE,否则返回FALSE。 + 参数构成,匹配请求的uri,返回TRUE,否则返回FALSE。 From 838a0e098b97890656cc49a0ae024e493c08aefb Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Thu, 26 Jul 2012 17:40:04 +0800 Subject: [PATCH 24/26] rewrite&router part --- zh/yaf-route-rewrite.xml | 122 +++++++++++++++ zh/yaf-router.xml | 234 +++++++++++++++++++++++++++++ zh/yaf_route_rewrite/construct.xml | 194 ++++++++++++++++++++++++ zh/yaf_route_rewrite/route.xml | 67 +++++++++ zh/yaf_router/addconfig.xml | 134 +++++++++++++++++ zh/yaf_router/addroute.xml | 128 ++++++++++++++++ zh/yaf_router/construct.xml | 58 +++++++ zh/yaf_router/getcurrentroute.xml | 153 +++++++++++++++++++ zh/yaf_router/getroute.xml | 58 +++++++ zh/yaf_router/getroutes.xml | 58 +++++++ zh/yaf_router/route.xml | 58 +++++++ 11 files changed, 1264 insertions(+) create mode 100644 zh/yaf-route-rewrite.xml create mode 100644 zh/yaf-router.xml create mode 100644 zh/yaf_route_rewrite/construct.xml create mode 100644 zh/yaf_route_rewrite/route.xml create mode 100644 zh/yaf_router/addconfig.xml create mode 100644 zh/yaf_router/addroute.xml create mode 100644 zh/yaf_router/construct.xml create mode 100644 zh/yaf_router/getcurrentroute.xml create mode 100644 zh/yaf_router/getroute.xml create mode 100644 zh/yaf_router/getroutes.xml create mode 100644 zh/yaf_router/route.xml diff --git a/zh/yaf-route-rewrite.xml b/zh/yaf-route-rewrite.xml new file mode 100644 index 0000000..b3af720 --- /dev/null +++ b/zh/yaf-route-rewrite.xml @@ -0,0 +1,122 @@ + + + + + + The Yaf_Route_Rewrite class + Yaf_Route_Rewrite + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Route_Rewrite + + + + + Yaf_Route_Rewrite + + + + extends + Yaf_Route_Interface + + + + Yaf_Route_Interface + + + + &Properties; + + protected + _route + + + protected + _default + + + protected + _verify + + + + &Methods; + + + &InheritedMethods; + + + + + +
+ + + +
+ &reftitle.properties; + + + _route + + + + + + _default + + + + + + _verify + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-route-rewrite; + +
+ + diff --git a/zh/yaf-router.xml b/zh/yaf-router.xml new file mode 100644 index 0000000..acf127f --- /dev/null +++ b/zh/yaf-router.xml @@ -0,0 +1,234 @@ + + + + + + The Yaf_Router class + Yaf_Router + + + + +
+ &reftitle.intro; + + Yaf_Router is the standard framework router. Routing is + the process of taking a URI endpoint (that part of the URI which comes + after the base URL) and decomposing it into parameters to determine which + module, controller, and action of that controller should receive the + request. This values of the module, controller, action and other parameters + are packaged into a Yaf_Request_Abstract object which is then + processed by Yaf_Dispatcher. Routing occurs only once: + when the request is initially received and before the first controller is + dispatched. + + Yaf_Router is designed to allow for mod_rewrite-like + functionality using pure PHP structures. It is very loosely based on Ruby + on Rails routing and does not require any prior knowledge of webserver URL + rewriting. It is designed to work with a single Apache mod_rewrite rule + (one of): + + Rewrite rule for Apache + + + + + or (preferred): + + Rewrite rule for Apache + + + + + If using Lighttpd, the following rewrite rule is valid: + + Rewrite rule for Lighttpd + + "/index.php?$1", + ".*\.(js|ico|gif|jpg|png|css|html)$" => "$0", + "" => "/index.php" +) +]]> + + + If using Nginx, use the following rewrite rule: + + Rewrite rule for Nginx + + + + + +
+ + +
+ Default route + + Yaf_Router comes preconfigured with a default route, which + will match URIs in the shape of controller/action. Additionally, a module + name may be specified as the first path element, allowing URIs of the form + module/controller/action. Finally, it will also match any additional + parameters appended to the URI by default - + controller/action/var1/value1/var2/value2. + + + Module name must be defined in config, considering application.module="Index,Foo,Bar", + in this case, only index, foo and bar can be considerd as a module name. + if doesn't config, there is only one module named "Index". + + + + + + Some examples of how such routes are matched: + + <classname>Yaf_Route_Static</classname>(default + route)example + + array( + "modules" => "Index,Blog", + ), +); + +Controller only: +http://example/news + controller == news +Action only(when defined yaf.action_prefer=1 in php.ini) + action == news + +Invalid module maps to controller name: +http://example/foo + controller == foo + +Module + controller: +http://example/blog/archive + module == blog + controller == archive + +Module + controller + action: +http://example/blog/archive/list + module == blog + controller == archive + action == list + +Module + controller + action + params: +http://example/blog/archive/list/sort/alpha/date/desc + module == blog + controller == archive + action == list + sort == alpha + date == desc +]]> + + + + +
+ +
+ &reftitle.classsynopsis; + + + + Yaf_Router + + + + + Yaf_Router + + + + &Properties; + + protected + _routes + + + protected + _current + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _routes + + + + + + _current + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-router; + +
+ + diff --git a/zh/yaf_route_rewrite/construct.xml b/zh/yaf_route_rewrite/construct.xml new file mode 100644 index 0000000..6956808 --- /dev/null +++ b/zh/yaf_route_rewrite/construct.xml @@ -0,0 +1,194 @@ + + + + + + Yaf_Route_Rewrite::__construct + The __construct purpose + + + + &reftitle.description; + + publicYaf_Route_Rewrite::__construct + stringmatch + arrayroute + arrayverify + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + match + + + 一个完整的正则表达式模式,将用来匹配请求的uri,如果不能被匹配, + Yaf_Route_Rewrite 将会返回FALSE. + FALSE. + + + + + route + + + 当匹配模式能匹配请求的uri, + Yaf_Route_Rewrite 将会由此来决定:m/c/a种的哪个被路由。 + + + 任何m/c/a在这个数组中是可选的,如果你不分配一个特殊的值uoqu,它将会 + 被路由到默认的参数。 + + + + + verify + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Route_Rewrite</function>example + +getRouter()->addRoute("name", + new Yaf_Route_rewrite( + "/product/:name/:id/*", //match request uri leading "/product" + array( + 'controller' => "product", //route to product controller, + ), + ) + ); +?> +]]> + + &example.outputs.similar; + + "product", + "module" => "index", //(default) + "action" => "index", //(default) +) + +/** + * and request parameters: + */ +array( + "name" => "foo", + "id" => 22, + "foo" => bar +) +]]> + + + + <function>Yaf_Route_Rewrite</function>example + + array( + "type" => "rewrite", //Yaf_Route_Rewrite route + "match" => "/user-list/:id", //match only /user/list/?/ + "route" => array( + 'controller' => "user", //route to user controller, + 'action' => "list", //route to list action + ), + ), + ); + Yaf_Dispatcher::getInstance()->getRouter()->addConfig( + new Yaf_Config_Simple($config)); +?> +]]> + + &example.outputs.similar; + + "user", + "action" => "list", + "module" => "index", //(default) +) + +/** + * and request parameters: + */ +array( + "id" => 22, +) +]]> + + + + + + &reftitle.seealso; + + Yaf_Router::addRoute + Yaf_Router::addConfig + Yaf_Route_Static + Yaf_Route_Supervar + Yaf_Route_Simple + Yaf_Route_Regex + Yaf_Route_Map + + + + + + diff --git a/zh/yaf_route_rewrite/route.xml b/zh/yaf_route_rewrite/route.xml new file mode 100644 index 0000000..77350d3 --- /dev/null +++ b/zh/yaf_route_rewrite/route.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Route_Rewrite::route + The route purpose + + + + &reftitle.description; + + public boolYaf_Route_Rewrite::route + Yaf_Request_Abstractrequest + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_router/addconfig.xml b/zh/yaf_router/addconfig.xml new file mode 100644 index 0000000..31596c4 --- /dev/null +++ b/zh/yaf_router/addconfig.xml @@ -0,0 +1,134 @@ + + + + + + Yaf_Router::addConfig + Add config-defined routes into Router + + + + &reftitle.description; + + public voidYaf_Router::addConfig + Yaf_Config_Abstractconfig + + + Add Routes defined in application.ini into + Yaf_Router's route stack + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>application.ini</function>example + + + + + + <function>Yaf_Dispatcher::autoConfig</function>example + +getConfig(); + Yaf_Registry::set("config", $config); + } + + public function _initRoute(Yaf_Dispatcher $dispatcher) { + $router = $dispatcher->getRouter(); + /** + * we can add some pre-defined routes in application.ini + */ + $router->addConfig(Yaf_Registry::get("config")->routes); + } +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_Router::addRoute + Yaf_Route_Static + Yaf_Route_Supervar + Yaf_Route_Simple + Yaf_Route_Regex + Yaf_Route_Rewrite + Yaf_Route_Map + + + + + + diff --git a/zh/yaf_router/addroute.xml b/zh/yaf_router/addroute.xml new file mode 100644 index 0000000..5af0526 --- /dev/null +++ b/zh/yaf_router/addroute.xml @@ -0,0 +1,128 @@ + + + + + + Yaf_Router::addRoute + Add new Route into Router + + + + &reftitle.description; + + public Yaf_RouterYaf_Router::addRoute + stringname + Yaf_Route_Abstractroute + + + defaultly, Yaf_Router using a Yaf_Route_Static as its defualt route. you + can add new routes into Router's route stack by calling this method. + + + the newer route will be called before the older(route stack), and if the newer router return + TRUE, the router process will be end. otherwise, the older one will be + called. + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Dispatcher::autoRender</function>example + +getConfig(); + Yaf_Registry::set("config", $config); + } + + public function _initRoute(Yaf_Dispatcher $dispatcher) { + $router = $dispatcher->getRouter(); + /** + * we can add some pre-defined routes in application.ini + */ + $router->addConfig(Yaf_Registry::get("config")->routes); + /** + * add a Rewrite route, then for a request uri: + * http://***/product/list/22/foo + * will be matched by this route, and result: + * + * [module] => + * [controller] => product + * [action] => info + * [method] => GET + * [params:protected] => Array + * ( + * [id] => 22 + * [name] => foo + * ) + * + */ + $route = new Yaf_Route_Rewrite( + "/product/list/:id/:name", + array( + "controller" => "product", + "action" => "info", + ) + ); + + $router->addRoute('dummy', $route); + } +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_Router::addConfig + Yaf_Route_Static + Yaf_Route_Supervar + Yaf_Route_Simple + Yaf_Route_Regex + Yaf_Route_Rewrite + Yaf_Route_Map + + + + + + diff --git a/zh/yaf_router/construct.xml b/zh/yaf_router/construct.xml new file mode 100644 index 0000000..6c66a19 --- /dev/null +++ b/zh/yaf_router/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Router::__construct + Yaf_Router constructor + + + + &reftitle.description; + + publicYaf_Router::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_router/getcurrentroute.xml b/zh/yaf_router/getcurrentroute.xml new file mode 100644 index 0000000..d7d53ec --- /dev/null +++ b/zh/yaf_router/getcurrentroute.xml @@ -0,0 +1,153 @@ + + + + + + Yaf_Router::getCurrentRoute + Get the effective route name + + + + &reftitle.description; + + public stringYaf_Router::getCurrentRoute + + + + Get the name of the route which is effective in the route process. + + + You should call this method after the route process finished, since + before that, this method will always return NULL. + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + String, the name of the effective route. + + + + + &reftitle.examples; + + Register some routes in Bootstrap + +getConfig(); + Yaf_Registry::set("config", $config); + } + + public function _initRoute(Yaf_Dispatcher $dispatcher) { + $router = $dispatcher->getRouter(); + $rewrite_route = new Yaf_Route_Rewrite( + "/product/list/:page", + array( + "controller" => "product", + "action" => "list", + ) + ); + + $regex_route = new Yaf_Route_Rewrite( + "#^/product/info/(\d+)", + array( + "controller" => "product", + "action" => "info", + ) + ); + + $router->addRoute('rewrite', $rewrite_route)->addRoute('regex', $regex_route); + } + + /** + * register plugin + */ + public function __initPlugins(Yaf_Dispatcher $dispatcher) { + $dispatcher->registerPlugin(new DummyPlugin()); + } +?> +]]> + + + + plugin Dummy.php (under <link + linkend="configuration.yaf.directory">application.directory</link>/plugins) + +getRouter()->getCurrentRoute()); + } +?> +?> +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.seealso; + + Yaf_Bootstrap_Abstract + Yaf_Plugin_Abstract + Yaf_Router::addRoute + + + + + + diff --git a/zh/yaf_router/getroute.xml b/zh/yaf_router/getroute.xml new file mode 100644 index 0000000..67c3d49 --- /dev/null +++ b/zh/yaf_router/getroute.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Router::getRoute + The getRoute purpose + + + + &reftitle.description; + + public voidYaf_Router::getRoute + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_router/getroutes.xml b/zh/yaf_router/getroutes.xml new file mode 100644 index 0000000..059ae01 --- /dev/null +++ b/zh/yaf_router/getroutes.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Router::getRoutes + The getRoutes purpose + + + + &reftitle.description; + + public voidYaf_Router::getRoutes + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_router/route.xml b/zh/yaf_router/route.xml new file mode 100644 index 0000000..aa8c041 --- /dev/null +++ b/zh/yaf_router/route.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Router::route + The route purpose + + + + &reftitle.description; + + public boolYaf_Router::route + Yaf_Request_Abstractrequest + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + From b016444bfb031d39c7502e9e92c1caf17bef0989 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Thu, 26 Jul 2012 23:10:39 +0800 Subject: [PATCH 25/26] router simple translation --- zh/yaf-router.xml | 470 +++++++++++++++--------------- zh/yaf_router/addconfig.xml | 268 ++++++++--------- zh/yaf_router/addroute.xml | 255 ++++++++-------- zh/yaf_router/getcurrentroute.xml | 305 ++++++++++--------- 4 files changed, 649 insertions(+), 649 deletions(-) diff --git a/zh/yaf-router.xml b/zh/yaf-router.xml index acf127f..2fe32d3 100644 --- a/zh/yaf-router.xml +++ b/zh/yaf-router.xml @@ -1,234 +1,236 @@ - - - - - - The Yaf_Router class - Yaf_Router - - - - -
- &reftitle.intro; - - Yaf_Router is the standard framework router. Routing is - the process of taking a URI endpoint (that part of the URI which comes - after the base URL) and decomposing it into parameters to determine which - module, controller, and action of that controller should receive the - request. This values of the module, controller, action and other parameters - are packaged into a Yaf_Request_Abstract object which is then - processed by Yaf_Dispatcher. Routing occurs only once: - when the request is initially received and before the first controller is - dispatched. - - Yaf_Router is designed to allow for mod_rewrite-like - functionality using pure PHP structures. It is very loosely based on Ruby - on Rails routing and does not require any prior knowledge of webserver URL - rewriting. It is designed to work with a single Apache mod_rewrite rule - (one of): - - Rewrite rule for Apache - - - - - or (preferred): - - Rewrite rule for Apache - - - - - If using Lighttpd, the following rewrite rule is valid: - - Rewrite rule for Lighttpd - - "/index.php?$1", - ".*\.(js|ico|gif|jpg|png|css|html)$" => "$0", - "" => "/index.php" -) -]]> - - - If using Nginx, use the following rewrite rule: - - Rewrite rule for Nginx - - - - - -
- - -
- Default route - - Yaf_Router comes preconfigured with a default route, which - will match URIs in the shape of controller/action. Additionally, a module - name may be specified as the first path element, allowing URIs of the form - module/controller/action. Finally, it will also match any additional - parameters appended to the URI by default - - controller/action/var1/value1/var2/value2. - - - Module name must be defined in config, considering application.module="Index,Foo,Bar", - in this case, only index, foo and bar can be considerd as a module name. - if doesn't config, there is only one module named "Index". - - - - - - Some examples of how such routes are matched: - - <classname>Yaf_Route_Static</classname>(default - route)example - - array( - "modules" => "Index,Blog", - ), -); - -Controller only: -http://example/news - controller == news -Action only(when defined yaf.action_prefer=1 in php.ini) - action == news - -Invalid module maps to controller name: -http://example/foo - controller == foo - -Module + controller: -http://example/blog/archive - module == blog - controller == archive - -Module + controller + action: -http://example/blog/archive/list - module == blog - controller == archive - action == list - -Module + controller + action + params: -http://example/blog/archive/list/sort/alpha/date/desc - module == blog - controller == archive - action == list - sort == alpha - date == desc -]]> - - - - -
- -
- &reftitle.classsynopsis; - - - - Yaf_Router - - - - - Yaf_Router - - - - &Properties; - - protected - _routes - - - protected - _current - - - - &Methods; - - - - -
- - - -
- &reftitle.properties; - - - _routes - - - - - - _current - - - - - -
- - - -
- - &reference.yaf.entities.yaf-router; - -
- - + + + + + + The Yaf_Router class + Yaf_Router + + + + +
+ &reftitle.intro; + + Yaf_Router 是标准的框架路由器.路由是一个解析URI的过程 + (在基础URL之后的URI一部分)并且将其分解成参数以确定哪个module,controller, + controller的action将会接受那个请求。这个module或controller或action的只和 + 其它参数将会被打包进Yaf_Request_Abstract对象,此对象 + 之后被Yaf_Dispatcher处理。路由只发生一次: + 当请求在最初收到之前和第一个controller被调度之前。 + + Yaf_Router 被设计来使用纯php结构实现 + mod_rewrite的功能。他是非常松散的基于ruby on rails路由,并且 + 不需要预习任何 webserver Url重写的知识。 + 它的设计目的是与单一的apache mod_rewrite规则工作 + + is designed to allow for mod_rewrite-like + functionality using pure PHP structures. It is very loosely based on Ruby + on Rails routing and does not require any prior knowledge of webserver URL + rewriting. It is designed to work with a single Apache mod_rewrite rule + (one of): + + apache重写规则 + + + + + or (preferred): + + apache重写规则 + + + + + 如果使用lighttpd,下面的重写规则是有效的: + + Lighttpd重写规则 + + "/index.php?$1", + ".*\.(js|ico|gif|jpg|png|css|html)$" => "$0", + "" => "/index.php" +) +]]> + + + 如果使用nginx,使用如下的重写规则: + + Nginx重写规则 + + + + + +
+ + +
+ 默认路由 + + Yaf_Router预先配置了一个默认路由,这个默认路由将匹配 + controller/action呈现出来的URI的样式。此外, + 一个module名字可能会被指定为路径的第一个元素,允许 + module/controller/action类型的Uri。最后,默认情况下, + 它同样会匹配任何附加在URI上的额外的参数- + controller/action/var1/value1/var2/value2. + + + module名字必须在配置中定义,本例中认为application.module="Index,Foo,Bar", + 只有index,foo,bar可以被当作一个module名。 + 如果未配置,那么只有一个module名字"Index". + + + + + + 一些路由匹配的例子: + + <classname>Yaf_Route_Static</classname>(default + route)example + + array( + "modules" => "Index,Blog", + ), +); + +Controller only: +http://example/news + controller == news +Action only(when defined yaf.action_prefer=1 in php.ini) + action == news + +Invalid module maps to controller name: +http://example/foo + controller == foo + +Module + controller: +http://example/blog/archive + module == blog + controller == archive + +Module + controller + action: +http://example/blog/archive/list + module == blog + controller == archive + action == list + +Module + controller + action + params: +http://example/blog/archive/list/sort/alpha/date/desc + module == blog + controller == archive + action == list + sort == alpha + date == desc +]]> + + + + +
+ +
+ &reftitle.classsynopsis; + + + + Yaf_Router + + + + + Yaf_Router + + + + &Properties; + + protected + _routes + + + protected + _current + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _routes + + + + + + _current + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-router; + +
+ + diff --git a/zh/yaf_router/addconfig.xml b/zh/yaf_router/addconfig.xml index 31596c4..cbdf360 100644 --- a/zh/yaf_router/addconfig.xml +++ b/zh/yaf_router/addconfig.xml @@ -1,134 +1,134 @@ - - - - - - Yaf_Router::addConfig - Add config-defined routes into Router - - - - &reftitle.description; - - public voidYaf_Router::addConfig - Yaf_Config_Abstractconfig - - - Add Routes defined in application.ini into - Yaf_Router's route stack - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>application.ini</function>example - - - - - - <function>Yaf_Dispatcher::autoConfig</function>example - -getConfig(); - Yaf_Registry::set("config", $config); - } - - public function _initRoute(Yaf_Dispatcher $dispatcher) { - $router = $dispatcher->getRouter(); - /** - * we can add some pre-defined routes in application.ini - */ - $router->addConfig(Yaf_Registry::get("config")->routes); - } -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_Router::addRoute - Yaf_Route_Static - Yaf_Route_Supervar - Yaf_Route_Simple - Yaf_Route_Regex - Yaf_Route_Rewrite - Yaf_Route_Map - - - - - - + + + + + + Yaf_Router::addConfig + Add config-defined routes into Router + + + + &reftitle.description; + + public voidYaf_Router::addConfig + Yaf_Config_Abstractconfig + + + 将定义在application.ini中的路由增加到 + Yaf_Router的路由堆栈中 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>application.ini</function>example + + + + + + <function>Yaf_Dispatcher::autoConfig</function>example + +getConfig(); + Yaf_Registry::set("config", $config); + } + + public function _initRoute(Yaf_Dispatcher $dispatcher) { + $router = $dispatcher->getRouter(); + /** + * 我们可以在appcation.ini中增加一些预定义好的路由 + */ + $router->addConfig(Yaf_Registry::get("config")->routes); + } +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_Router::addRoute + Yaf_Route_Static + Yaf_Route_Supervar + Yaf_Route_Simple + Yaf_Route_Regex + Yaf_Route_Rewrite + Yaf_Route_Map + + + + + + diff --git a/zh/yaf_router/addroute.xml b/zh/yaf_router/addroute.xml index 5af0526..bccab74 100644 --- a/zh/yaf_router/addroute.xml +++ b/zh/yaf_router/addroute.xml @@ -1,128 +1,127 @@ - - - - - - Yaf_Router::addRoute - Add new Route into Router - - - - &reftitle.description; - - public Yaf_RouterYaf_Router::addRoute - stringname - Yaf_Route_Abstractroute - - - defaultly, Yaf_Router using a Yaf_Route_Static as its defualt route. you - can add new routes into Router's route stack by calling this method. - - - the newer route will be called before the older(route stack), and if the newer router return - TRUE, the router process will be end. otherwise, the older one will be - called. - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - - - - - - &reftitle.examples; - - <function>Yaf_Dispatcher::autoRender</function>example - -getConfig(); - Yaf_Registry::set("config", $config); - } - - public function _initRoute(Yaf_Dispatcher $dispatcher) { - $router = $dispatcher->getRouter(); - /** - * we can add some pre-defined routes in application.ini - */ - $router->addConfig(Yaf_Registry::get("config")->routes); - /** - * add a Rewrite route, then for a request uri: - * http://***/product/list/22/foo - * will be matched by this route, and result: - * - * [module] => - * [controller] => product - * [action] => info - * [method] => GET - * [params:protected] => Array - * ( - * [id] => 22 - * [name] => foo - * ) - * - */ - $route = new Yaf_Route_Rewrite( - "/product/list/:id/:name", - array( - "controller" => "product", - "action" => "info", - ) - ); - - $router->addRoute('dummy', $route); - } -?> -]]> - - - - - - &reftitle.seealso; - - Yaf_Router::addConfig - Yaf_Route_Static - Yaf_Route_Supervar - Yaf_Route_Simple - Yaf_Route_Regex - Yaf_Route_Rewrite - Yaf_Route_Map - - - - - - + + + + + + Yaf_Router::addRoute + 为路由器增加新的路由 + + + + &reftitle.description; + + public Yaf_RouterYaf_Router::addRoute + stringname + Yaf_Route_Abstractroute + + + 默认情况下,Yaf_Router使用Yaf_Route_Static作为它自己的默认路由。 + 你可以通过调用此方法为路由器的路由堆栈增加新的路由。 + + + 新的路由必须在老路由(路由堆栈)之前被调用,如果新路由返回TURE, + 那么这个路由过程将会结束。此外,老的路由会被调用。 + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + &reftitle.examples; + + <function>Yaf_Dispatcher::autoRender</function>example + +getConfig(); + Yaf_Registry::set("config", $config); + } + + public function _initRoute(Yaf_Dispatcher $dispatcher) { + $router = $dispatcher->getRouter(); + /** + * 我们可以在application.ini中增加一些预定义路由 + */ + $router->addConfig(Yaf_Registry::get("config")->routes); + /** + * 增加一个重写类型路由,然后匹配一个请求的uri: + * http://***/product/list/22/foo + * 将会被此路由匹配上,结果为: + * + * [module] => + * [controller] => product + * [action] => info + * [method] => GET + * [params:protected] => Array + * ( + * [id] => 22 + * [name] => foo + * ) + * + */ + $route = new Yaf_Route_Rewrite( + "/product/list/:id/:name", + array( + "controller" => "product", + "action" => "info", + ) + ); + + $router->addRoute('dummy', $route); + } +?> +]]> + + + + + + &reftitle.seealso; + + Yaf_Router::addConfig + Yaf_Route_Static + Yaf_Route_Supervar + Yaf_Route_Simple + Yaf_Route_Regex + Yaf_Route_Rewrite + Yaf_Route_Map + + + + + + diff --git a/zh/yaf_router/getcurrentroute.xml b/zh/yaf_router/getcurrentroute.xml index d7d53ec..429bdb2 100644 --- a/zh/yaf_router/getcurrentroute.xml +++ b/zh/yaf_router/getcurrentroute.xml @@ -1,153 +1,152 @@ - - - - - - Yaf_Router::getCurrentRoute - Get the effective route name - - - - &reftitle.description; - - public stringYaf_Router::getCurrentRoute - - - - Get the name of the route which is effective in the route process. - - - You should call this method after the route process finished, since - before that, this method will always return NULL. - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - String, the name of the effective route. - - - - - &reftitle.examples; - - Register some routes in Bootstrap - -getConfig(); - Yaf_Registry::set("config", $config); - } - - public function _initRoute(Yaf_Dispatcher $dispatcher) { - $router = $dispatcher->getRouter(); - $rewrite_route = new Yaf_Route_Rewrite( - "/product/list/:page", - array( - "controller" => "product", - "action" => "list", - ) - ); - - $regex_route = new Yaf_Route_Rewrite( - "#^/product/info/(\d+)", - array( - "controller" => "product", - "action" => "info", - ) - ); - - $router->addRoute('rewrite', $rewrite_route)->addRoute('regex', $regex_route); - } - - /** - * register plugin - */ - public function __initPlugins(Yaf_Dispatcher $dispatcher) { - $dispatcher->registerPlugin(new DummyPlugin()); - } -?> -]]> - - - - plugin Dummy.php (under <link - linkend="configuration.yaf.directory">application.directory</link>/plugins) - -getRouter()->getCurrentRoute()); - } -?> -?> -]]> - - &example.outputs.similar; - - - - - - - - &reftitle.seealso; - - Yaf_Bootstrap_Abstract - Yaf_Plugin_Abstract - Yaf_Router::addRoute - - - - - - + + + + + + Yaf_Router::getCurrentRoute + 获取有效的路由名称 + + + + &reftitle.description; + + public stringYaf_Router::getCurrentRoute + + + + 获取在路由过程中有效的路由名称 + + + 你将会在路由过程完成后调用此方法,在此之前,这个方法通常会返回NULL。 + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + 字符串,有效的路由的名字。 + + + + + &reftitle.examples; + + Register some routes in Bootstrap + +getConfig(); + Yaf_Registry::set("config", $config); + } + + public function _initRoute(Yaf_Dispatcher $dispatcher) { + $router = $dispatcher->getRouter(); + $rewrite_route = new Yaf_Route_Rewrite( + "/product/list/:page", + array( + "controller" => "product", + "action" => "list", + ) + ); + + $regex_route = new Yaf_Route_Rewrite( + "#^/product/info/(\d+)", + array( + "controller" => "product", + "action" => "info", + ) + ); + + $router->addRoute('rewrite', $rewrite_route)->addRoute('regex', $regex_route); + } + + /** + * register plugin + */ + public function __initPlugins(Yaf_Dispatcher $dispatcher) { + $dispatcher->registerPlugin(new DummyPlugin()); + } +?> +]]> + + + + plugin Dummy.php (under <link + linkend="configuration.yaf.directory">application.directory</link>/plugins) + +getRouter()->getCurrentRoute()); + } +?> +?> +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.seealso; + + Yaf_Bootstrap_Abstract + Yaf_Plugin_Abstract + Yaf_Router::addRoute + + + + + + From beeb26f3326533f2542d0561f324a758037baf10 Mon Sep 17 00:00:00 2001 From: Jason Gian Date: Fri, 27 Jul 2012 09:49:27 +0800 Subject: [PATCH 26/26] route&session&exception over --- zh/yaf-exception-dispatchfailed.xml | 79 +++++++++++++ zh/yaf-exception-loadfailed-action.xml | 80 +++++++++++++ zh/yaf-exception-loadfailed-controller.xml | 77 ++++++++++++ zh/yaf-exception-loadfailed-module.xml | 79 +++++++++++++ zh/yaf-exception-loadfailed-view.xml | 80 +++++++++++++ zh/yaf-exception-loadfailed.xml | 79 +++++++++++++ zh/yaf-exception-routerfailed.xml | 80 +++++++++++++ zh/yaf-exception-startuperror.xml | 80 +++++++++++++ zh/yaf-exception-typeerror.xml | 80 +++++++++++++ zh/yaf-exception.xml | 130 +++++++++++++++++++++ zh/yaf-route-static.xml | 81 +++++++++++++ zh/yaf-route-supervar.xml | 93 +++++++++++++++ zh/yaf-router.xml | 7 +- zh/yaf-session.xml | 126 ++++++++++++++++++++ zh/yaf_exception/construct.xml | 58 +++++++++ zh/yaf_exception/getprevious.xml | 58 +++++++++ zh/yaf_route_static/match.xml | 67 +++++++++++ zh/yaf_route_static/route.xml | 104 +++++++++++++++++ zh/yaf_route_supervar/construct.xml | 116 ++++++++++++++++++ zh/yaf_route_supervar/route.xml | 69 +++++++++++ zh/yaf_session/clone.xml | 58 +++++++++ zh/yaf_session/construct.xml | 58 +++++++++ zh/yaf_session/count.xml | 58 +++++++++ zh/yaf_session/current.xml | 58 +++++++++ zh/yaf_session/del.xml | 67 +++++++++++ zh/yaf_session/get.xml | 67 +++++++++++ zh/yaf_session/getinstance.xml | 58 +++++++++ zh/yaf_session/has.xml | 67 +++++++++++ zh/yaf_session/isset.xml | 67 +++++++++++ zh/yaf_session/key.xml | 58 +++++++++ zh/yaf_session/next.xml | 58 +++++++++ zh/yaf_session/offsetexists.xml | 67 +++++++++++ zh/yaf_session/offsetget.xml | 67 +++++++++++ zh/yaf_session/offsetset.xml | 76 ++++++++++++ zh/yaf_session/offsetunset.xml | 67 +++++++++++ zh/yaf_session/rewind.xml | 58 +++++++++ zh/yaf_session/set.xml | 76 ++++++++++++ zh/yaf_session/sleep.xml | 58 +++++++++ zh/yaf_session/start.xml | 58 +++++++++ zh/yaf_session/unset.xml | 67 +++++++++++ zh/yaf_session/valid.xml | 58 +++++++++ zh/yaf_session/wakeup.xml | 58 +++++++++ 42 files changed, 3001 insertions(+), 6 deletions(-) create mode 100644 zh/yaf-exception-dispatchfailed.xml create mode 100644 zh/yaf-exception-loadfailed-action.xml create mode 100644 zh/yaf-exception-loadfailed-controller.xml create mode 100644 zh/yaf-exception-loadfailed-module.xml create mode 100644 zh/yaf-exception-loadfailed-view.xml create mode 100644 zh/yaf-exception-loadfailed.xml create mode 100644 zh/yaf-exception-routerfailed.xml create mode 100644 zh/yaf-exception-startuperror.xml create mode 100644 zh/yaf-exception-typeerror.xml create mode 100644 zh/yaf-exception.xml create mode 100644 zh/yaf-route-static.xml create mode 100644 zh/yaf-route-supervar.xml create mode 100644 zh/yaf-session.xml create mode 100644 zh/yaf_exception/construct.xml create mode 100644 zh/yaf_exception/getprevious.xml create mode 100644 zh/yaf_route_static/match.xml create mode 100644 zh/yaf_route_static/route.xml create mode 100644 zh/yaf_route_supervar/construct.xml create mode 100644 zh/yaf_route_supervar/route.xml create mode 100644 zh/yaf_session/clone.xml create mode 100644 zh/yaf_session/construct.xml create mode 100644 zh/yaf_session/count.xml create mode 100644 zh/yaf_session/current.xml create mode 100644 zh/yaf_session/del.xml create mode 100644 zh/yaf_session/get.xml create mode 100644 zh/yaf_session/getinstance.xml create mode 100644 zh/yaf_session/has.xml create mode 100644 zh/yaf_session/isset.xml create mode 100644 zh/yaf_session/key.xml create mode 100644 zh/yaf_session/next.xml create mode 100644 zh/yaf_session/offsetexists.xml create mode 100644 zh/yaf_session/offsetget.xml create mode 100644 zh/yaf_session/offsetset.xml create mode 100644 zh/yaf_session/offsetunset.xml create mode 100644 zh/yaf_session/rewind.xml create mode 100644 zh/yaf_session/set.xml create mode 100644 zh/yaf_session/sleep.xml create mode 100644 zh/yaf_session/start.xml create mode 100644 zh/yaf_session/unset.xml create mode 100644 zh/yaf_session/valid.xml create mode 100644 zh/yaf_session/wakeup.xml diff --git a/zh/yaf-exception-dispatchfailed.xml b/zh/yaf-exception-dispatchfailed.xml new file mode 100644 index 0000000..ff2b75a --- /dev/null +++ b/zh/yaf-exception-dispatchfailed.xml @@ -0,0 +1,79 @@ + + + + + + The Yaf_Exception_DispatchFailed class + Yaf_Exception_DispatchFailed + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception_DispatchFailed + + + + + Yaf_Exception_DispatchFailed + + + + extends + Yaf_Exception + + + + &Properties; + + &Methods; + + &InheritedMethods; + + + + + +
+ + + + + + +
+ +
+ + diff --git a/zh/yaf-exception-loadfailed-action.xml b/zh/yaf-exception-loadfailed-action.xml new file mode 100644 index 0000000..b8e63c1 --- /dev/null +++ b/zh/yaf-exception-loadfailed-action.xml @@ -0,0 +1,80 @@ + + + + + + The Yaf_Exception_LoadFailed_Action class + Yaf_Exception_LoadFailed_Action + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception_LoadFailed_Action + + + + + Yaf_Exception_LoadFailed_Action + + + + extends + Yaf_Exception_LoadFailed + + + + &Properties; + + + &Methods; + + &InheritedMethods; + + + + + +
+ + + + + + +
+ +
+ + diff --git a/zh/yaf-exception-loadfailed-controller.xml b/zh/yaf-exception-loadfailed-controller.xml new file mode 100644 index 0000000..c83d21e --- /dev/null +++ b/zh/yaf-exception-loadfailed-controller.xml @@ -0,0 +1,77 @@ + + + + + + The Yaf_Exception_LoadFailed_Controller class + Yaf_Exception_LoadFailed_Controller + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception_LoadFailed_Controller + + + + + Yaf_Exception_LoadFailed_Controller + + + + extends + Yaf_Exception_LoadFailed + + + + &Properties; + + &Methods; + + &InheritedMethods; + + + + +
+ + + + + +
+ +
+ + diff --git a/zh/yaf-exception-loadfailed-module.xml b/zh/yaf-exception-loadfailed-module.xml new file mode 100644 index 0000000..eba7d6b --- /dev/null +++ b/zh/yaf-exception-loadfailed-module.xml @@ -0,0 +1,79 @@ + + + + + + The Yaf_Exception_LoadFailed_Module class + Yaf_Exception_LoadFailed_Module + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception_LoadFailed_Module + + + + + Yaf_Exception_LoadFailed_Module + + + + extends + Yaf_Exception_LoadFailed + + + + &Properties; + + + &Methods; + + &InheritedMethods; + + + + + +
+ + + + + +
+ +
+ + diff --git a/zh/yaf-exception-loadfailed-view.xml b/zh/yaf-exception-loadfailed-view.xml new file mode 100644 index 0000000..21715f9 --- /dev/null +++ b/zh/yaf-exception-loadfailed-view.xml @@ -0,0 +1,80 @@ + + + + + + The Yaf_Exception_LoadFailed_View class + Yaf_Exception_LoadFailed_View + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception_LoadFailed_View + + + + + Yaf_Exception_LoadFailed_View + + + + extends + Yaf_Exception_LoadFailed + + + + &Properties; + + + &Methods; + + &InheritedMethods; + + + + + +
+ + + + + + +
+ +
+ + diff --git a/zh/yaf-exception-loadfailed.xml b/zh/yaf-exception-loadfailed.xml new file mode 100644 index 0000000..8223ed6 --- /dev/null +++ b/zh/yaf-exception-loadfailed.xml @@ -0,0 +1,79 @@ + + + + + + The Yaf_Exception_LoadFailed class + Yaf_Exception_LoadFailed + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception_LoadFailed + + + + + Yaf_Exception_LoadFailed + + + + extends + Yaf_Exception + + + + &Properties; + + &Methods; + + &InheritedMethods; + + + + + +
+ + + + + + +
+ +
+ + diff --git a/zh/yaf-exception-routerfailed.xml b/zh/yaf-exception-routerfailed.xml new file mode 100644 index 0000000..8edcd29 --- /dev/null +++ b/zh/yaf-exception-routerfailed.xml @@ -0,0 +1,80 @@ + + + + + + The Yaf_Exception_RouterFailed class + Yaf_Exception_RouterFailed + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception_RouterFailed + + + + + Yaf_Exception_RouterFailed + + + + extends + Yaf_Exception + + + + &Properties; + + + &Methods; + + &InheritedMethods; + + + + + +
+ + + + + + +
+ +
+ + diff --git a/zh/yaf-exception-startuperror.xml b/zh/yaf-exception-startuperror.xml new file mode 100644 index 0000000..43a728c --- /dev/null +++ b/zh/yaf-exception-startuperror.xml @@ -0,0 +1,80 @@ + + + + + + The Yaf_Exception_StartupError class + Yaf_Exception_StartupError + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception_StartupError + + + + + Yaf_Exception_StartupError + + + + extends + Yaf_Exception + + + + &Properties; + + + &Methods; + + &InheritedMethods; + + + + + +
+ + + + + + +
+ +
+ + diff --git a/zh/yaf-exception-typeerror.xml b/zh/yaf-exception-typeerror.xml new file mode 100644 index 0000000..c956b49 --- /dev/null +++ b/zh/yaf-exception-typeerror.xml @@ -0,0 +1,80 @@ + + + + + + The Yaf_Exception_TypeError class + Yaf_Exception_TypeError + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception_TypeError + + + + + Yaf_Exception_TypeError + + + + extends + Yaf_Exception + + + + &Properties; + + + &Methods; + + &InheritedMethods; + + + + + +
+ + + + + + +
+ +
+ + diff --git a/zh/yaf-exception.xml b/zh/yaf-exception.xml new file mode 100644 index 0000000..da2af13 --- /dev/null +++ b/zh/yaf-exception.xml @@ -0,0 +1,130 @@ + + + + + + The Yaf_Exception class + Yaf_Exception + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Exception + + + + + Yaf_Exception + + + + extends + Exception + + + + &Properties; + + protected + message + + + protected + code + + + protected + previous + + + + &Methods; + + + &InheritedMethods; + + + + + +
+ + + +
+ &reftitle.properties; + + + message + + + + + + code + + + + + + file + + + + + + line + + + + + + previous + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-exception; + +
+ + diff --git a/zh/yaf-route-static.xml b/zh/yaf-route-static.xml new file mode 100644 index 0000000..96f7b21 --- /dev/null +++ b/zh/yaf-route-static.xml @@ -0,0 +1,81 @@ + + + + + + The Yaf_Route_Static class + Yaf_Route_Static + + + + +
+ &reftitle.intro; + + 默认情况下, Yaf_Router 只有Yaf_Route_Static + 这一个默认路由。 + + + 并且Yaf_Route_Static 被设计用于处理80%的请求 + + + 请注意实例化Yaf_Route_Static不是必须的,同样把它增加 + 到Yaf_Router的路由堆栈里也不是必须的, + 由于它常常存在于Yaf_Router的路由堆栈里,并且通常 + 在最后才被调用,但这并不是必须的。 + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Route_Static + + + + + Yaf_Route_Static + + + + Yaf_Router + + + + + &Methods; + + + + +
+ +
+ + &reference.yaf.entities.yaf-route-static; + +
+ + diff --git a/zh/yaf-route-supervar.xml b/zh/yaf-route-supervar.xml new file mode 100644 index 0000000..ffd01ec --- /dev/null +++ b/zh/yaf-route-supervar.xml @@ -0,0 +1,93 @@ + + + + + + The Yaf_Route_Supervar class + Yaf_Route_Supervar + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Route_Supervar + + + + + Yaf_Route_Supervar + + + + Yaf_Route_Interface + + + + &Properties; + + protected + _var_name + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _var_name + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-route-supervar; + +
+ + diff --git a/zh/yaf-router.xml b/zh/yaf-router.xml index 2fe32d3..533e160 100644 --- a/zh/yaf-router.xml +++ b/zh/yaf-router.xml @@ -23,12 +23,7 @@ mod_rewrite的功能。他是非常松散的基于ruby on rails路由,并且 不需要预习任何 webserver Url重写的知识。 它的设计目的是与单一的apache mod_rewrite规则工作 - - is designed to allow for mod_rewrite-like - functionality using pure PHP structures. It is very loosely based on Ruby - on Rails routing and does not require any prior knowledge of webserver URL - rewriting. It is designed to work with a single Apache mod_rewrite rule - (one of): + (其中之一): apache重写规则 diff --git a/zh/yaf-session.xml b/zh/yaf-session.xml new file mode 100644 index 0000000..0a2eb40 --- /dev/null +++ b/zh/yaf-session.xml @@ -0,0 +1,126 @@ + + + + + + The Yaf_Session class + Yaf_Session + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Yaf_Session + + + + + Yaf_Session + + + + Iterator + + + + Traversable + + + + ArrayAccess + + + + Countable + + + + &Properties; + + protected + static + _instance + + + protected + _session + + + protected + _started + + + + &Methods; + + + + +
+ + + +
+ &reftitle.properties; + + + _instance + + + + + + _session + + + + + + _started + + + + + +
+ + + +
+ + &reference.yaf.entities.yaf-session; + +
+ + diff --git a/zh/yaf_exception/construct.xml b/zh/yaf_exception/construct.xml new file mode 100644 index 0000000..285816e --- /dev/null +++ b/zh/yaf_exception/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Exception::__construct + The __construct purpose + + + + &reftitle.description; + + public Yaf_Exception::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_exception/getprevious.xml b/zh/yaf_exception/getprevious.xml new file mode 100644 index 0000000..35d90f9 --- /dev/null +++ b/zh/yaf_exception/getprevious.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Exception::getPrevious + The getPrevious purpose + + + + &reftitle.description; + + public voidYaf_Exception::getPrevious + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_route_static/match.xml b/zh/yaf_route_static/match.xml new file mode 100644 index 0000000..66f5d01 --- /dev/null +++ b/zh/yaf_route_static/match.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Route_Static::match + The match purpose + + + + &reftitle.description; + + public voidYaf_Route_Static::match + stringuri + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + uri + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_route_static/route.xml b/zh/yaf_route_static/route.xml new file mode 100644 index 0000000..b27b236 --- /dev/null +++ b/zh/yaf_route_static/route.xml @@ -0,0 +1,104 @@ + + + + + + Yaf_Route_Static::route + Route a request + + + + &reftitle.description; + + public boolYaf_Route_Static::route + Yaf_Request_Abstractrequest + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + + + + &reftitle.returnvalues; + + 通常是TRUE + + + + + &reftitle.examples; + + <function>Yaf_Route_Static::route</function>example + + module = index, controller=a, action=b + +//假设 yaf.action_prefer = On +Request: http://yourdomain.com/b +=> module = default(index), controller = default(index), action = b + +//假设 yaf.action_prefer = Off +Request: http://yourdomain.com/b +=> module = default(index), controller = b, action = default(index) + + +Request: http://yourdomain.com/a/b/foo/bar/test/a/id/4 +=> module = default(index), controller = a, action = b, request parameters: foo = bar, test = a, id = 4 +]]> + + + + + + &reftitle.seealso; + + Yaf_Route_Supervar::route + Yaf_Route_Simple::route + Yaf_Route_Regex::route + Yaf_Route_Rewrite::route + Yaf_Route_Map::route + + + + + + + diff --git a/zh/yaf_route_supervar/construct.xml b/zh/yaf_route_supervar/construct.xml new file mode 100644 index 0000000..53b5447 --- /dev/null +++ b/zh/yaf_route_supervar/construct.xml @@ -0,0 +1,116 @@ + + + + + + Yaf_Route_Supervar::__construct + The __construct purpose + + + + &reftitle.description; + + publicYaf_Route_Supervar::__construct + stringsupervar_name + + + Yaf_Route_Supervar 与 + Yaf_Route_Static相似, 不同之处在于: + Yaf_Route_Supervar 在查询字符串中会查找路径信息 + supervar_name 是键. + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + supervar_name + + + 键名。 + + + + + + + + &reftitle.returnvalues; + + + + + + &reftitle.examples; + + <function>Yaf_Route_Supervar</function>example + +getRouter()->addRoute("name", + new Yaf_Route_Supervar("r")); + ); +?> +]]> + + &example.outputs.similar; + + index(default), + "controller" => ctr, + "action" => act, + "params" => array( + "var" => value, + ) + ) +]]> + + + + + + &reftitle.seealso; + + Yaf_Router::addRoute + Yaf_Router::addConfig + Yaf_Route_Static + Yaf_Route_Regex + Yaf_Route_Simple + Yaf_Route_Rewrite + Yaf_Route_Map + + + + + + diff --git a/zh/yaf_route_supervar/route.xml b/zh/yaf_route_supervar/route.xml new file mode 100644 index 0000000..3ef35cd --- /dev/null +++ b/zh/yaf_route_supervar/route.xml @@ -0,0 +1,69 @@ + + + + + + Yaf_Route_Supervar::route + The route purpose + + + + &reftitle.description; + + public boolYaf_Route_Supervar::route + Yaf_Request_Abstractrequest + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + request + + + + + + + + + + + &reftitle.returnvalues; + + 如果在$_GET里面有一个键(在 + Yaf_Route_Supervar::__construct 中定义) , 将返回TRUE. + 否则返回FALSE. + + + + + + + diff --git a/zh/yaf_session/clone.xml b/zh/yaf_session/clone.xml new file mode 100644 index 0000000..260d8f5 --- /dev/null +++ b/zh/yaf_session/clone.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::__clone + The __clone purpose + + + + &reftitle.description; + + private voidYaf_Session::__clone + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/construct.xml b/zh/yaf_session/construct.xml new file mode 100644 index 0000000..00e7a21 --- /dev/null +++ b/zh/yaf_session/construct.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::__construct + The __construct purpose + + + + &reftitle.description; + + Yaf_Session::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/count.xml b/zh/yaf_session/count.xml new file mode 100644 index 0000000..ec0e8c6 --- /dev/null +++ b/zh/yaf_session/count.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::count + The count purpose + + + + &reftitle.description; + + public voidYaf_Session::count + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/current.xml b/zh/yaf_session/current.xml new file mode 100644 index 0000000..bbcd00b --- /dev/null +++ b/zh/yaf_session/current.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::current + The current purpose + + + + &reftitle.description; + + public voidYaf_Session::current + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/del.xml b/zh/yaf_session/del.xml new file mode 100644 index 0000000..f56e312 --- /dev/null +++ b/zh/yaf_session/del.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Session::del + The del purpose + + + + &reftitle.description; + + public voidYaf_Session::del + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/get.xml b/zh/yaf_session/get.xml new file mode 100644 index 0000000..26ff114 --- /dev/null +++ b/zh/yaf_session/get.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Session::__get + The __get purpose + + + + &reftitle.description; + + public voidYaf_Session::__get + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/getinstance.xml b/zh/yaf_session/getinstance.xml new file mode 100644 index 0000000..bd3ac36 --- /dev/null +++ b/zh/yaf_session/getinstance.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::getInstance + The getInstance purpose + + + + &reftitle.description; + + public static voidYaf_Session::getInstance + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/has.xml b/zh/yaf_session/has.xml new file mode 100644 index 0000000..a720cba --- /dev/null +++ b/zh/yaf_session/has.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Session::has + The has purpose + + + + &reftitle.description; + + public voidYaf_Session::has + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/isset.xml b/zh/yaf_session/isset.xml new file mode 100644 index 0000000..b344baf --- /dev/null +++ b/zh/yaf_session/isset.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Session::__isset + The __isset purpose + + + + &reftitle.description; + + public voidYaf_Session::__isset + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/key.xml b/zh/yaf_session/key.xml new file mode 100644 index 0000000..d948306 --- /dev/null +++ b/zh/yaf_session/key.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::key + The key purpose + + + + &reftitle.description; + + public voidYaf_Session::key + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/next.xml b/zh/yaf_session/next.xml new file mode 100644 index 0000000..2e93b50 --- /dev/null +++ b/zh/yaf_session/next.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::next + The next purpose + + + + &reftitle.description; + + public voidYaf_Session::next + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/offsetexists.xml b/zh/yaf_session/offsetexists.xml new file mode 100644 index 0000000..f5f714a --- /dev/null +++ b/zh/yaf_session/offsetexists.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Session::offsetExists + The offsetExists purpose + + + + &reftitle.description; + + public voidYaf_Session::offsetExists + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/offsetget.xml b/zh/yaf_session/offsetget.xml new file mode 100644 index 0000000..2a8c186 --- /dev/null +++ b/zh/yaf_session/offsetget.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Session::offsetGet + The offsetGet purpose + + + + &reftitle.description; + + public voidYaf_Session::offsetGet + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/offsetset.xml b/zh/yaf_session/offsetset.xml new file mode 100644 index 0000000..7c32705 --- /dev/null +++ b/zh/yaf_session/offsetset.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Session::offsetSet + The offsetSet purpose + + + + &reftitle.description; + + public voidYaf_Session::offsetSet + stringname + stringvalue + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + value + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/offsetunset.xml b/zh/yaf_session/offsetunset.xml new file mode 100644 index 0000000..130e4ec --- /dev/null +++ b/zh/yaf_session/offsetunset.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Session::offsetUnset + The offsetUnset purpose + + + + &reftitle.description; + + public voidYaf_Session::offsetUnset + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/rewind.xml b/zh/yaf_session/rewind.xml new file mode 100644 index 0000000..032dd5e --- /dev/null +++ b/zh/yaf_session/rewind.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::rewind + The rewind purpose + + + + &reftitle.description; + + public voidYaf_Session::rewind + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/set.xml b/zh/yaf_session/set.xml new file mode 100644 index 0000000..e15bad4 --- /dev/null +++ b/zh/yaf_session/set.xml @@ -0,0 +1,76 @@ + + + + + + Yaf_Session::__set + The __set purpose + + + + &reftitle.description; + + public voidYaf_Session::__set + stringname + stringvalue + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + value + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/sleep.xml b/zh/yaf_session/sleep.xml new file mode 100644 index 0000000..1eba918 --- /dev/null +++ b/zh/yaf_session/sleep.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::__sleep + The __sleep purpose + + + + &reftitle.description; + + private voidYaf_Session::__sleep + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/start.xml b/zh/yaf_session/start.xml new file mode 100644 index 0000000..b7e79ea --- /dev/null +++ b/zh/yaf_session/start.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::start + The start purpose + + + + &reftitle.description; + + public voidYaf_Session::start + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/unset.xml b/zh/yaf_session/unset.xml new file mode 100644 index 0000000..8d584a2 --- /dev/null +++ b/zh/yaf_session/unset.xml @@ -0,0 +1,67 @@ + + + + + + Yaf_Session::__unset + The __unset purpose + + + + &reftitle.description; + + public voidYaf_Session::__unset + stringname + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + name + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/valid.xml b/zh/yaf_session/valid.xml new file mode 100644 index 0000000..97d6563 --- /dev/null +++ b/zh/yaf_session/valid.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::valid + The valid purpose + + + + &reftitle.description; + + public voidYaf_Session::valid + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/zh/yaf_session/wakeup.xml b/zh/yaf_session/wakeup.xml new file mode 100644 index 0000000..18cd144 --- /dev/null +++ b/zh/yaf_session/wakeup.xml @@ -0,0 +1,58 @@ + + + + + + Yaf_Session::__wakeup + The __wakeup purpose + + + + &reftitle.description; + + private voidYaf_Session::__wakeup + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + +