protected function writeRemote() {

    $contentType = $this->cxt('content_type');
    if (!empty($contentType)) {
      $this->obj->setContentType($contentType);
    }

    // Skip debug streams.
    if ($this->isNeverDirty) {
      return;
    }

    // Stream is dirty and needs a write.
    if ($this->isDirty) {
      $position = ftell($this->objStream);

      rewind($this->objStream);
      $this->container->save($this->obj, $this->objStream);

      fseek($this->objStream, SEEK_SET, $position);

    }
    $this->isDirty = FALSE;
  }
protected function writeRemote() {

    $contentType = $this->cxt('content_type');
    if (!empty($contentType)) {
      $this->obj->setContentType($contentType);
    }

    // Skip debug streams.
    if ($this->isNeverDirty) {
      return;
    }

    // Stream is dirty and needs a write.
    if ($this->isDirty) {
      $position = ftell($this->objStream);

      rewind($this->objStream);
      $this->container->save($this->obj, $this->objStream);

      fseek($this->objStream, SEEK_SET, $position);

    }
    $this->isDirty = FALSE;
  }
protected function writeRemote ( ) { $ contentType = $ this -> cxt ( 'content_type' ) ; if ( ! empty ( $ contentType ) ) { $ this -> obj -> setContentType ( $ contentType ) ; } // Skip debug streams. if ( $ this -> isNeverDirty ) { return ; } // Stream is dirty and needs a write. if ( $ this -> isDirty ) { $ position = ftell ( $ this -> objStream ) ; rewind ( $ this -> objStream ) ; $ this -> container -> save ( $ this -> obj , $ this -> objStream ) ; fseek ( $ this -> objStream , SEEK_SET , $ position ) ; } $ this -> isDirty = FALSE ; }
Write data to the remote object storage.

Internally, this is used by flush and close.
Write data to the remote object storage .