Example #1
0
 /**
  * Constructor.
  *
  * @param   KObjectConfig $config Configuration options
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     foreach ($config->schemes as $alias => $path) {
         $this->addScheme($alias, $path);
     }
 }
Example #2
0
 /**
  * Constructor.
  *
  * @param   object  An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config = null)
 {
     parent::__construct($config);
     //Load the theme chrome functions
     include_once JPATH_THEMES . '/system/html/modules.php';
     include_once JPATH_THEMES . '/' . $config->template . '/html/modules.php';
 }
Example #3
0
 	/**
     * Constructor.
     *
     * @param   object  An optional KConfig object with configuration options
     */
    public function __construct( KConfig $config = null) 
    { 
        parent::__construct($config);
        
        $this->_token_value = $config->token_value;
        $this->_token_name  = $config->token_name;
    }
Example #4
0
 /**
  * Constructor.
  *
  * @param   object  An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config = null)
 {
     parent::__construct($config);
     $this->_title = $config->title;
     $this->_class = $config->class;
     $this->_styles = KConfig::unbox($config->styles);
     $this->_attribs = KConfig::unbox($config->attribs);
 }
 /**
  * Constructor.
  *
  * @param   object  An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config = null)
 {
     parent::__construct($config);
     include_once JPATH_THEMES . '/system/html/modules.php';
     if (file_exists(JPATH_THEMES . '/' . $config->template . '/html/modules.php')) {
         include_once JPATH_THEMES . '/' . $config->template . '/html/modules.php';
     }
 }
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     if (empty($config->namespace) && $config->namespace !== false) {
         $identifier = $this->getIdentifier();
         $config->namespace = sprintf('%s_%s', $identifier->type, $identifier->package);
     }
     $this->setNamespace($config->namespace);
 }
Example #7
0
 /**
  * Constructor.
  *
  * @param   KObjectConfig $config Configuration options
  */
 public function __construct(KObjectConfig $config = null)
 {
     parent::__construct($config);
     include_once JPATH_THEMES . '/system/html/modules.php';
     $template = JFactory::getApplication()->getTemplate();
     if (file_exists(JPATH_THEMES . '/' . $template . '/html/modules.php')) {
         include_once JPATH_THEMES . '/' . $template . '/html/modules.php';
     }
 }
Example #8
0
 /**
  * Constructor
  *
  * @param   KObjectConfig $config Configuration options
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     $this->setToolbars(KObjectConfig::unbox($config->toolbars));
 }
Example #9
0
 /**
  * Constructor.
  *
  * @param   KObjectConfig $config Configuration options
  */
 public function __construct(KObjectConfig $config = null)
 {
     parent::__construct($config);
     $this->_token_value = $this->getObject('user')->getSession()->getToken();
     $this->_token_name = $config->token_name;
 }
Example #10
0
 /**
  * @param KObjectConfig $config
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     $this->setWrapper($config->wrapper);
 }