/** * Retrieve the row url with the given parameters. * * @param FireGento_AdminMonitoring_Model_History $history History Model * @param string $className Class Name * @param string $routePath Route Path * @param array $routeParams Route Params * @return Mage_Adminhtml_Model_Url */ protected function _getRowUrl(FireGento_AdminMonitoring_Model_History $history, $className, $routePath, $routeParams) { /* @var $history FireGento_AdminMonitoring_Model_History */ if (!$history->isDelete()) { $model = $history->getOriginalModel(); if (is_a($model, $className) && $model->getId()) { return Mage::getModel('adminhtml/url')->getUrl($routePath, $routeParams); } } return false; }
/** * Retrieve the row url for the given history entry * * @param FireGento_AdminMonitoring_Model_History $row History Model * @return bool|string */ public function getRowUrl($row) { return $this->getUrl('*/*/view', array('id' => $row->getId())); }
/** * @test * @loadFixture ~FireGento_AdminMonitoring/default */ public function isLogin() { $model = $this->_model->load(4); $this->assertTrue($model->isLogin()); }