get_view_link_title()
Purpose
set index page table properties, like table entries, color, ...
Usage
return either a array with following fields or (for historical reasons) return a string with index/header description:
index | array | fields to display on index screen, each array entry is splitted in table <td> segments | |
index_header | array | the corresponding header array for index table view | |
bsclass | string | bootstrap class of table segments | 'success', 'warning', 'danger', 'info' |
header | string | string to display for header reference field | |
Example
// link title in index view public function get_view_link_title() { return ['index' => [$this->name, $this->ds_rate_max.' MBit/s', $this->us_rate_max.' MBit/s'], 'index_header' => ['Name', 'DS Rate', 'US Rate'], 'header' => $this->name]; }