| Current Path : /var/www/components/com_contactpush/ |
| Current File : /var/www/components/com_contactpush/controller.php |
<?php
/** ______________________________________________
* o O | |
* ((((( o < Generated with Cook Self Service V3.1 |
* ( o o ) |______________________________________________|
* --------oOOO-----(_)-----OOOo---------------------------------- www.j-cook.pro --- +
* @version 1.0.0
* @package Contact Push
* @subpackage Contact Push
* @copyright Netamity 2017
* @author Andy Hickey - www.netamity.com - andy@netamity.com
* @license GPL V2+
*
* .oooO Oooo.
* ( ) ( )
* -------------\ (----) /----------------------------------------------------------- +
* \_) (_/
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
/**
* Contactpush Controller.
*
* @package Contactpush
* @subpackage Controller.
*/
class ContactpushCkController extends ContactpushClassController
{
/**
* The default view.
*
* @var string
*/
protected $default_view = 'cpanel';
/**
* Method to display a view.
*
* @access public
* @param boolean $cachable If true, the view output will be cached.
* @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}..
*
*
* @since Cook 1.0
*
* @return void
*/
public function display($cachable = false, $urlparams = false)
{
$jinput = JFactory::getApplication()->input;
$this->_parentDisplay();
//If page is called through POST, reconstruct the url
if ($jinput->getMethod(null, null) == 'POST')
{
//Kill the post and rebuild the url
$this->setRedirect(ContactpushHelper::urlRequest());
return;
}
return $this;
}
}
// Load the fork
ContactpushHelper::loadFork(__FILE__);
// Fallback if no fork has been found
if (!class_exists('ContactpushController')){ class ContactpushController extends ContactpushCkController{} }