}
/**
- * CommentActions::getDefinedActions()
+ * CommentActions::getAvailableActions()
*
- * @static
* @param void
* @return array actions array
*/
- static public function getDefinedActions()
+ public function getAvailableActions()
{
- return array_merge(self::$defined_actions, parent::getDefinedActions());
- }
-
- /**
- * CommentActions::setParser()
- *
- * @param object $parser instance of Parser class
- * @return void
- */
- public function setParser(&$parser)
- {
- $this->parser =& $parser;
- return;
+ return array_merge(self::$defined_actions, parent::getAvailableActions());
}
/**
{
$data = array(
'itemid' => $this->commentsObj->itemid,
- 'timestamp' => $this->commentsObj->itemActions->currentItem->timestamp,
- 'title' => $this->commentsObj->itemActions->currentItem->title,
+ 'timestamp' => $this->commentsObj->itemActions->currentItem['timestamp'],
+ 'title' => $this->commentsObj->itemActions->currentItem['title'],
'extra' => $this->commentsObj->itemActions->linkparams
);
}
/**
- * ItemActions::checkCondition()
+ * CommentActions::checkCondition()
* Checks conditions for if statements
*
* @param string $field type of <%if%>