/**
  * Get all the description fields
  *
  * * Error codes:
  *   * 3107, No custom project description fields
  *
  * @param String  $sessionKey The project admin session hash
  *
  * @return ArrayOfDescFields
  */
 public function getPlateformProjectDescriptionFields($sessionKey)
 {
     $this->continueSession($sessionKey);
     $project_desc_fields = $this->description_factory->getCustomDescriptions();
     $soap_return = array();
     if (empty($project_desc_fields)) {
         throw new SoapFault('3107', "No custom project description fields");
     }
     foreach ($project_desc_fields as $desc_field) {
         $soap_return[] = $this->extractDescFieldSOAPDatas($desc_field);
     }
     return $soap_return;
 }
Example #2
0
 //Project admin
 $csv_exporter->buildDatas($dao->getIdsOfActiveProjectsBeforeEndDate(), "Project ID");
 $csv_exporter->buildDatas($dao->getNameOfActiveProjectsBeforeEndDate(), "Project Name");
 $csv_exporter->buildDatas($dao->getShortNameOfActiveProjectsBeforeEndDate(), "Project Short Name");
 $csv_exporter->buildDatas($dao->getPrivacyOfActiveProjectsBeforeEndDate(), "Public Project");
 $csv_exporter->buildDatas($dao->getDescriptionOfActiveProjectsBeforeEndDate(), "Description");
 $csv_exporter->buildDatas($dao->getRegisterTimeOfActiveProjectsBeforeEndDate(), "Creation date");
 $csv_exporter->buildDatas($dao->getInfosFromTroveGroupLink(), "Organization");
 $csv_exporter->buildDatas($dao->getAdministrators(), "Created by");
 $csv_exporter->buildDatas($dao->getAdministratorsRealNames(), "Created by (Real name)");
 $csv_exporter->buildDatas($dao->getAdministratorsEMails(), "Created by (Email)");
 $csv_exporter->buildDatas($dao->getNumberOfUserAddedBetweenStartDateAndEndDate(), "Users added");
 //Custom Descriptions
 $custom_description_factory = new Project_CustomDescription_CustomDescriptionFactory(new Project_CustomDescription_CustomDescriptionDao());
 $custom_description_value_dao = new Project_CustomDescription_CustomDescriptionValueDao();
 foreach ($custom_description_factory->getCustomDescriptions() as $custom_description) {
     $csv_exporter->buildDatas($custom_description_value_dao->getAllDescriptionValues($custom_description->getId()), $custom_description->getLabel());
 }
 //Trove Cats
 $trove_cat_dao = new TroveCatDao();
 $trove_cat_factory = new TroveCatFactory($trove_cat_dao);
 $mandatories_trove_cat = $trove_cat_factory->getMandatoryParentCategoriesUnderRoot();
 foreach ($mandatories_trove_cat as $trove_cat) {
     $csv_exporter->buildDatas($trove_cat_dao->getMandatoryCategorySelectForAllProject($trove_cat->getId()), $trove_cat->getFullname());
 }
 //CVS & SVN
 $csv_exporter->buildDatas($dao->getCVSActivities(), "CVS activities");
 $csv_exporter->buildDatas($dao->getSVNActivities(), "SVN activities");
 //GIT
 $p = $pluginManager->getPluginByName('git');
 if ($p && $pluginManager->isPluginAvailable($p)) {