public function process() { if (!empty($this->aUrlInfo['document_name'])) { if (!isset($_REQUEST['id'])) { throw new Exception('`id` parameter not found in request'); } $id = IntegerHelper::toNatural($_REQUEST['id']); if (!$this->disableAutoLoad) { $this->loadDocument($id); } } return parent::process(); }