PHP Classes

File: template/Code/service-lang-section

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Tool Creator   template/Code/service-lang-section   Download  
File: template/Code/service-lang-section
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Melis Tool Creator
Module for the Melis CMS to create tools
Author: By
Last change:
Date: 1 year ago
Size: 1,199 bytes
 

Contents

Class file image Download
public function saveLang($data, $id = null) { $arrayParameters = $this->makeArrayFromParameters(__METHOD__, func_get_args()); $arrayParameters = $this->sendEvent('moduletpl_service_save_lang_start', $arrayParameters); if ($data) { $langTable = $this->getServiceManager()->get('ModuleTplLangTable'); $res = $langTable->save($arrayParameters['data'], $arrayParameters['id']); } $arrayParameters['result'] = $res; $arrayParameters = $this->sendEvent('moduletpl_service_save_lang_end', $arrayParameters); return $arrayParameters['result']; } public function deleteLang($id) { $arrayParameters = $this->makeArrayFromParameters(__METHOD__, func_get_args()); $arrayParameters = $this->sendEvent('moduletpl_service_delete_lang_start', $arrayParameters); $langTable = $this->getServiceManager()->get('ModuleTplLangTable'); $res = $langTable->deleteByFkId($arrayParameters['id']); $arrayParameters['result'] = $res; $arrayParameters = $this->sendEvent('moduletpl_service_delete_lang_end', $arrayParameters); return $arrayParameters['result']; }