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); }
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')); }