'doView', 'unblock' => 'doUnblock', ); function exec(&$Doc) { $this->Doc = &$Doc; $this->DBObj = SiteMap::getObj('NRDSUsage/NRDSUsage.php', $_REQUEST['id']); parent::exec(); } function doView() { $item = array(); $item['list'] = $this->DBObj->getList(); $item['tpl'] = 'NRDSUsage/list-unused.tpl'; $this->Doc->addContent($item); } function doUnblock() { if ($this->DBObj->isBlocked($this->DBObj->id)) { Session::setData($this->_getPage4SaveMessage(), 'msg', $this->DBObj->itemName.' '.$this->DBObj->id.' unblocked'); $this->DBObj->delete(); } $this->doBack(); return true; } }