Beispiel #1
0
 public function SetProject($project)
 {
     if ($this->project != $project) {
         $validator = new C3op_Util_ValidPositiveInteger();
         if ($validator->isValid($project)) {
             $this->project = $project;
         }
     }
 }
Beispiel #2
0
 public function SetInstitution($institution)
 {
     $validator = new C3op_Util_ValidPositiveInteger();
     if ($validator->isValid($institution) && strlen($institution) <= 40) {
         if ($this->institution != $institution) {
             $this->institution = $institution;
         }
     } else {
         throw new C3op_Register_LinkageException("This ({$institution}) is not a valid institution.");
     }
 }
Beispiel #3
0
 public function SetStatus($status)
 {
     $validator = new C3op_Util_ValidPositiveInteger();
     if ($validator->isValid($status)) {
         if ($this->status != $status) {
             $this->status = $status;
         }
     } else {
         throw new C3op_Projects_HumanResourceException("This ({$status}) is not a valid status.");
     }
 }
Beispiel #4
0
 public function SetResponsible($responsible)
 {
     if ($this->responsible != $responsible) {
         $validator = new C3op_Util_ValidPositiveInteger();
         if ($validator->isValid($responsible)) {
             $this->responsible = $responsible;
         }
     }
 }
Beispiel #5
0
 public function SetAreaActivity($areaActivity)
 {
     if ($this->areaActivity != $areaActivity) {
         $validator = new C3op_Util_ValidPositiveInteger();
         if ($validator->isValid($areaActivity)) {
             $this->areaActivity = $areaActivity;
         }
     }
 }