public function exportContent($id, $target) {
    $source = "{$this->path}/content/{$id}";
    if (file_exists($source)) {
      // Copy content folder if it exists
      self::copyFileTree($source, $target);
    }
    else {
      // No contnet folder, create emty dir for content.json
      self::dirReady($target);
    }
  }
public function exportContent($id, $target) {
    $source = "{$this->path}/content/{$id}";
    if (file_exists($source)) {
      // Copy content folder if it exists
      self::copyFileTree($source, $target);
    }
    else {
      // No contnet folder, create emty dir for content.json
      self::dirReady($target);
    }
  }
public function exportContent ( $ id , $ target ) { $ source = "{$this->path}/content/{$id}" ; if ( file_exists ( $ source ) ) { // Copy content folder if it exists self :: copyFileTree ( $ source , $ target ) ; } else { // No contnet folder, create emty dir for content.json self :: dirReady ( $ target ) ; } }
Fetch content folder and save in target directory.

@param int $id
Content identifier
@param string $target
Where the content folder will be saved
Fetch content folder and save in target directory .