Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * Get context for this notebook
  * @return string
  */
 protected function getContext()
 {
     return $this->repository->getContext() . '/files/files/' . $this->id;
 }