* change onCaseOf/endCase into beginIF/endIF

This commit is contained in:
chencongzhi520
2010-06-22 05:56:24 +00:00
parent 0d8748f2ba
commit 3a8564cbcb
11 changed files with 280 additions and 280 deletions

View File

@@ -45,7 +45,7 @@ class treeModel extends model
return $this->dao->select('*')->from(TABLE_MODULE)
->where('product')->eq((int)$productID)
->andWhere('view')->eq($viewType)
->onCaseOf($rootModulePath)->andWhere('path')->like($rootModulePath)->endCase()
->beginIF($rootModulePath)->andWhere('path')->like($rootModulePath)->endIF()
->orderBy('grade desc, `order`')
->get();
}