PHP Classes

File: template/Code/tab-prop-actions

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Tool Creator   template/Code/tab-prop-actions   Download  
File: template/Code/tab-prop-actions
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,477 bytes
 

Contents

Class file image Download
public function renderToolAction() { $id = $this->params()->fromQuery('id', 'add'); $view = new ViewModel(); $view->id = $id; return $view; } public function renderToolHeaderAction() { $view = new ViewModel(); $id = $this->params()->fromQuery('id', 'add'); $translator = $this->getServiceManager()->get('translator'); $title = $translator->translate('tr_moduletpl_common_button_add'); if (is_numeric($id)){ $title = $translator->translate('tr_moduletpl_title').' / '.$id; } $view->id = $id; $view->title = $title; return $view; } public function renderToolContentAction() { $view = new ViewModel(); $id = $this->params()->fromQuery('id', 'add'); $view->id = $id; return $view; } public function renderToolMainContentAction() { $view = new ViewModel(); $moduleTplForm = $this->getForm(); $id = $this->params()->fromQuery('id', 'add'); $view->id = $id; $moduleTplForm->setAttribute('id', $id. '_' . $moduleTplForm->getAttribute('id')); if ($id != 'add'){ $moduleTplTable = $this->getServiceManager()->get('ModuleTplTable'); $data = $moduleTplTable->getEntryById($id)->current(); $moduleTplForm->bind($data); } $view->moduleTplForm = $moduleTplForm; return $view; }