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