Esempio n. 1
0
 public function __construct($columns, $data)
 {
     // Save those for faster access in renderStatus() and renderPriority()
     parent::__construct($columns, $data);
     $resultsCfg = config_get('results');
     $this->code_status = $resultsCfg['code_status'];
     $this->status_color = $resultsCfg['charts']['status_colour'];
     $urgencyCfg = config_get('urgency');
     $this->prio_code_label = $urgencyCfg['code_label'];
 }
Esempio n. 2
0
 /**
  * Creates a helper object to render a table to a EXT-JS GridPanel.
  * For use of column['type'] see $this->customTypes
  * @param string $tableID tableID is used to create a store for
  *                        table settings. tableID should be unique for
  *                        each table occurence in each project.
  *
  * @see tlTable::__construct($columns, $data)
  * @see addCustomBehaviour($type,$behaviour)
  */
 public function __construct($columns, $data, $tableID)
 {
     parent::__construct($columns, $data, $tableID);
     $this->addCustomBehaviour('status', array('render' => 'statusRenderer', 'sort' => 'statusCompare'));
     $this->showExportButton = config_get('enableTableExportButton');
 }
 /**
  * Creates a helper object to render a table to a EXT-JS GridPanel.
  * For use of column['type'] see $this->customTypes
  * @param string $tableID tableID is used to create a store for
  *                        table settings. tableID should be unique for
  *                        each table occurence in each project.
  *
  * @see tlTable::__construct($columns, $data)
  * @see addCustomBehaviour($type,$behaviour)
  */
 public function __construct($columns, $data, $tableID)
 {
     parent::__construct($columns, $data, $tableID);
     $this->addCustomBehaviour('status', array('render' => 'statusRenderer', 'sort' => 'statusCompare', 'filter' => 'Status'));
     $this->multiSortEnabled = true;
     $this->toolbar = new stdClass();
     $this->toolbar->show = true;
     $this->toolbar->showButton = new stdClass();
     $this->toolbar->showButton->showAllColumns = true;
     $this->toolbar->showButton->expandCollapseGroups = true;
     $this->toolbar->showButton->defaultState = true;
     $this->toolbar->showButton->refresh = true;
     $this->toolbar->showButton->resetFilters = true;
     $this->toolbar->showButton->export = config_get('enableTableExportButton');
     // is used on smarty template, and to avoid issues with delimiters
     // is much better to create here the string
     $this->groupItemsCountRenderString = ",groupTextTpl: '{text} ({[values.rs.length]} " . "{[values.rs.length > 1 ? \"Items\" : \"Item\"]})'";
 }
Esempio n. 4
0
 /**
  * Creates a helper object to render a table to a EXT-JS GridPanel.
  * For use of column['type'] see $this->customTypes
  * @param string $tableID tableID is used to create a store for
  *                        table settings. tableID should be unique for
  *                        each table occurence in each project.
  *
  * @see tlTable::__construct($columns, $data)
  * @see addCustomBehaviour($type,$behaviour)
  */
 public function __construct($columns, $data, $tableID)
 {
     parent::__construct($columns, $data, $tableID);
     $this->addCustomBehaviour('status', array('render' => 'statusRenderer', 'sort' => 'statusCompare'));
 }