/
home
/
assocoweys
/
avexp
/
administrator
/
components
/
com_jckman
/
models
/
fields
/
Upload File
HOME
<?php /*------------------------------------------------------------------------ # Copyright (C) 2005-2012 WebxSolution Ltd. All Rights Reserved. # @license - GPLv2.0 # Author: WebxSolution Ltd # Websites: http://www.webxsolution.com # Terms of Use: An extension that is derived from the JoomlaCK editor will only be allowed under the following conditions: http://joomlackeditor.com/terms-of-use # ------------------------------------------------------------------------*/ defined( '_JEXEC' ) or die; defined('JPATH_PLATFORM') or die; jimport('joomla.form.formfield'); jimport('joomla.form.helper'); JFormHelper::loadFieldClass('list'); /** * Supports an HTML select list of files * * @package Joomla.Platform * @subpackage Form * @since 11.1 */ class JFormFieldWindowfeaturesList extends JFormFieldList { /** * The form field type. * * @var string * @since 11.1 */ public $type = 'WindowfeaturesList'; /** * Method to get the list of files for the field options. * Specify the target directory with a directory attribute * Attributes allow an exclude mask and stripping of extensions from file name. * Default attribute may optionally be set to null (no file) or -1 (use a default). * * @return array The field option objects. * * @since 11.1 */ protected function getInput() { $value = $this->value; if(is_string($value) && preg_match('/^\[.*\]$/',$value)) { $value = str_replace('\'','"',$value); $this->value = json_decode($value); } $this->multiple = true; $this->name .= '[]'; return parent::getInput(); } }