cc-3936: added method to make it easier to get users of a certain type.

This commit is contained in:
Rudi Grinberg 2012-08-24 12:36:20 -04:00
parent 4efdf71aea
commit e53c20bbcd
1 changed files with 3 additions and 0 deletions

View File

@ -238,6 +238,9 @@ class Application_Model_User
return $user;
}
public static function getUsersOfType($type) {
return CcSubjsQuery::create()->filterByDbType($type)->find();
}
public static function getUsers(array $type, $search=null)
{
$con = Propel::getConnection();