mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
Added addSelect to DB_Model
This commit is contained in:
@@ -231,6 +231,22 @@ class DB_Model extends FHC_Model
|
||||
return $this->_success(TRUE);
|
||||
}
|
||||
|
||||
/** ---------------------------------------------------------------
|
||||
* Add select clause
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addSelect($select)
|
||||
{
|
||||
// Check Class-Attributes and parameters
|
||||
if (is_null($select) || $select == '')
|
||||
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
|
||||
|
||||
$this->db->select($select);
|
||||
|
||||
return $this->_success(TRUE);
|
||||
}
|
||||
|
||||
/** ---------------------------------------------------------------
|
||||
* Add distinct clause
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user