Beispiel #1
1
 /**
  * constructor (registers additional tasks to methods)
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     // Set reference to parameters
     $this->params = JComponentHelper::getParams('com_chessvn');
     //$dummy = $this->params->get('parm_text');
 }
Beispiel #2
0
 /**
  * Constructor
  *
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Register additional tasks
     $this->registerTask('upload', 'save');
     $this->registerTask('decline', 'approve');
 }
Beispiel #3
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     if (JDEBUG) {
         JLog::addLogger(array('text_file' => 'com_usernotes.log.php'), JLog::ALL, array('com_usernotes'));
     }
 }
Beispiel #4
0
 /**
  *
  * Class Constructor
  *
  * @param	array	$config		An optional associative array of configuration settings.
  * @return	void
  * @since	1.0
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Apply, Save & New, and Save As copy should be standard on forms.
     $this->registerTask('savenclose', 'save');
     $this->view_list = 'subscribers';
 }
Beispiel #5
0
 /**
  * Constructor
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('apply', 'save');
     $this->registerTask('save2new', 'save');
     $this->registerTask('save2copy', 'save');
 }
 /**
  * Constructor
  *
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Register additional tasks
     $this->registerTask('save2milestone', 'save');
     $this->registerTask('save2tasklist', 'save');
 }
Beispiel #7
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->internalContext = $this->input->getCmd('context', 'com_content.article');
     $parts = DPFieldsHelper::extract($this->internalContext);
     $this->component = $parts ? $parts[0] : null;
 }
Beispiel #8
0
 /**
  * Function that allows child controller access to model data after the data has been saved.
  *
  * @param   JModelLegacy  $model      The data model object.
  * @param   array         $validData  The validated data.
  *
  * @return	void
  * @since	1.6
  */
 public function __construct($config = array())
 {
     $this->view_item = 'agent';
     $this->view_list = 'agents';
     $this->context = 'customer';
     return parent::__construct($config);
 }
Beispiel #9
0
 function __construct($config = array())
 {
     parent::__construct($config);
     // Need to set list view to plural format in legacy/controllers/form/constructor with array('/is$/i', "ises")
     // Or change like here
     $this->view_list = $this->view_item . "es";
 }
Beispiel #10
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->_app = JFactory::getApplication();
     $this->_input = $this->_app->input;
     $this->_config = JSNConfigHelper::get();
 }
Beispiel #11
0
	public function __construct($config = array())
	{
	
		$this->view_item = 'teruletiszervezetek';
		$this->view_list = 'teruletiszervezeteks';
		parent::__construct($config);
	}	
Beispiel #12
0
	public function __construct($config = array())
	{
	
		$this->view_item = 'kapcsolatok';
		$this->view_list = 'kapcsolatoks';
		parent::__construct($config);
	}	
Beispiel #13
0
	public function __construct($config = array())
	{
	
		$this->view_item = 'felhasznalok';
		$this->view_list = 'felhasznaloks';
		parent::__construct($config);
	}	
Beispiel #14
0
 /**
  * Constructor
  *
  */
 function __construct()
 {
     parent::__construct();
     // Register Extra task
     $this->registerTask('apply', 'save');
     $this->registerTask('add', 'edit');
 }
 /**
  * Construct the controller 
  * 
  * @copyright 
  * @author		RolandD 
  * @todo 
  * @see 
  * @access 		public
  * @param 
  * @return 
  * @since 		3.0
  */
 public function __construct()
 {
     parent::__construct();
     // Register some task
     $this->registerTask('sortcategories', 'options');
     $this->registerTask('icecatsettings', 'options');
 }
Beispiel #16
0
 /**
  * Constructor
  *
  * @param   array  $config  constructor parameters
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Initialise variables.
     $app = JFactory::getApplication();
     $input = $app->input;
     // Get the id
     $cid = $input->get('cid', array(), 'array');
     $cid = count($cid) ? $cid[0] : '';
     if (!empty($cid)) {
         // From the packages view
         $name = $cid;
         $path = JPATH_COMPONENT_ADMINISTRATOR . '/packages/' . $name . '.xml';
         $id = LocaliseHelper::getFileId($path);
     } else {
         // From the package view
         $data = $input->get('jform', array(), 'array');
         $id = $data['id'];
         $name = $data['name'];
     }
     // Set the id, and path in the session
     $app->setUserState('com_localise.edit.package.id', $id);
     $app->setUserState('com_localise.package.name', $name);
     // Set the id and unset the cid
     if (!empty($id) && $input->get('task') == 'add') {
         $input->set('task', 'edit');
     }
     $input->set('id', $id);
     $input->set('cid', array());
 }
 public function __construct()
 {
     parent::__construct();
     $this->_link = 'index.php?option=com_ninjarsssyndicator&view=feeds';
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
 }
Beispiel #18
0
	public function __construct($config = array())
	{
	
		$this->view_item = 'extension';
		$this->view_list = 'extensions';
		parent::__construct($config);
	}	
Beispiel #19
0
 /**
  * Constructor.
  *
  * @param   array  $config  An optional associative array of configuration settings.
  *
  * @see     JControllerLegacy
  * @since   12.2
  * @throws  Exception
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     if ($this->input->get("component", 0, "int")) {
         $this->view_list = "component";
     }
 }
Beispiel #20
0
	public function __construct($config = array())
	{
	
		$this->view_item = 'cimkek';
		$this->view_list = 'cimkeks';
		parent::__construct($config);
	}	
Beispiel #21
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('themeinstall', 'themeinstall');
     $this->registerTask('bgimagesmall', 'bgimagesmall');
     $this->registerTask('bgimagemedium', 'bgimagemedium');
 }
Beispiel #22
0
 function __construct($config = array())
 {
     parent::__construct($config);
     // - - - - - - - - - -
     // Load external image - Picasa
     // - - - - - - - - - -
     // In case the "Load" button will be saved, two actions need to be done:
     // 1) Save (apply) the category data (we use Joomla! framework controller so we need to set save method, task = apply
     // 2) load external images - we need to identify "Load", but task is apply, so we use subtask = loadextimg
     $task = JRequest::getVar('task');
     if ((string) $task == 'loadextimgp') {
         if ($this->registerTask('loadextimgp', 'save')) {
             JRequest::setVar('task', 'apply');
             // we need to apply category data
             JRequest::setVar('subtask', 'loadextimgp');
             // we need to get info to run loading images
         }
     }
     if ((string) $task == 'loadextimgf') {
         if ($this->registerTask('loadextimgf', 'save')) {
             JRequest::setVar('task', 'apply');
             // we need to apply category data
             JRequest::setVar('subtask', 'loadextimgf');
             // we need to get info to run loading images
         }
     }
     $this->registerTask('uploadextimgf', 'uploadExtImgF');
     $this->registerTask('uploadextimgfpgn', 'uploadExtImgFPgn');
     // If there will be not used pagination (less than 20 images e.g.) data will be saved in model and images loaded - no redirection
     // If there will be used pagination, don't save the data again, redirect the site with "loadextimgpgn" id value
     $this->registerTask('loadextimgpgn', 'loadExtImgPgn');
     // data stored now we only loading other images
     // - - - - - - - - - -
 }
 /**
  * Construct the class
  *
  * @copyright
  * @author 		RolandD
  * @todo
  * @see
  * @access 		public
  * @param
  * @return
  * @since 		4.3
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Define mappings
     $this->registerTask('unpublish', 'publish');
     $this->registerTask('uncombine', 'publish');
     $this->registerTask('combine', 'publish');
 }
Beispiel #24
0
 /**
  * Constructor.
  *
  * @param  array  $config  An optional associative array of configuration settings.
  *
  * @since  1.6
  * @see    JController
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Guess the JText message prefix. Defaults to the option.
     if (empty($this->extension)) {
         $this->extension = $this->input->get('extension', 'com_content');
     }
 }
Beispiel #25
0
 function __construct($config = array())
 {
     parent::__construct($config);
     // Register Extra tasks
     $this->registerTask('unpublish', 'publish');
     $this->registerTask('trash', 'remove');
     $this->registerTask('delete', 'remove');
 }
Beispiel #26
0
 function __construct()
 {
     parent::__construct();
     $this->layout = 'edit';
     // Register Extra tasks
     //$this->registerTask( 'add'  , 	'eidt' );
     //$view = JRequest::getVar( 'view' );
 }
Beispiel #27
0
 /**
  * Class constructor.
  *
  * @param   array  $config  A named array of configuration variables.
  *
  * @since   1.6
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Guess the option as com_NameOfController
     if (empty($this->option)) {
         $this->option = 'com_' . strtolower($this->getName());
     }
 }
Beispiel #28
0
 /**
  * Class constructor.
  *
  * @param   array  $config  A named array of configuration variables.
  *
  * @since   1.6
  */
 public function __construct($config = array())
 {
     $comquick2cartHelper = new comquick2cartHelper();
     $this->my_coupons_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=coupons&layout=my');
     $this->create_coupon_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=couponform');
     parent::__construct($config);
     $this->view_list = 'coupons';
 }
 function __construct($default = array())
 {
     parent::__construct($default);
     $this->registerTask('save', 'saveForm');
     $this->registerTask('apply', 'saveForm');
     $this->registerTask('save2new', 'saveForm');
     $this->registerTask('save2copy', 'copyForm');
 }
Beispiel #30
0
 /**
  * Constructor.
  *
  * @param  array  $config  An optional associative array of configuration settings.
  *
  * @since  1.6
  * @see    JController
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Guess the Lang message prefix. Defaults to the option.
     if (empty($this->extension)) {
         $this->extension = Request::getCmd('extension', 'com_content');
     }
 }