%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/lightco1/www/administrator/components/com_chronoforms5/chronoforms/events/fn/
Upload File :
Create Path :
Current File : /home/lightco1/www/administrator/components/com_chronoforms5/chronoforms/events/fn/fn.php

<?php

/**

* ChronoCMS version 1.0

* Copyright (c) 2012 ChronoCMS.com, All rights reserved.

* Author: (ChronoCMS.com Team)

* license: Please read LICENSE.txt

* Visit http://www.ChronoCMS.com for regular updates and information.

**/

namespace GCore\Admin\Extensions\Chronoforms\Events\Fn;

/* @copyright:ChronoEngine.com @license:GPLv2 */defined('_JEXEC') or die('Restricted access');

defined("GCORE_SITE") or die;

class Fn extends \GCore\Admin\Extensions\Chronoforms\Events\Event{

	static $title = 'Function Call';

	static $cat_id = 'basic';

	static $cat_title = 'Basic';

	

	public static function config($data = array(), $k = '{N}'){

		echo \GCore\Helpers\Html::formStart('jsevent_config', 'fn_config_'.$k);

		echo \GCore\Helpers\Html::formSecStart();

		

		echo \GCore\Helpers\Html::formLine('-', array('type' => 'multi', 'inputs' => array_merge(self::_fields($data, $k), array(

			array('name' => 'Form[extras][jsevents]['.$k.'][function]', 'type' => 'text', 'class' => 'L', 'label' => array('position' => 'top', 'text' => l_('CF_EVENT_FUNCTION_NAME')), 'sublabel' => l_('CF_EVENT_FUNCTION_NAME_DESC')),

		))));

		

		echo \GCore\Helpers\Html::input('Form[extras][jsevents]['.$k.'][type]', array('type' => 'hidden', 'value' => 'fn'));

		echo \GCore\Helpers\Html::formSecEnd();

		echo \GCore\Helpers\Html::formEnd();

	}

	

	public static function output($target, $event){

		return $event['function']."($(this));";

	}

}

?>

Zerion Mini Shell 1.0