Пример #1
0
 /**
  * Loads the meta data of the original, new, and custom file into the variables originalData, newData, and customData respectively it then transforms them into a structure that EditView Merge would understand
  *
  * @param STRING $module - name of the module's files that are to be merged
  * @param STRING $original_file - path to the file that originally shipped with sugar
  * @param STRING $new_file - path to the new file that is shipping with the patch 
  * @param STRING $custom_file - path to the custom file
  */
 protected function loadData($module, $original_file, $new_file, $custom_file)
 {
     parent::loadData($module, $original_file, $new_file, $custom_file);
     $this->originalData = array($module => array($this->viewDefs => array($this->panelName => array('DEFAULT' => $this->originalData[$module]))));
     $this->customData = array($module => array($this->viewDefs => array($this->panelName => array('DEFAULT' => $this->customData[$module]))));
     $this->newData = array($module => array($this->viewDefs => array($this->panelName => array('DEFAULT' => $this->newData[$module]))));
 }
Пример #2
0
 /**
  * Loads the meta data of the original, new, and custom file into the variables originalData, newData, and customData respectively it then transforms them into a structure that EditView Merge would understand
  *
  * @param STRING $module - name of the module's files that are to be merged
  * @param STRING $original_file - path to the file that originally shipped with sugar
  * @param STRING $new_file - path to the new file that is shipping with the patch 
  * @param STRING $custom_file - path to the custom file
  */
 protected function loadData($module, $original_file, $new_file, $custom_file)
 {
     EditViewMerge::loadData($module, $original_file, $new_file, $custom_file);
     $this->originalData = array($module => array($this->viewDefs => $this->originalData[$module]));
     $this->customData = array($module => array($this->viewDefs => $this->customData[$module]));
     $this->newData = array($module => array($this->viewDefs => $this->newData[$module]));
 }