-
Notifications
You must be signed in to change notification settings - Fork 11
upgrade.md
zuowenjian edited this page Dec 1, 2016
·
3 revisions
$obj = XEntity::createIns(__CLASS__) ;
删除XDaoUtls 相关代码
XDaoUtls::simpleSetup($executer) ;
include "pylon/pylon.php" ;
XSetting::$logMode = XSetting::LOG_DEBUG_MODE ;
XSetting::$prjName = "<project>" ;
XSetting::$logTag = XSetting::ensureEnv("USER") ;
XSetting::$runPath = XSetting::ensureEnv("RUN_PATH") ;
XSetting::$respClass = "XHtmlResp" ;
XSetting::setupModel() ;
XPylon::serving();
框架运行后的入口,可以:
- 拦截器设置
- 实体环境设置
XAop::append_by_match_uri(".*", new AutoCommit());
实体类
class OrderEnt extends XEntity
{
static public function bizCreate($custName)
{
$obj = XEntity::createIns(__class__) ;
$obj->custName = $custName ;
return $obj;
}
}
获取数据
$data = XQuery::arr()->list_orderent_by_custname("zuowenjian") ;