Пример #1
0
 /**
  * Public constructor
  *
  * @param   array  $config  The component's configuration array
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     if (isset($config['use_hypermedia'])) {
         $this->useHypermedia = (bool) $config['use_hypermedia'];
     }
 }
 /**
  * Public constructor. Instantiates a FOFViewCsv object.
  *
  * @param   array  $config  The configuration data array
  */
 public function __construct($config = array())
 {
     // Make sure $config is an array
     if (is_object($config)) {
         $config = (array) $config;
     } elseif (!is_array($config)) {
         $config = array();
     }
     parent::__construct($config);
     if (array_key_exists('csv_header', $config)) {
         $this->csvHeader = $config['csv_header'];
     } else {
         $this->csvHeader = $this->input->getBool('csv_header', true);
     }
     if (array_key_exists('csv_filename', $config)) {
         $this->csvFilename = $config['csv_filename'];
     } else {
         $this->csvFilename = $this->input->getString('csv_filename', '');
     }
     if (empty($this->csvFilename)) {
         $view = $this->input->getCmd('view', 'cpanel');
         $view = FOFInflector::pluralize($view);
         $this->csvFilename = strtolower($view);
     }
     if (array_key_exists('csv_fields', $config)) {
         $this->csvFields = $config['csv_fields'];
     }
 }
Пример #3
0
 function __construct($config = array())
 {
     parent::__construct($config);
     $this->lists = new JObject();
     $tmpl_path = JPATH_COMPONENT_ADMINISTRATOR . '/plugins/views/buadmin/tmpl';
     $this->addTemplatePath($tmpl_path);
 }
Пример #4
0
 /**
  * default class construtor
  *
  * @param   array  $config  Configuration array
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     if (BabioonEventHelper::isVersion3()) {
         // Joomla! 3.x
         $renderer = new FOFRenderJoomla3();
     } else {
         // Joomla! 2.5
         $renderer = new FOFRenderJoomla();
     }
     $this->setRenderer($renderer);
 }
Пример #5
0
 /**
  * Modified constructor to enable loading layouts from the plug-ins folder
  * @param $config
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $tmpl_path = dirname(__FILE__) . '/tmpl';
     $this->addTemplatePath($tmpl_path);
 }
Пример #6
0
 public function __construct($config = array())
 {
     parent::__construct();
     $this->setFrontendPageTitle = true;
 }