Skip to content
Snippets Groups Projects
Commit 506e255f authored by Tim Steiner's avatar Tim Steiner
Browse files

Sorted users and groups on admin pages.

parent a56b6d52
No related branches found
Tags
No related merge requests found
......@@ -31,6 +31,11 @@ class ApprovalChains extends Nmc_Db_Table
$where = $db->quoteInto('ownerBody=?', $approvalBody->getPrimaryKey());
return $this->fetchAll($where, $order, $count, $offset);
}
public function fetchAll($where = null, $order = 'name', $count = null, $offset = null)
{
return parent::fetchAll($where, $order, $count, $offset);
}
}
?>
\ No newline at end of file
......@@ -39,7 +39,7 @@ class Groups extends Nmc_Db_Table
return $row;
}
public function fetchAllWithoutPrimaries($where = null, $order = null, $count = null, $offset = null)
public function fetchAllWithoutPrimaries($where = null, $order = 'name', $count = null, $offset = null)
{
$db = $this->_db;
$select = $db->select();
......@@ -57,6 +57,11 @@ class Groups extends Nmc_Db_Table
return $this->fetchAll($where, $order, $count, $offset);
}
public function fetchAll($where = null, $order = 'name', $count = null, $offset = null)
{
return parent::fetchAll($where, $order, $count, $offset);
}
}
?>
\ No newline at end of file
......@@ -120,5 +120,10 @@ class People extends Nmc_Db_Table
return $person;
}
public function fetchAll($where = null, $order = array('lastName', 'firstName'), $count = null, $offset = null)
{
return parent::fetchAll($where, $order, $count, $offset);
}
}
......@@ -20,6 +20,11 @@ class Users extends Nmc_Db_Table
}
return self::$_instance;
}
public function fetchAll($where = null, $order = 'userName', $count = null, $offset = null)
{
return parent::fetchAll($where, $order, $count, $offset);
}
}
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment