Beispiel #1
0
 /**
  * Constructor.
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->_parser = $this->getService($config->parser);
     JFactory::getLanguage()->load('lib_anahita');
     JFactory::getLanguage()->load('com_actors');
 }
Beispiel #2
0
 /**
  * Constructor.
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->registerCallback(array('before.process', 'before.payment', 'before.confirm', 'before.xpayment', 'layout.payment'), array($this, 'validateUser'));
     $this->registerCallback(array('before.process', 'before.confirm', 'layout.confirm'), array($this, 'validatePayment'));
     $this->getService('repos://site/people.person')->getValidator()->addValidation('username', 'uniqueness')->addValidation('email', 'uniqueness');
 }
Beispiel #3
0
 /**
  * Constructor.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  *
  * @return void
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->_base_path = $config->base_path;
     $this->setView($config->view);
     $this->getService()->set('com:html.controller', $this);
     if ($this->_base_path) {
         if (!preg_match('%^(\\w:)?[/\\\\]%', $this->_base_path)) {
             $this->_base_path = realpath(JPATH_ROOT . '/' . $this->_base_path);
         }
         $this->getService()->setConfig($this->_view, array('template_paths' => $this->_base_path));
     }
 }
Beispiel #4
0
 /**
  * Constructor.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->registerCallback('after.add', array($this, 'redirect'), array('url' => $config->redirect_to_after_login));
     $this->registerCallback('after.delete', array($this, 'redirect'), array('url' => $config->redirect_to_after_logout));
 }
Beispiel #5
0
 /**
  * Initializes the default configuration for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  * 
  * @return void
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->registerActionAlias('apply', 'post');
     $this->registerActionAlias('save', 'post');
 }
Beispiel #6
0
 /**
  * Constructor.
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
 }
Beispiel #7
0
 /**
  * Constructor.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  *
  * @return void
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->registerCallback('after.add', array($this, 'mailConfirmation'));
 }
Beispiel #8
0
 /**
  * Constructor.
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     //insert the search term query
     $this->_state->insert('q');
 }