renderButton() защищенный Метод

Renders a link button.
protected renderButton ( string $id, array $button, integer $row, mixed $data )
$id string the ID of the button
$button array the button configuration which may contain 'label', 'url', 'imageUrl' and 'options' elements.
$row integer the row number (zero-based)
$data mixed the data object associated with the row
Пример #1
0
 protected function renderButton($id, $button, $row, $data)
 {
     $options = isset($button['options']) ? $button['options'] : array();
     if (isset($options['visible']) && !$this->evaluateExpression($options['visible'], array('row' => $row, 'data' => $data))) {
         return;
     }
     return parent::renderButton($id, $button, $row, $data);
 }