Internal overhaul

This commit is contained in:
Deon George
2013-11-28 17:41:34 +11:00
parent 0ed5e5163d
commit f8a5b153cf
91 changed files with 1570 additions and 1619 deletions

View File

@@ -261,8 +261,10 @@ abstract class ORM_OSB extends ORM {
/**
* Function help to find records that are active
*/
public function list_active() {
return $this->_where_active()->find_all();
public function list_active($active=TRUE) {
$x=($active ? $this->_where_active() : $this);
return $x->find_all();
}
public function list_count($active=TRUE) {