PHP Classes

File: template/Code/file-input-params-lang

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Tool Creator   template/Code/file-input-params-lang   Download  
File: template/Code/file-input-params-lang
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: 749 bytes


Class file image Download
// File input $filesInpt = $this->params()->fromFiles(); if (!empty($filesInpt['language'])) if (!empty($filesInpt['language'][$key])) foreach ($filesInpt['language'][$key] As $input => $file){ if ($langForm->has($input)) if (!empty($file['tmp_name'])){ $this->fileInput($input, $langForm->getInputFilter()); $formData[$input] = $file; }else if (is_numeric($formData['#TCFKEYID'])) $langForm->getInputFilter()->get($input)->setRequired(false); }