示例#1
0
 public function process()
 {
     if (!$this->isProcessed()) {
         if ($this->getParent() instanceof Input\GroupElement) {
             $this->addClass('input-group-addon');
         }
     }
     return parent::process();
 }
示例#2
0
 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}");
         }
     }
 }
示例#3
0
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->addClass('caret');
 }
示例#4
0
 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();
 }