function __construct($config = array()) { parent::__construct($config); $this->lists = new JObject(); $tmpl_path = JPATH_COMPONENT_ADMINISTRATOR . '/plugins/views/buadmin/tmpl'; $this->addTemplatePath($tmpl_path); }
/** * Public constructor. Instantiates a F0FViewCsv 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 = F0FInflector::pluralize($view); $this->csvFilename = strtolower($view); } if (array_key_exists('csv_fields', $config)) { $this->csvFields = $config['csv_fields']; } }
/** * 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']; } }
function __construct($config = array()) { parent::__construct($config); $this->lists = new JObject(); }
/** * Class constructor * * @param array $config Configuration parameters */ public function __construct($config = array()) { parent::__construct($config); $blankImage = JUri::root() . 'media/lib_extly/images/Blank.gif'; $this->assign('blankImage', $blankImage); }