Exemple #1
0
 /**
  * 
  * Class Constructor
  * 
  * @access public
  * @param $config
  * @return Object&
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Register Extra tasks
     $this->registerTask('applyEntity', 'saveEntity');
     $this->registerTask('saveEntity2New', 'saveEntity');
     $this->registerTask('unpublish', 'publishEntities');
     $this->registerTask('publish', 'publishEntities');
 }
Exemple #2
0
 /**
  * Show configuration
  * @access public
  * @param $cachable string
  *       	 the view output will be cached
  * @return void
  */
 function display($cachable = false, $urlparams = false)
 {
     // Access check.
     if (!$this->allowAdmin($this->option)) {
         $this->setRedirect('index.php?option=com_jmap&task=cpanel.display', JTEXT::_('COM_JMAP_ERROR_ALERT_NOACCESS'));
         return false;
     }
     parent::display($cachable);
 }
Exemple #3
0
 /**
  * Default listEntities
  * 
  * @access public
  * @param $cachable string
  *       	 the view output will be cached
  * @return void
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Access check.
     if (!$this->user->authorise('jmap.google', $this->option)) {
         $this->setRedirect('index.php?option=com_jmap&task=cpanel.display', JTEXT::_('COM_JMAP_ERROR_ALERT_NOACCESS'));
         return false;
     }
     // Composer autoloader
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/framework/composer/autoload_real.php';
     ComposerAutoloaderInitfc5c9af51413a149e4084a610a3ab6de::getLoader();
     $this->setModelState('google');
     parent::display($cachable, $urlparams);
 }
 /**
  * Show Control Panel
  * @access public
  * @return void
  */
 function display($cachable = false, $urlparams = false)
 {
     $defaultModel = $this->getModel();
     $defaultModel->setState('option', $this->option);
     // Auto-Refresh menu sources
     if (!$defaultModel->syncMenuSources()) {
         // Model set exceptions for something gone wrong, so enqueue exceptions and levels on application object then set redirect and exit
         $modelExceptions = $defaultModel->getErrors();
         foreach ($modelExceptions as $exception) {
             $this->app->enqueueMessage($exception->getMessage(), $exception->getErrorLevel());
         }
     }
     $view = $this->getView();
     $HTTPClient = new JMapHttp();
     $view->set('httpclient', $HTTPClient);
     parent::display($cachable);
 }
Exemple #5
0
 /**
  * Class Constructor
  * 
  * @access public
  * @return Object&
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Register Extra tasks
     $this->registerTask('moveorder_up', 'moveOrder');
     $this->registerTask('moveorder_down', 'moveOrder');
     $this->registerTask('applyEntity', 'saveEntity');
     $this->registerTask('unpublish', 'publishEntities');
     $this->registerTask('publish', 'publishEntities');
 }
 /**
  * Display main wizard creation panel for supported extensions
  * 
  * @param $cachable string
  *       	 the view output will be cached
  * @return void
  */
 function display($cachable = false, $urlparams = false)
 {
     // Parent construction and view display
     parent::display($cachable);
 }
Exemple #7
0
 /**
  * Show Control Panel
  * 
  * @access public
  * @param $cachable string
  *       	 the view output will be cached
  * @return void
  */
 function display($cachable = false, $urlparams = false)
 {
     parent::display();
 }
 /**
  * Class Constructor
  * 
  * @access public
  * @return Object&
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
Exemple #9
0
 /**
  * Class Constructor
  * 
  * @access public
  * @return Object&
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('view', 'display');
 }