예제 #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();
 }