Beispiel #1
0
 public function getAllOutlaysForHumanResource(C3op_Projects_HumanResource $h)
 {
     $result = array();
     foreach ($this->db->query(sprintf('SELECT id FROM projects_outlays WHERE human_resource = %d;', $h->GetId())) as $row) {
         $result[] = $row['id'];
     }
     return $result;
 }
Beispiel #2
0
 private function ManageContractingLink(C3op_Projects_HumanResource $humanResource)
 {
     $contractingLink = "";
     if ($humanResource->GetContact() > 0 && $humanResource->GetStatus() == C3op_Projects_HumanResourceStatusConstants::STATUS_FORESEEN) {
         $contractingLink = sprintf("javascript:passIdToAjax('/projects/human-resource/contract-contact', %d, contractContactResponse)", $humanResource->GetId());
     }
     return $contractingLink;
 }