Esempio n. 1
0
 private static function getPriority(Partner $partner)
 {
     $priorityGroup = PriorityGroupPeer::retrieveByPK($partner->getPriorityGroupId());
     if (!$priorityGroup) {
         return PriorityGroup::DEFAULT_PRIORITY;
     }
     return $priorityGroup->getPriority();
 }
 public function getPriority($isBulk)
 {
     $priorityGroup = PriorityGroupPeer::retrieveByPK($this->getPriorityGroupId());
     if (!$priorityGroup) {
         if ($isBulk) {
             return PriorityGroup::DEFAULT_BULK_PRIORITY;
         }
         return PriorityGroup::DEFAULT_PRIORITY;
     }
     if ($isBulk) {
         return $priorityGroup->getBulkPriority();
     }
     return $priorityGroup->getPriority();
 }