add new function in File Upload service

This commit is contained in:
Jianxuan Li 2015-04-07 10:13:14 +08:00
parent 1369865cc4
commit c81e4c4694
1 changed files with 7 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class Upload extends AbstractEventManager implements ServiceManagerAwareInterfac
if(!empty($childDir))
$this->setChildDir($childDir);
$this->MakeChildDir($childDir);
//$this->MakeChildDir($childDir);
if(!empty($dateDirModel))
$this->setDatePathMode($dateDirModel);
@ -176,9 +176,14 @@ class Upload extends AbstractEventManager implements ServiceManagerAwareInterfac
return $this->uploadPath;
}
public function setChildDir($dir = ""){
$this->childPath = $dir;
$this->MakeChildDir();
}
public function appendChildDir($dir = ""){
$this->childPath .= $dir;
$this->MakeChildDir();
}
/**