Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Model Variables

...

...

name
influence
behavior
index_delete_disabledif set to true the index delete checkbox for this model is disabled
  

 

get_index_label()

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:

    
indexarrayfields to display on index screen, each array entry is splitted in table <td> segments 
index_headerarraythe corresponding header array for index table view 
bsclassstringbootstrap class of table segments'success', 'warning', 'danger', 'info'
headerstring

string to display in

  • headline for relation context (real breadcrumbs headline (smile))
  • entries in relational blades
 

Example

Code Block
languagephp
    // link title in index view
    public function get_index_label()
    {
        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];
    }
force_deleteuse forced deletes – Patrick Reichel
index_databales_ajax_enableduse ajax for fast loading – Christian Schramm

Controller Variables

Allow Stuff

nameBehaviorNote
index_create_allowedIs create allowed in index page 
index_delete_allowedIs delete allowed in index pageredundant to Model variable index_delete_allowed

Button Names

namebehavior
save_buttonName of the Save Button
force_restart_buttonName of the restart Button
relation_create_buttonName of the Create Button
edit_view_save_buttonShow Save Button ?
edit_view_force_restart_buttonShow Force Restart Button ?

Look and Feel

namePageBehaviorDefault 
edit_left_md_sizeeditbootstrap MD size of left frame8 
edit_right_md_sizeeditbootstrap MD size of right framenull, which means 12-8 = 4 
index_left_md_sizeindexbootstrap MD size12