コード例 #1
0
 /**
  * Blob constructor.
  * @param string $filename ASCII-only filename
  * @param \SplFileInfo $file
  * @param string $mimeType
  */
 public function __construct($filename, $file, $mimeType)
 {
     parent::__construct(null);
     $this->file = $file;
     $this->mimeType = $mimeType;
     $this->filename = $filename;
 }
コード例 #2
0
  /**
   * Operation constructor.
   * @param NuxeoClient $nuxeoClient
   * @param Url $apiUrl
   * @param string $operationId
   */
  public function __construct($nuxeoClient, $apiUrl, $operationId = null) {
    parent::__construct(Constants::ENTITY_TYPE_OPERATION, $nuxeoClient);

    $this->operationId = $operationId;
    $this->apiUrl = $apiUrl;
    $this->body = new OperationBody();
  }
コード例 #3
0
 /**
  * Blobs constructor.
  * @param Blob[] $blobs
  */
 public function __construct($blobs = array())
 {
     parent::__construct(null);
     $this->blobs = $blobs;
 }
コード例 #4
0
 /**
  * Documents constructor.
  */
 public function __construct()
 {
     parent::__construct(Constants::ENTITY_TYPE_DOCUMENTS);
 }