Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/view/DiffusionBrowseTableView.php
Show All 9 Lines | public function setPaths(array $paths) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function render() { | public function render() { | ||||
$request = $this->getDiffusionRequest(); | $request = $this->getDiffusionRequest(); | ||||
$repository = $request->getRepository(); | $repository = $request->getRepository(); | ||||
require_celerity_resource('diffusion-css'); | require_celerity_resource('diffusion-css'); | ||||
if ($request->getPath() !== null) { | |||||
$base_path = trim($request->getPath(), '/'); | $base_path = trim($request->getPath(), '/'); | ||||
if ($base_path) { | if ($base_path) { | ||||
$base_path = $base_path.'/'; | $base_path = $base_path.'/'; | ||||
} | } | ||||
} else { | |||||
$base_path = ''; | |||||
} | |||||
$need_pull = array(); | $need_pull = array(); | ||||
$rows = array(); | $rows = array(); | ||||
foreach ($this->paths as $path) { | foreach ($this->paths as $path) { | ||||
$full_path = $base_path.$path->getPath(); | $full_path = $base_path.$path->getPath(); | ||||
$dir_slash = null; | $dir_slash = null; | ||||
$file_type = $path->getFileType(); | $file_type = $path->getFileType(); | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |