mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
Fix PHPDoc
This commit is contained in:
@@ -43,14 +43,13 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
* @var int
|
||||
**/
|
||||
protected $archiveSize = 0;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Extend options with required fields
|
||||
*
|
||||
* @return void
|
||||
* @author Dmitry (dio) Levashov
|
||||
**/
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Extend options with required fields
|
||||
*
|
||||
* @author Dmitry (dio) Levashov
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->options['alias'] = ''; // alias to replace root dir name
|
||||
$this->options['dirMode'] = 0755; // new dirs mode
|
||||
@@ -718,26 +717,28 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
|
||||
return $files;
|
||||
}
|
||||
|
||||
/**
|
||||
* Open file and return file pointer
|
||||
*
|
||||
* @param string $path file path
|
||||
* @param bool $write open file for writing
|
||||
* @return resource|false
|
||||
* @author Dmitry (dio) Levashov
|
||||
**/
|
||||
|
||||
/**
|
||||
* Open file and return file pointer
|
||||
*
|
||||
* @param string $path file path
|
||||
* @param string $mode
|
||||
* @return false|resource
|
||||
* @internal param bool $write open file for writing
|
||||
* @author Dmitry (dio) Levashov
|
||||
*/
|
||||
protected function _fopen($path, $mode='rb') {
|
||||
return @fopen($path, $mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Close opened file
|
||||
*
|
||||
* @param resource $fp file pointer
|
||||
* @return bool
|
||||
* @author Dmitry (dio) Levashov
|
||||
**/
|
||||
|
||||
/**
|
||||
* Close opened file
|
||||
*
|
||||
* @param resource $fp file pointer
|
||||
* @param string $path
|
||||
* @return bool
|
||||
* @author Dmitry (dio) Levashov
|
||||
*/
|
||||
protected function _fclose($fp, $path='') {
|
||||
return @fclose($fp);
|
||||
}
|
||||
@@ -811,17 +812,18 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
$ret && clearstatcache();
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Move file into another parent dir.
|
||||
* Return new file path or false.
|
||||
*
|
||||
* @param string $source source file path
|
||||
* @param string $target target dir path
|
||||
* @param string $name file name
|
||||
* @return string|bool
|
||||
* @author Dmitry (dio) Levashov
|
||||
**/
|
||||
|
||||
/**
|
||||
* Move file into another parent dir.
|
||||
* Return new file path or false.
|
||||
*
|
||||
* @param string $source source file path
|
||||
* @param $targetDir
|
||||
* @param string $name file name
|
||||
* @return bool|string
|
||||
* @internal param string $target target dir path
|
||||
* @author Dmitry (dio) Levashov
|
||||
*/
|
||||
protected function _move($source, $targetDir, $name) {
|
||||
$target = $this->_joinPath($targetDir, $name);
|
||||
$ret = @rename($source, $target) ? $target : false;
|
||||
@@ -933,11 +935,13 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* chmod availability
|
||||
*
|
||||
* @return bool
|
||||
**/
|
||||
/**
|
||||
* chmod availability
|
||||
*
|
||||
* @param string $path
|
||||
* @param string $mode
|
||||
* @return bool
|
||||
*/
|
||||
protected function _chmod($path, $mode) {
|
||||
$modeOct = is_string($mode) ? octdec($mode) : octdec(sprintf("%04o",$mode));
|
||||
$ret = @chmod($path, $modeOct);
|
||||
@@ -1204,7 +1208,12 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
return $result;
|
||||
}
|
||||
|
||||
/******************** Original local functions *************************/
|
||||
/******************** Original local functions ************************
|
||||
* @param $file
|
||||
* @param $key
|
||||
* @param $iterator
|
||||
* @return bool
|
||||
*/
|
||||
|
||||
public function localFileSystemSearchIteratorFilter($file, $key, $iterator) {
|
||||
$name = $file->getFilename();
|
||||
|
||||
Reference in New Issue
Block a user