public function load($row, $role, $info)
 {
     if ($row->getModel()->hasColumn('component') && $this->getEditComponent() != $row->component) {
         return self::BUTTON_INVISIBLE;
     }
     return parent::load($row, $role, $info);
 }
Ejemplo n.º 2
0
 public function __construct($dataIndex = null, $header = null, $width = 30)
 {
     if (is_null($header)) {
         $header = trlKwf('Info');
     }
     parent::__construct($dataIndex, $header, $width);
     $this->setButtonIcon(new Kwf_Asset('information.png'));
 }