public function cloneContent($id, $newId) {
    $path = $this->path . '/content/';
    if (file_exists($path . $id)) {
      self::copyFileTree($path . $id, $path . $newId);
    }
  }
public function cloneContent($id, $newId) {
    $path = $this->path . '/content/';
    if (file_exists($path . $id)) {
      self::copyFileTree($path . $id, $path . $newId);
    }
  }
public function cloneContent ( $ id , $ newId ) { $ path = $ this -> path . '/content/' ; if ( file_exists ( $ path . $ id ) ) { self :: copyFileTree ( $ path . $ id , $ path . $ newId ) ; } }
Creates a stored copy of the content folder.

@param string $id
Identifier of content to clone.
@param int $newId
The cloned content's identifier
Creates a stored copy of the content folder .