function createActions() { $singleMethods = M_Office_Util::getActionsFor($this->do, $this->module); foreach ($singleMethods as $k => $v) { if ($v['disabled']) { $this->append('relatedaction', array('url' => null, 'title' => $v['title'], 'group' => $v['group'])); } else { $this->append('relatedaction', array('url' => M_Office_Util::doUrl($this->do, $this->module, array("doSingleAction" => $k)), 'title' => $v['title'], 'group' => $v['group'])); } } return $singleMethods; }