コード例 #1
0
ファイル: Task.php プロジェクト: NaszvadiG/activecollab-api
 /**
  * Get attachments repository for this task
  * @return Attachments
  */
 public function attachments()
 {
     $attachments = new Attachments($this->repository->getApiClient());
     $attachments->setContext($this->getContext());
     return $attachments;
 }
コード例 #2
0
 /**
  * Get attachments repository for context
  * @param string $context
  * @return Attachments
  */
 public function attachmentsForContext($context)
 {
     $repository = new Attachments($this);
     $repository->setContext($context);
     return $repository;
 }