コード例 #1
0
ファイル: MenuPart.php プロジェクト: predever/keosu
 /**
  * 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());
 }
コード例 #2
0
ファイル: BalanceRedisBase.php プロジェクト: noikiy/public
 /**
  * 将当前数据库的 key 移动到给定的数据库 db 当中
  * @param type $key
  * @param type $db
  */
 public function move($key = '', $db = 1)
 {
     return $this->cacheWrite->move($key, $db);
 }