cc-3936: added method to make it easier to get users of a certain type.
This commit is contained in:
parent
4efdf71aea
commit
e53c20bbcd
|
@ -238,6 +238,9 @@ class Application_Model_User
|
||||||
return $user;
|
return $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getUsersOfType($type) {
|
||||||
|
return CcSubjsQuery::create()->filterByDbType($type)->find();
|
||||||
|
}
|
||||||
public static function getUsers(array $type, $search=null)
|
public static function getUsers(array $type, $search=null)
|
||||||
{
|
{
|
||||||
$con = Propel::getConnection();
|
$con = Propel::getConnection();
|
||||||
|
|
Loading…
Reference in New Issue