/** * Get context for this notebook * @return string */ protected function getContext() { return $this->repository->getContext() . '/files/text-documents/' . $this->id; }
/** * Get text documents repository for given project * @param string $id_or_slug * @return TextDocuments */ public function textDocumentsForProject($id_or_slug) { $repository = new TextDocuments($this); $repository->setProjectId($id_or_slug); return $repository; }