当前位置: 首页>>代码示例>>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;未经允许,请勿转载。