originalData = array($module=>array( $this->viewDefs=>array($this->panelName=>array('DEFAULT'=>$this->originalData[$module]['list_fields'])))); $this->customData = array($module=>array( $this->viewDefs=>array($this->panelName=>array('DEFAULT'=>$this->customData[$module]['list_fields'])))); $this->mergeData = $this->newData; $this->newData = array($module=>array( $this->viewDefs=>array($this->panelName=>array('DEFAULT'=>$this->newData[$module]['list_fields'])))); } /** * We take mergeData which is a copy of the new meta data prior to merging and set it's list_fields variable to the merged panels * */ protected function setPanels(){ $this->mergeData['list_fields'] = $this->buildPanels(); } /** * This will save the merged data to a file * * @param STRING $to - path of the file to save it to * @return BOOLEAN - success or failure of the save */ public function save($to){ return write_array_to_file("$this->varName", $this->newData, $to); } } ?>