| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/newsite/modules/mod_ja_acm/admin/fields/ |
Upload File : |
<?php
/**
*------------------------------------------------------------------------------
* @package T3 Framework for Joomla!
*------------------------------------------------------------------------------
* @copyright Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @authors JoomlArt, JoomlaBamboo, (contribute to this project at github
* & Google group to become co-author)
* @Google group: https://groups.google.com/forum/#!forum/t3fw
* @Link: http://t3-framework.org
*------------------------------------------------------------------------------
*/
// Ensure this file is being included by a parent file
defined('_JEXEC') or die( 'Restricted access' );
jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');
/**
* List of checkbox base on other fields
*
* @since Class available since Release 1.2.0
*/
abstract class JAFormField extends JFormField
{
function renderLayout ($file, $displayData) {
$path = JPATH_ROOT . '/modules/mod_ja_acm/admin/tmpl/field-' . $file . '.php';
if (!is_file ($path)) return null;
ob_start();
include $path;
$layoutOutput = ob_get_contents();
ob_end_clean();
return $layoutOutput;
}
function getItems() {
$items = array();
foreach ($this->element->children() as $element)
{
// clone element to make it as field
$fdata = preg_replace ('/<(\/?)item(\s|>)/mi', '<\1field\2', $element->asXML());
// remove cols, rows, size attributes
$fdata = preg_replace ('/\s(cols|rows|size)=(\'|")\d+(\'|")/mi', '', $fdata);
// change type text to textarea
$fdata = str_replace ('type="text"', 'type="textarea"', $fdata);
$felement = new JXMLElement($fdata);
$field = JFormHelper::loadFieldType((string)$felement['type']);
if ($field === false)
{
$field = $this->loadFieldType('text');
}
// Setup the JFormField object.
$field->setForm($this->form);
if ($field->setup($felement, null, $this->name))
{
$items[] = $field;
}
}
return $items;
}
}