Пример #1
0
	/**
	 * Page to display full details of a system log, usually opened in an ajax dialog.
	 * 
	 * @return int
	 * @throws DMI_Exception
	 */
	public function log_details(){
		$view = $this->getView();
		$request = $this->getPageRequest();

		$view->mode = View::MODE_PAGEORAJAX;

		if(!\Core\user()->checkAccess('p:/core/systemlog/view')){
			return View::ERROR_ACCESSDENIED;
		}
		
		$log = SystemLogModel::Construct($request->getParameter(0));
		if(!$log->exists()){
			return View::ERROR_NOTFOUND;
		}

		$view->mastertemplate = 'admin';
		$view->addBreadcrumb('t:STRING_SYSTEM_LOG', '/admin/log');
		$view->title = 't:STRING_SYSTEM_LOG_DETAILS';
		$view->assign('entry', $log);
	}