Source of file PanelComponentField.php
Size: 0,948 Bytes - Last Modified: 2021-12-23T10:05:09+00:00
/var/www/docs.ssmods.com/process/src/src/Composite/PanelComponentField.php
12345678910111213141516171819202122232425262728293031323334 | <?php /** * Milkyway Multimedia * AccordionComponentField.php * * @package * @author Mellisa Hankins <mellisa.hankins@me.com> */ class PanelComponentField extends ComponentFieldHolder { protected $subItemType = 'AccordionComponentField_Panel'; protected $appendType = 'Accordion'; public function __construct($name, $children = null, $type = 'panel-default') { parent::__construct($name, $children); $this->addExtraClass('panel ' . $type); } public function Field($properties = array()) { if(!isset($properties['panelAttributes'])) $properties['panelAttributes'] = $this->JSONAttributesHTML; if(!isset($properties['panelFields'])) $properties['panelFields'] = $this->children; if(!isset($properties['panelHeading']) && $title = trim($this->Title())) $properties['panelHeading'] = $title; if(!isset($properties['panelName'])) $properties['panelName'] = $this->ID(); return parent::Field($properties); } } |