Changed use of active to status
This commit is contained in:
@@ -209,12 +209,22 @@ abstract class ORMOSB extends ORM {
|
||||
return empty($mc[$key]) ? '' : $mc[$key];
|
||||
}
|
||||
|
||||
protected function _active() {
|
||||
return $this->where('active','=',TRUE);
|
||||
protected function _where_active() {
|
||||
return $this->where('status','=',TRUE);
|
||||
}
|
||||
|
||||
public function where_active() {
|
||||
return $this->_where_active();
|
||||
}
|
||||
|
||||
public function list_active() {
|
||||
return $this->_active()->find_all();
|
||||
return $this->_where_active()->find_all();
|
||||
}
|
||||
|
||||
public function list_count($active=TRUE) {
|
||||
$a=($active ? $this->_where_active() : $this);
|
||||
|
||||
return $a->find_all()->count();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user