b0y-101 Mini Shell


Current Path : E:/www2/plan/plugins/system/helix3/layout/layout-settings/
File Upload :
Current File : E:/www2/plan/plugins/system/helix3/layout/layout-settings/fields-helper.php

<?php
/**
 * @package Helix3 Framework
 * @author JoomShaper https://www.joomshaper.com
 * @copyright (c) 2010 - 2021 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
 */

//no direct accees
defined ('_JEXEC') or die ('resticted aceess');

use Joomla\CMS\Filesystem\Folder;
class FieldsHelper
{

	protected function __construct()
	{

		$types = Folder::files( dirname( __FILE__ ) . '/types', '\.php$', false, true);

		foreach ($types as $type) {
			require_once $type;
		}
	}

	protected static function getInputElements( $key, $attr )
	{
		return call_user_func(array( 'SpType' . ucfirst( $attr['type'] ), 'getInput'), $key, $attr );
	}

}

Copyright © 2019 by b0y-101