當前位置: 首頁>>代碼示例>>PHP>>正文


PHP I2CE_FormStorage::storeMigrateData方法代碼示例

本文整理匯總了PHP中I2CE_FormStorage::storeMigrateData方法的典型用法代碼示例。如果您正苦於以下問題:PHP I2CE_FormStorage::storeMigrateData方法的具體用法?PHP I2CE_FormStorage::storeMigrateData怎麽用?PHP I2CE_FormStorage::storeMigrateData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在I2CE_FormStorage的用法示例。


在下文中一共展示了I2CE_FormStorage::storeMigrateData方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: pre_migrate326

 /**
  * Perform any pre migrate actions for this module from 3.2.5 to 3.2.6.
  * This is for going from pre 3.2 versions where benefit data has
  * been saved to the database.
  * @return boolean
  */
 protected function pre_migrate326()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("salary_grade" => array("start", "midpoint", "end")), $migrate_path);
     $this->do_migrate326 = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:13,代碼來源:iHRIS_Module_ManageJob.php

示例2: pre_migrate3212

 /**
  * Perform any pre migrate actions for this module from 3.2.10 to 3.2.12
  * This is for going from pre 3.2 versions where benefit data has
  * been saved to the database.
  * @return boolean
  */
 protected function pre_migrate3212()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("position" => array("proposed_salary")), $migrate_path);
     $this->do_migrate3212 = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:13,代碼來源:iHRIS_Module_PersonPosition.php

示例3: pre_migrate

 /**
  * Run the pre migrate for this module.  This can use the old config data before it
  * has been changed from the config.
  * @return boolean
  */
 protected function pre_migrate()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("education" => array("edu_type", "degree"), "degree" => array("edu_type")), $migrate_path);
     $this->do_migrate = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:12,代碼來源:iHRIS_Module_PersonEducation.php

示例4: pre_migrate329

 /**
  * Perform any pre migrate actions for this module to upgrade from 3.2.8 to 3.2.9.
  * This is for going from pre 3.2 versions where benefit data has
  * been saved to the database.
  * @return boolean
  */
 protected function pre_migrate329()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("benefit" => array("amount")), $migrate_path);
     $this->do_migrate329 = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:13,代碼來源:iHRIS_Module_Benefit.php

示例5: pre_migrate

 /**
  * Perform any pre migrate actions for this module.
  * This is for going from pre 4.1.8 versions where classifications were saved to entry storage.
  * @return boolean
  */
 protected function pre_migrate()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/4.1.8";
     I2CE_FormStorage::storeMigrateData(array("training" => array("training_classification")), $migrate_path);
     $this->do_migrate = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:12,代碼來源:iHRIS_Module_TrainingClassification.php

示例6: pre_migrate326

 /**
  * Perform any pre migrate actions for this module from 3.2.4 to 3.2.6.
  * This is for going from pre 3.2 versions where benefit data has
  * been saved to the database.
  * @return boolean
  */
 protected function pre_migrate326()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("application" => array("desired_wage")), $migrate_path);
     $this->do_migrate326 = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:13,代碼來源:iHRIS_Module_Application.php

示例7: pre_migrate

 /**
  * Run the pre migrate for this module.  This can use the old config data before
  * it has been changed from the config.
  * @return boolean
  */
 protected function pre_migrate()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("person_id" => array("id_type")), $migrate_path);
     $this->do_migrate = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:12,代碼來源:iHRIS_Module_PersonID.php

示例8: pre_migrate

 /** 
  * Perform any pre migrate actions for this module.
  * This is for going from pre 3.2 versions where benefit data has
  * been saved to the database.
  * @return boolean
  */
 protected function pre_migrate()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("employment" => array("start_wage", "end_wage")), $migrate_path);
     $this->do_migrate = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:13,代碼來源:iHRIS_Module_PersonEmployment.php

示例9: pre_migrate

 /**
  * Perform any pre migrate actions for this module.
  * This is for going from pre 3.2 versions where benefit data has
  * been saved to the database.
  * @return boolean
  */
 protected function pre_migrate()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("person_competency" => array("competency_evaluation", "competency_type", "competency")), $migrate_path);
     $this->do_migrate = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:13,代碼來源:iHRIS_Module_PersonSimpleCompetency.php

示例10: pre_migrate

 /** 
  * Perform any pre migrate actions for this module.
  * This is for going from pre 3.2 versions where benefit data has
  * been saved to the database.
  * @return boolean
  */
 protected function pre_migrate()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("person_language" => array("language", "speaking", "reading", "writing")), $migrate_path);
     $this->do_migrate = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:13,代碼來源:iHRIS_Module_PersonLanguage.php

示例11: pre_migrate

 /**
  * Run the pre migrate for this module.  This can use the old config data before it
  * has been changed from the config.
  * @return boolean
  */
 protected function pre_migrate()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
     I2CE_FormStorage::storeMigrateData(array("demographic" => array("gender", "marital_status")), $migrate_path);
     $this->do_migrate = true;
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:12,代碼來源:iHRIS_Module_PersonDemographic.php

示例12: pre_upgrade

 /**
  * Run the pre upgrade for this module.  This can use the old config data before it
  * has been changed from the config.
  * @param string $old_vers
  * @param string $new_vers
  * @param I2CE_MagicDataNode $new_storage
  * @return boolean
  */
 public function pre_upgrade($old_vers, $new_vers, $new_storage)
 {
     if (I2CE_Validate::checkVersion($old_vers, '<', '3.2.3')) {
         /**
          * In 3.2.3 some lists were moved to magicdata storage so we need to save
          * any old record ids for the old lists for later reference before any field
          * types get changed in magic data.
          */
         $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
         I2CE_FormStorage::storeMigrateData(array("region" => array("country"), "district" => array("region"), "county" => array("district")), $migrate_path);
     }
     return parent::pre_upgrade($old_vers, $new_vers, $new_storage);
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:21,代碼來源:iHRIS_Module_Geography.php

示例13: preUpgradeAccidentTypeFields

 protected function preUpgradeAccidentTypeFields()
 {
     $migrate_path = "/I2CE/formsData/migrate_data/4.0";
     //first let us store the INT fields accident_type that we are updating in case there is an issue.
     I2CE_FormStorage::storeMigrateData(array("accident" => array("accident_type")), $migrate_path);
     //data is stored in $migrage_path/fields/accudent/$formid/accident_type = $int_value
     return true;
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:8,代碼來源:iHRIS_Module_Accident.php

示例14: pre_upgrade

 /**
  * Do any pre upgrade actions if necessary.
  * @param string $old_vers
  * @param string $new_vers
  * @param I2CE_MagicDataNode $new_storage
  * @return boolean
  */
 public function pre_upgrade($old_vers, $new_vers, $new_storage)
 {
     if (I2CE_Validate::checkVersion($old_vers, "<", "3.3.3")) {
         $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
         I2CE_FormStorage::storeMigrateData(array("person" => array("home_country", "home_district", "home_county")), $migrate_path);
     }
     if (I2CE_Validate::checkVersion($old_vers, "<", "3.3.5")) {
         $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
         I2CE_FormStorage::storeMigrateData(array("health_facility" => array("country", "district", "county", "facility_type", "facility_agent", "facility_status")), $migrate_path);
     }
     if (I2CE_Validate::checkVersion($old_vers, "<", "3.3.6")) {
         $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
         I2CE_FormStorage::storeMigrateData(array("cadre" => array("qualification")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("certificate" => array("academic_level")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("deployment" => array("health_facility")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("training_disruption_reason" => array("training_disruption_category")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("training_disrupt" => array("disruption_reason")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("disciplinary_action_reason" => array("disciplinary_action_category")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("disciplinary_action" => array("disciplinary_action_category", "disciplinary_action_reason")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("training_institution" => array("facility_agent", "facility_status", "country", "district", "county")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("training_program" => array("cadre")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("facility_institution" => array("health_facility", "training_institution")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("demographic" => array("birth_country", "birth_district", "birth_county")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("education" => array("academic_level", "certificate")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("training" => array("training_institution", "cadre", "out_country")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("exam" => array("try", "results")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("registration" => array("practice_type")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("out_migration" => array("country", "out_migration_reason")), $migrate_path);
         I2CE_FormStorage::storeMigrateData(array("private_practice" => array("health_facility")), $migrate_path);
     }
     return parent::pre_upgrade($old_vers, $new_vers, $new_storage);
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:39,代碼來源:iHRIS_Module_Qualify.php

示例15: pre_upgrade

 /**
  * Run the pre upgrade for this module.  This can use the old config data before it
  * has been changed from the config.
  * @param string $old_vers
  * @param string $new_vers
  * @param I2CE_MagicDataNode $new_storage
  * @return boolean
  */
 public function pre_upgrade($old_vers, $new_vers, $new_storage)
 {
     if (I2CE_Validate::checkVersion($old_vers, '<', '3.2.3')) {
         /**
          * In 3.2.3 some lists were moved to magicdata storage so we need to save
          * any old record ids for the old lists for later reference before any field
          * types get changed in magic data.
          */
         $migrate_path = "/I2CE/formsData/migrate_data/3.2.3";
         I2CE_FormStorage::storeMigrateData(array("training_course" => array("training_institution", "training_funder", "continuing_education_course", "training_course_status", "training_course_category"), "person_scheduled_training_course" => array("training_course_evaluation", "training_course_requestor", "training_course", "scheduled_training_course"), "scheduled_training_course" => array("country", "district", "county")), $migrate_path);
     }
     return parent::pre_upgrade($old_vers, $new_vers, $new_storage);
 }
開發者ID:apelon-ohie,項目名稱:ihris-site,代碼行數:21,代碼來源:iHRIS_Module_Training_Course.php


注:本文中的I2CE_FormStorage::storeMigrateData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。