public function process() { if (!$this->isProcessed()) { if ($this->getParent() instanceof Input\GroupElement) { $this->addClass('input-group-addon'); } } return parent::process(); }
public function __construct(array $attributes = array()) { parent::__construct($attributes); if ($this->hasAttribute('TYPE')) { $this->ignoreAttribute('TYPE'); $icon = $this->getAttribute('TYPE'); if ($icon == 'bar') { $this->addClass('icon-bar'); } else { $this->addClass("glyphicon glyphicon-{$icon}"); } } }
public function __construct(array $attributes = array()) { parent::__construct($attributes); $this->addClass('caret'); }
function display($arrParam = array()) { $svg = get_report_datas($this->mmc_plugin, $this->class, $this->method, $this->args, $this->kargs); $result = new SpanElement($svg . '<br /><a href="' . urlStrRedirect("report/report/get_file", array('type' => 'svg', 'svg' => $this->indicator)) . '">' . 'Download me !' . '</a>'); print $result->display(); }