* Move the function from biz extension.
This commit is contained in:
@@ -23,6 +23,17 @@ class dimensionModel extends model
|
||||
return $this->dao->select('*')->from(TABLE_DIMENSION)->where('id')->eq($dimensionID)->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get first dimension.
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getFirst()
|
||||
{
|
||||
return $this->dao->select('*')->from(TABLE_DIMENSION)->where('deleted')->eq('0')->orderBy('id')->limit(1)->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get dimension list.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user