Exemplo n.º 1
0
 public function update($arrayNewTranslate, $arrayOldTranslate)
 {
     $arrDiff = array_diff($arrayNewTranslate, $arrayOldTranslate);
     $arrIntersect = array_intersect($arrayNewTranslate, $arrayOldTranslate);
     $arrResult = array_merge($arrDiff, $arrIntersect);
     CApp::setTranslateArray($arrResult);
     return $arrResult;
 }