function __construct($id, $oGig, $writable = true, $showDetailsButton = false) { $oGig->writable = $writable; $oGig->showDetailsButton = $showDetailsButton; parent::__construct($id, 'Gig: ' . $oGig->name, 'gig/widgets/gig_details', ['oGig' => $oGig]); $this->icon = 'fa-bullhorn'; }
function __construct($id, $oPerson, $writable = true, $showDetailsButton = false) { $oPerson->writable = $writable; $oPerson->showDetailsButton = $showDetailsButton; parent::__construct($id, 'Person: ' . $oPerson->firstname . ' ' . $oPerson->lastname, 'person/widgets/person_details', ['oPerson' => $oPerson]); $this->icon = 'fa-user'; }
function __construct($id, $aTableData = [], $title = '') { $this->_tableHelper = new TableHelper(); $this->_tableHelper->setData($aTableData); parent::__construct($id, $title === '' ? 'Tabelle' : $title, $this->_tableHelper->template, $this->_tableHelper->getTableOptions()); $this->icon = 'fa-table'; }
function __construct($id, $oBand, $writable = true, $showDetailsButton = false) { $oBand->writable = $writable; $oBand->showDetailsButton = $showDetailsButton; parent::__construct($id, 'Band: ' . $oBand->name, 'band/widgets/band_details', ['oBand' => $oBand]); $this->icon = 'fa-music'; }
function __construct($id, $oVenue, $writable = true, $showDetailsButton = false) { $oVenue->writable = $writable; $oVenue->showDetailsButton = $showDetailsButton; parent::__construct($id, 'Venue: ' . $oVenue->name, 'venue/widgets/venue_details', ['oVenue' => $oVenue]); $this->icon = 'fa-globe'; }