<?php
class AnUikitStoryActionComment extends AnUikitActionMixin
{
/**
* The view within which these action will show. It's used to create the route the controller
*/
protected $_view;
/**
*
* @return
* @param $options Object
*/
public function __construct($options)
{
$this->_view = $options['view'];
parent::__construct($options);
$actions = array();
if ( $this->_mixer->validateForDelete() ) {
$action = AnUikitHtmlTag::link( JText::_('AN-SE-ACTION-DELETE'),
$this->_view->createRoute('view=story&action=deleteComment&cid='.$this->_mixer->id.'&id='.$this->_mixer->node->id))
->setTitle(JText::_('AN-SE-ACTION-DELETE'))
->setClass('an-se-remove-handle an-se-confirm-remove')
->setId('an-se-comment-action-delete-'.$this->_mixer->id)
->setRemoveOptions(array('title'=>JText::_('AN-SE-PROMPT-CONFIRMATION-DELETE-ITEM'), 'point'=>11))
;
$this->setActions($action);
}
}
}