frontend/modules/elfind/src/elFinderVolumeLocalFileSystem.class.php
/**
     * Create file and return it's path or false on failed
     *
     * @param  string  $path  parent dir path
     * @param string  $name  new file name
     * @return string|bool
     * @author Dmitry (dio) Levashov
     **/
Create file and return it's path or false on failed
@param  string  $path  parent dir path
@param string  $name  new file name
@return string|bool
@author Dmitry (dio) Levashov
Create file and return it ' s path or false on failed @param string $path parent dir path @param string $name new file name @return string|bool @author Dmitry ( dio ) Levashov
protected function _mkfile($path, $name) {
        $path = $this->_joinPath($path, $name);
        if (($fp = fopen($path, 'w'))) {
            fclose($fp);
            chmod($path, $this->options['fileMode']);
            clearstatcache();
            $regEvent = $this->registerUploadEvent($path);
            foreach ($regEvent['event_data'] as $k => $v) {
                array_push(parent::$event_data, $regEvent['event_data'][$k]);
            }
            return $regEvent['path'];
        }
        return false;
    }
protected function _mkfile ( $ path , $ name ) { $ path = $ this -> _joinPath ( $ path , $ name ) ; if ( ( $ fp = fopen ( $ path , 'w' ) ) ) { fclose ( $ fp ) ; chmod ( $ path , $ this -> options [ 'fileMode' ] ) ; clearstatcache ( ) ; $ regEvent = $ this -> registerUploadEvent ( $ path ) ; foreach ( $ regEvent [ 'event_data' ] as $ k => $ v ) { array_push ( parent :: $ event_data , $ regEvent [ 'event_data' ] [ $ k ] ) ; } return $ regEvent [ 'path' ] ; } return false ; }
Create file and return it's path or false on failed
 @param  string  $path  parent dir path
 @param string  $name  new file name
 @return string|bool
 @author Dmitry (dio) Levashov
Create file and return it ' s path or false on failed @param string $path parent dir path @param string $name new file name @return string|bool @author Dmitry ( dio ) Levashov