Exemplo n.º 1
0
 private function extractServicesUsageSOAPDatas(Project_Service_ServiceUsage $service_usage)
 {
     $field_datas = array();
     $field_datas['id'] = $service_usage->getId();
     $field_datas['short_name'] = $service_usage->getShortName();
     $field_datas['is_used'] = (int) $service_usage->isUsed();
     return $field_datas;
 }
 /**
  * @param Project                      $project
  * @param Project_Service_ServiceUsage $service
  *
  * @return Boolean
  */
 public function deactivateService(Project $project, Project_Service_ServiceUsage $service)
 {
     return $this->dao->deactivateService($project->getID(), $service->getId());
 }