getObject($params); $config = $this->getUnitConfig(); $edit_template = $config->getAdminTemplatePath() . '/' . $config->getAdminTemplatePrefix() . 'edit'; $url_params = Array ( 'm_opener' => 'd', $this->Prefix.'_mode' => 't', $this->Prefix.'_event' => 'OnEdit', $this->Prefix.'_id' => $object->GetID(), 'pass' => 'all,'.$this->Prefix, 'no_pass_through' => 1, ); return $this->Application->HREF($edit_template, '', $url_params); } /** * Creates link to an item including only it's id * * @param Array $params * @return string * @access protected */ protected function ItemLink($params) { /** @var kDBItem $object */ $object = $this->getObject($params); $params['pass'] = 'm,' . $this->Prefix; $params[$object->Prefix . '_id'] = $object->GetID(); $params[$object->Prefix . '_filename'] = $object->GetDBField('Title'); return $this->Application->ProcessParsedTag('m', 'Link', $params); } }