Ejemplo n.º 1
0
 /**
  * Move temp file to upload dir and save it in database
  * @param unknown $file
  */
 public function setFile($file)
 {
     $time = time();
     $this->path = $time . "_" . $file->getClientOriginalName();
     $file->move($this->getUploadRootDir(), $time . "_" . $file->getClientOriginalName());
 }
Ejemplo n.º 2
0
 /**
  * 将当前数据库的 key 移动到给定的数据库 db 当中
  * @param type $key
  * @param type $db
  */
 public function move($key = '', $db = 1)
 {
     return $this->cacheWrite->move($key, $db);
 }