public function addColumnAction($name, $label = null, $value = null, $url = null, $title = null, $anchorAttributes = null, $image = null, $sequence = null)
{
// reserve var for attributes
$attributes = '';
$icon = $this->decideIcon($name);
// no anchorAttributes set means we set the default class attribute for the anchor
if (empty($anchorAttributes)) {
$anchorAttributes['class'] = 'btn btn-default btn-xs';
}
// loop the attributes, build our attributes string
foreach ($anchorAttributes as $attribute => $attributeValue) {
$attributes .= ' ' . $attribute . '="' . $attributeValue . '"';
}
// rebuild value
$value = '<a href="' . $url . '"' . $attributes . '>' . ($icon ? '<span class="fa ' . $icon . '"></span> ' : '') . $value . '</a>';
// add the column to the datagrid
parent::addColumn($name, $label, $value, null, $title, $image, $sequence);
// set column attributes
$this->setColumnAttributes($name, array('class' => 'fork-data-grid-action action' . \SpoonFilter::toCamelCase($name), 'style' => 'width: 10%;'));
// set header attributes
$this->setColumnHeaderAttributes($name, array('class' => $name));
}