Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function toHtml()
 {
     if ($this->re_module == '' || $this->re_action == '') {
         return null;
     }
     $temp = new WrapperControl(null, $this->re_name);
     $temp->setModule($this->re_module)->setAction($this->re_action);
     $params = explode(';', $this->re_parameter);
     if ($params !== false) {
         foreach ($params as $param) {
             $keyValue = explode('=', $param);
             if ($keyValue !== false && count($keyValue) > 1) {
                 $temp->addParam($keyValue[0], $keyValue[1]);
             }
         }
     }
     return $temp;
 }