public function render() { $this->jobId = $this->read('jobId'); if ($this->jobId > 0) { $this->editing = true; $this->workItem = WorkItem::getById($this->jobId); $WorkItem = new WorkItem(); $this->worklist = $WorkItem->getWorkItem($this->jobId); $this->title = 'Edit #' . $this->jobId . ' job - Worklist'; } return parent::render(); }