Inheritance: extends Raw, implements FOF30\View\DataView\DataViewInterface
Beispiel #1
0
 /**
  * Public constructor. Instantiates a F0FViewCsv object.
  *
  *
  * @param   Container  $container  The container we belong to
  * @param   array      $config     The configuration overrides for the view
  */
 public function __construct(Container $container, array $config = array())
 {
     parent::__construct($container, $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 = $this->container->inflector->pluralize($view);
         $this->csvFilename = strtolower($view) . '.csv';
     }
     if (array_key_exists('csv_fields', $config)) {
         $this->csvFields = $config['csv_fields'];
     }
 }
Beispiel #2
0
 /**
  * The edit layout, editing a profile's name
  */
 protected function onBeforeEdit()
 {
     parent::onBeforeEdit();
     // Include tooltip support
     JHtml::_('behavior.tooltip');
 }