コード例 #1
0
 /**
  * Hook actionObjectLanguageAddAfter
  * @return array
  */
 public function hookActionObjectLanguageAddAfter($aParams)
 {
     $oLanguages = $aParams['object'];
     if (Validate::isLoadedObject($oLanguages)) {
         $oNowLanguageLink = new NowLanguageLink();
         $oNowLanguageLink->id_lang = $oLanguages->id;
         $oNowLanguageLink->folder_name = $oLanguages->iso_code;
         $oNowLanguageLink->save();
     }
 }