예제 #1
0
 public static function setFavorite($project_id, $set = true)
 {
     $db = Zend_Db_Table::getDefaultAdapter();
     return $db->update('project_users', array('favorite' => $set ? 1 : 0), $db->quoteInto('user_id = ? AND ', ProNav_Auth::getUserID()) . $db->quoteInto(' project_id = ?', $project_id));
 }
예제 #2
0
 private function getUsersForCorp($corporation_id)
 {
     $users = Application_Model_Corporations::GetUsers($corporation_id);
     return ProNav_Utils::getSelectOptions($users, 'user_id', 'LFMI', ProNav_Auth::isEmployee() ? null : ProNav_Auth::getUserID());
 }