/** * @param Button $button * @param array $attributes */ function __construct(Button $button, array $attributes = array()) { $attributes = array_merge_recursive(array('role' => 'presenation'), $attributes); $button->removeClass('btn'); $this->button = $button; parent::__construct($attributes); }
/** * Construct. * * @param array $item Current navigation item. * @param \FrontendTemplate $template Parent template. * @param array $attributes Additional attributes. */ public function __construct(array $item, \FrontendTemplate $template, $attributes = array()) { $this->item = $item; $this->template = $template; parent::__construct($attributes); $this->initialize(); }
/** * @param array $attributes * @param string|null $template */ function __construct(array $attributes = array(), $template = null) { $attributes = array_merge(array('class' => array('modal', 'fade')), $attributes); if ($template) { $this->template = $template; } parent::__construct($attributes); }
/** * Construct. * * @param array $attributes Html attributes. */ public function __construct(array $attributes = array()) { $attributes = array_merge_recursive(array('role' => 'presentation', 'class' => array('divider')), $attributes); parent::__construct($attributes); }
/** * Construct. * * @param array $attributes Html attributes. */ public function __construct(array $attributes = array()) { $attributes = array_merge_recursive(array('class' => array('btn')), $attributes); parent::__construct($attributes); }
/** * @param string $tag * @param array $attributes */ function __construct($tag, $attributes = array()) { parent::__construct($attributes); $this->tag = $tag; }