文字

Yet Another Framework

  • 简介
  • 安装/配置
    • 需求
    • 安装
    • 运行时配置
    • 资源类型
  • 预定义常量
  • 范例
  • 应用配置
  • Yaf_Application — The Yaf_Application class
    • Yaf_Application::app — 获取当前的Yaf_Application实例
    • Yaf_Application::bootstrap — 调用bootstrap
    • Yaf_Application::clearLastError — 清除最后的错误信息
    • Yaf_Application::__clone — Yaf_Application不能被克隆
    • Yaf_Application::__construct — Yaf_Application的构造函数
    • Yaf_Application::__destruct — 析构函数
    • Yaf_Application::environ — 获取当前Yaf_Application的环境名
    • Yaf_Application::execute — 运行回调函数
    • Yaf_Application::getAppDirectory — 获取应用的目录
    • Yaf_Application::getConfig — 获取 Yaf_Config_Abstract 的实例
    • Yaf_Application::getDispatcher — 获取 Yaf_Dispatcher 的实例
    • Yaf_Application::getLastErrorMsg — 获取最近产生的错误的错误信息
    • Yaf_Application::getLastErrorNo — 获取最后产生的错误的错误代码
    • Yaf_Application::getModules — 获取在配置文件中申明的模块
    • Yaf_Application::run — 运行 Yaf_Application
    • Yaf_Application::setAppDirectory — 改变应用目录
    • Yaf_Application::__sleep — Yaf_Application 不能被序列化
    • Yaf_Application::__wakeup — Yaf_Application 不能被反序列化
  • Yaf_Bootstrap_Abstract — The Yaf_Bootstrap_Abstract class
  • Yaf_Dispatcher — Yaf_Dispatcher 类
    • Yaf_Dispatcher::autoRender — 开启/关闭自动渲染功能
    • Yaf_Dispatcher::catchException — 开启/关闭自动异常捕获功能
    • Yaf_Dispatcher::__clone — Yaf_Dispatcher 不能被克隆
    • Yaf_Dispatcher::__construct — Yaf_Dispatcher 构造函数
    • Yaf_Dispatcher::disableView — 关闭自动渲染
    • Yaf_Dispatcher::dispatch — 分发请求
    • Yaf_Dispatcher::enableView — 开启自动渲染
    • Yaf_Dispatcher::flushInstantly — 打开关闭自动响应
    • Yaf_Dispatcher::getApplication — 获取当前的Yaf_Application实例
    • Yaf_Dispatcher::getInstance — 获取当前的Yaf_Dispatcher实例
    • Yaf_Dispatcher::getRequest — 获取当前的请求实例
    • Yaf_Dispatcher::getRouter — 获取路由器
    • Yaf_Dispatcher::initView — 初始化视图引擎并返回它
    • Yaf_Dispatcher::registerPlugin — 注册一个插件
    • Yaf_Dispatcher::returnResponse — The returnResponse purpose
    • Yaf_Dispatcher::setDefaultAction — 设置路由的默认动作
    • Yaf_Dispatcher::setDefaultController — 设置路由的默认控制器
    • Yaf_Dispatcher::setDefaultModule — 设置路由的默认模块
    • Yaf_Dispatcher::setErrorHandler — 设置错误处理函数
    • Yaf_Dispatcher::setRequest — The setRequest purpose
    • Yaf_Dispatcher::setView — 设置视图引擎
    • Yaf_Dispatcher::__sleep — Yaf_Dispatcher 不能被序列化
    • Yaf_Dispatcher::throwException — 开启/关闭异常抛出
    • Yaf_Dispatcher::__wakeup — Yaf_Dispatcher 不能被反序列化
  • Yaf_Config_Abstract — The Yaf_Config_Abstract class
    • Yaf_Config_Abstract::get — Getter
    • Yaf_Config_Abstract::readonly — 寻找只读配置
    • Yaf_Config_Abstract::set — Setter
    • Yaf_Config_Abstract::toArray — 转换为数组
  • Yaf_Config_Ini — The Yaf_Config_Ini class
    • Yaf_Config_Ini::__construct — 构造函数
    • Yaf_Config_Ini::count — 返回配置的节数量
    • Yaf_Config_Ini::current — 返回当前节点
    • Yaf_Config_Ini::__get — 读取节点配置
    • Yaf_Config_Ini::__isset — 检查节点是否存在
    • Yaf_Config_Ini::key — 返回当前元素的键
    • Yaf_Config_Ini::next — 向前移动到下一个元素
    • Yaf_Config_Ini::offsetExists — 检查一个偏移位置是否存在
    • Yaf_Config_Ini::offsetGet — 获取一个偏移位置的值
    • Yaf_Config_Ini::offsetSet — 设置一个偏移位置的值
    • Yaf_Config_Ini::offsetUnset — 复位一个偏移位置的值
    • Yaf_Config_Ini::readonly — 检查配置是否只读
    • Yaf_Config_Ini::rewind — 检查当前位置是否有效
    • Yaf_Config_Ini::__set — The __set purpose
    • Yaf_Config_Ini::toArray — 转换为数组的格式
    • Yaf_Config_Ini::valid — 检查迭代器是否有效
  • Yaf_Config_Simple — The Yaf_Config_Simple class
    • Yaf_Config_Simple::__construct — 构造函数
    • Yaf_Config_Simple::count — 返回配置的节数量
    • Yaf_Config_Simple::current — 返回当前节点
    • Yaf_Config_Simple::__get — 读取节点配置
    • Yaf_Config_Simple::__isset — 检查节点是否存在
    • Yaf_Config_Simple::key — 返回当前元素的键
    • Yaf_Config_Simple::next — 向前移动到下一个元素
    • Yaf_Config_Simple::offsetExists — 检查一个偏移位置是否存在
    • Yaf_Config_Simple::offsetGet — 获取一个偏移位置的值
    • Yaf_Config_Simple::offsetSet — 设置一个偏移位置的值
    • Yaf_Config_Simple::offsetUnset — 复位一个偏移位置的值
    • Yaf_Config_Simple::readonly — 检查配置是否只读
    • Yaf_Config_Simple::rewind — 检查当前位置是否有效
    • Yaf_Config_Simple::__set — 设置节点配置
    • Yaf_Config_Simple::toArray — 转换为数组的格式
    • Yaf_Config_Simple::valid — 检查迭代器是否有效
  • Yaf_Controller_Abstract — The Yaf_Controller_Abstract class
    • Yaf_Controller_Abstract::__clone — Yaf_Controller_Abstract 不能被克隆
    • Yaf_Controller_Abstract::__construct — Yaf_Controller_Abstract constructor
    • Yaf_Controller_Abstract::display — The display purpose
    • Yaf_Controller_Abstract::forward — The forward purpose
    • Yaf_Controller_Abstract::getInvokeArg — The getInvokeArg purpose
    • Yaf_Controller_Abstract::getInvokeArgs — The getInvokeArgs purpose
    • Yaf_Controller_Abstract::getModuleName — 获取当前控制器所属的模块名
    • Yaf_Controller_Abstract::getRequest — The getRequest purpose
    • Yaf_Controller_Abstract::getResponse — The getResponse purpose
    • Yaf_Controller_Abstract::getView — 获取当前的视图引擎
    • Yaf_Controller_Abstract::getViewpath — The getViewpath purpose
    • Yaf_Controller_Abstract::init — 控制器初始化
    • Yaf_Controller_Abstract::initView — The initView purpose
    • Yaf_Controller_Abstract::redirect — The redirect purpose
    • Yaf_Controller_Abstract::render — 渲染视图模板
    • Yaf_Controller_Abstract::setViewpath — The setViewpath purpose
  • Yaf_Action_Abstract — The Yaf_Action_Abstract class
    • Yaf_Action_Abstract::execute — 执行动作
    • Yaf_Action_Abstract::getController — 得到控制器实例
  • Yaf_View_Interface — The Yaf_View_Interface class
    • Yaf_View_Interface::assign — 为视图引擎分配一个模板变量
    • Yaf_View_Interface::display — 渲染一个视图模板, 并直接输出给请求端
    • Yaf_View_Interface::getScriptPath — The getScriptPath purpose
    • Yaf_View_Interface::render — 渲染一个视图模板
    • Yaf_View_Interface::setScriptPath — The setScriptPath purpose
  • Yaf_View_Simple — The Yaf_View_Simple Class
    • Yaf_View_Simple::assign — 为视图引擎分配一个模板变量
    • Yaf_View_Simple::assignRef — The assignRef purpose
    • Yaf_View_Simple::clear — Clear Assigned values
    • Yaf_View_Simple::__construct — Constructor of Yaf_View_Simple
    • Yaf_View_Simple::display — 渲染一个视图模板, 并直接输出给请求端
    • Yaf_View_Simple::eval — 渲染模板
    • Yaf_View_Simple::__get — 获取视图引擎的一个模板变量值
    • Yaf_View_Simple::getScriptPath — 获取模板目录
    • Yaf_View_Simple::__isset — The __isset purpose
    • Yaf_View_Simple::render — 渲染模板
    • Yaf_View_Simple::__set — 为视图引擎分配一个模板变量
    • Yaf_View_Simple::setScriptPath — 设置模板的目录
  • Yaf_Loader — The Yaf_Loader class
    • Yaf_Loader::autoload — The autoload purpose
    • Yaf_Loader::clearLocalNamespace — The clearLocalNamespace purpose
    • Yaf_Loader::__clone — The __clone purpose
    • Yaf_Loader::__construct — The __construct purpose
    • Yaf_Loader::getInstance — The getInstance purpose
    • Yaf_Loader::getLibraryPath — get the library path
    • Yaf_Loader::getLocalNamespace — The getLocalNamespace purpose
    • Yaf_Loader::import — The import purpose
    • Yaf_Loader::isLocalName — The isLocalName purpose
    • Yaf_Loader::registerLocalNamespace — 注册本地类前缀
    • Yaf_Loader::setLibraryPath — 改变library路径
    • Yaf_Loader::__sleep — The __sleep purpose
    • Yaf_Loader::__wakeup — The __wakeup purpose
  • Yaf_Plugin_Abstract — The Yaf_Plugin_Abstract class
    • Yaf_Plugin_Abstract::dispatchLoopShutdown — The dispatchLoopShutdown purpose
    • Yaf_Plugin_Abstract::dispatchLoopStartup — The dispatchLoopStartup purpose
    • Yaf_Plugin_Abstract::postDispatch — The postDispatch purpose
    • Yaf_Plugin_Abstract::preDispatch — The preDispatch purpose
    • Yaf_Plugin_Abstract::preResponse — The preResponse purpose
    • Yaf_Plugin_Abstract::routerShutdown — The routerShutdown purpose
    • Yaf_Plugin_Abstract::routerStartup — RouterStartup hook
  • Yaf_Registry — The Yaf_Registry class
    • Yaf_Registry::__clone — The __clone purpose
    • Yaf_Registry::__construct — Yaf_Registry implements singleton
    • Yaf_Registry::del — Remove an item from registry
    • Yaf_Registry::get — Retrieve an item from registry
    • Yaf_Registry::has — Check whether an item exists
    • Yaf_Registry::set — Add an item into registry
  • Yaf_Request_Abstract — The Yaf_Request_Abstract class
    • Yaf_Request_Abstract::getActionName — The getActionName purpose
    • Yaf_Request_Abstract::getBaseUri — The getBaseUri purpose
    • Yaf_Request_Abstract::getControllerName — The getControllerName purpose
    • Yaf_Request_Abstract::getEnv — 取得ENV变量的值
    • Yaf_Request_Abstract::getException — The getException purpose
    • Yaf_Request_Abstract::getLanguage — The getLanguage purpose
    • Yaf_Request_Abstract::getMethod — The getMethod purpose
    • Yaf_Request_Abstract::getModuleName — The getModuleName purpose
    • Yaf_Request_Abstract::getParam — The getParam purpose
    • Yaf_Request_Abstract::getParams — The getParams purpose
    • Yaf_Request_Abstract::getRequestUri — The getRequestUri purpose
    • Yaf_Request_Abstract::getServer — 返回SERVER变量的值
    • Yaf_Request_Abstract::isCli — The isCli purpose
    • Yaf_Request_Abstract::isDispatched — The isDispatched purpose
    • Yaf_Request_Abstract::isGet — The isGet purpose
    • Yaf_Request_Abstract::isHead — The isHead purpose
    • Yaf_Request_Abstract::isOptions — The isOptions purpose
    • Yaf_Request_Abstract::isPost — The isPost purpose
    • Yaf_Request_Abstract::isPut — The isPut purpose
    • Yaf_Request_Abstract::isRouted — The isRouted purpose
    • Yaf_Request_Abstract::isXmlHttpRequest — The isXmlHttpRequest purpose
    • Yaf_Request_Abstract::setActionName — The setActionName purpose
    • Yaf_Request_Abstract::setBaseUri — The setBaseUri purpose
    • Yaf_Request_Abstract::setControllerName — The setControllerName purpose
    • Yaf_Request_Abstract::setDispatched — The setDispatched purpose
    • Yaf_Request_Abstract::setModuleName — The setModuleName purpose
    • Yaf_Request_Abstract::setParam — The setParam purpose
    • Yaf_Request_Abstract::setRequestUri — The setRequestUri purpose
    • Yaf_Request_Abstract::setRouted — The setRouted purpose
  • Yaf_Request_Http — The Yaf_Request_Http class
    • Yaf_Request_Http::__clone — The __clone purpose
    • Yaf_Request_Http::__construct — The __construct purpose
    • Yaf_Request_Http::get — 从客户端返回变量
    • Yaf_Request_Http::getCookie — 返回Cookie变量
    • Yaf_Request_Http::getFiles — The getFiles purpose
    • Yaf_Request_Http::getPost — 返回POST变量
    • Yaf_Request_Http::getQuery — fetch a query parameter
    • Yaf_Request_Http::getRequest — The getRequest purpose
    • Yaf_Request_Http::isXmlHttpRequest — 是否为Ajax请求
  • Yaf_Request_Simple — The Yaf_Request_Simple class
    • Yaf_Request_Simple::__clone — The __clone purpose
    • Yaf_Request_Simple::__construct — The __construct purpose
    • Yaf_Request_Simple::get — The get purpose
    • Yaf_Request_Simple::getCookie — The getCookie purpose
    • Yaf_Request_Simple::getFiles — The getFiles purpose
    • Yaf_Request_Simple::getPost — The getPost purpose
    • Yaf_Request_Simple::getQuery — The getQuery purpose
    • Yaf_Request_Simple::getRequest — The getRequest purpose
    • Yaf_Request_Simple::isXmlHttpRequest — The isXmlHttpRequest purpose
  • Yaf_Response_Abstract — The Yaf_Response_Abstract class
    • Yaf_Response_Abstract::appendBody — 往已有的响应body后附加新的内容
    • Yaf_Response_Abstract::clearBody — 清除已经设置的响应body
    • Yaf_Response_Abstract::clearHeaders — The clearHeaders purpose
    • Yaf_Response_Abstract::__clone — The __clone purpose
    • Yaf_Response_Abstract::__construct — The __construct purpose
    • Yaf_Response_Abstract::__destruct — The __destruct purpose
    • Yaf_Response_Abstract::getBody — 获取已经设置的响应body
    • Yaf_Response_Abstract::getHeader — The getHeader purpose
    • Yaf_Response_Abstract::prependBody — The prependBody purpose
    • Yaf_Response_Abstract::response — send response
    • Yaf_Response_Abstract::setAllHeaders — The setAllHeaders purpose
    • Yaf_Response_Abstract::setBody — 设置响应的Body
    • Yaf_Response_Abstract::setHeader — The setHeader purpose
    • Yaf_Response_Abstract::setRedirect — The setRedirect purpose
    • Yaf_Response_Abstract::__toString — The __toString purpose
  • Yaf_Route_Interface — The Yaf_Route_Interface class
    • Yaf_Route_Interface::assemble — 将指定路由规则组合成一个url
    • Yaf_Route_Interface::route — route a request
  • Yaf_Route_Map — The Yaf_Route_Map class
    • Yaf_Route_Map::assemble — 组合url
    • Yaf_Route_Map::__construct — The __construct purpose
    • Yaf_Route_Map::route — The route purpose
  • Yaf_Route_Regex — The Yaf_Route_Regex class
    • Yaf_Route_Regex::assemble — 组合url
    • Yaf_Route_Regex::__construct — The __construct purpose
    • Yaf_Route_Regex::route — The route purpose
  • Yaf_Route_Rewrite — The Yaf_Route_Rewrite class
    • Yaf_Route_Rewrite::assemble — 组合url
    • Yaf_Route_Rewrite::__construct — The __construct purpose
    • Yaf_Route_Rewrite::route — The route purpose
  • Yaf_Router — The Yaf_Router class
    • Yaf_Router::addConfig — 向Router中添加配置文件中定义的路由
    • Yaf_Router::addRoute — 往Router中添加新的路由
    • Yaf_Router::__construct — Yaf_Router constructor
    • Yaf_Router::getCurrentRoute — 取得当前有效的路由名
    • Yaf_Router::getRoute — The getRoute purpose
    • Yaf_Router::getRoutes — The getRoutes purpose
    • Yaf_Router::route — The route purpose
  • Yaf_Route_Simple — The Yaf_Route_Simple class
    • Yaf_Route_Simple::assemble — 组合url
    • Yaf_Route_Simple::__construct — Yaf_Route_Simple constructor
    • Yaf_Route_Simple::route — Route a request
  • Yaf_Route_Static — The Yaf_Route_Static class
    • Yaf_Route_Static::assemble — 组合url
    • Yaf_Route_Static::match — The match purpose
    • Yaf_Route_Static::route — Route a request
  • Yaf_Route_Supervar — The Yaf_Route_Supervar class
    • Yaf_Route_Supervar::assemble — 组合url
    • Yaf_Route_Supervar::__construct — The __construct purpose
    • Yaf_Route_Supervar::route — The route purpose
  • Yaf_Session — The Yaf_Session class
    • Yaf_Session::__clone — The __clone purpose
    • Yaf_Session::__construct — The __construct purpose
    • Yaf_Session::count — The count purpose
    • Yaf_Session::current — The current purpose
    • Yaf_Session::del — The del purpose
    • Yaf_Session::__get — The __get purpose
    • Yaf_Session::getInstance — The getInstance purpose
    • Yaf_Session::has — The has purpose
    • Yaf_Session::__isset — The __isset purpose
    • Yaf_Session::key — The key purpose
    • Yaf_Session::next — The next purpose
    • Yaf_Session::offsetExists — The offsetExists purpose
    • Yaf_Session::offsetGet — The offsetGet purpose
    • Yaf_Session::offsetSet — The offsetSet purpose
    • Yaf_Session::offsetUnset — The offsetUnset purpose
    • Yaf_Session::rewind — The rewind purpose
    • Yaf_Session::__set — The __set purpose
    • Yaf_Session::__sleep — The __sleep purpose
    • Yaf_Session::start — The start purpose
    • Yaf_Session::__unset — The __unset purpose
    • Yaf_Session::valid — The valid purpose
    • Yaf_Session::__wakeup — The __wakeup purpose
  • Yaf_Exception — The Yaf_Exception class
    • Yaf_Exception::__construct — The __construct purpose
    • Yaf_Exception::getPrevious — The getPrevious purpose
  • Yaf_Exception_TypeError — The Yaf_Exception_TypeError class
  • Yaf_Exception_StartupError — The Yaf_Exception_StartupError class
  • Yaf_Exception_DispatchFailed — The Yaf_Exception_DispatchFailed class
  • Yaf_Exception_RouterFailed — The Yaf_Exception_RouterFailed class
  • Yaf_Exception_LoadFailed — The Yaf_Exception_LoadFailed class
  • Yaf_Exception_LoadFailed_Module — The Yaf_Exception_LoadFailed_Module class
  • Yaf_Exception_LoadFailed_Controller — The Yaf_Exception_LoadFailed_Controller class
  • Yaf_Exception_LoadFailed_Action — The Yaf_Exception_LoadFailed_Action class
  • Yaf_Exception_LoadFailed_View — The Yaf_Exception_LoadFailed_View class
上一篇: 下一篇: