XLSX performance
This commit is contained in:
1 parent
ee998f7173
commit
abddc0b48f
2 files changed
+74
-38
No files matched your search
@@ -23,6 +23,19 @@ class GlobalFunctionsHelper
|
||||
return fopen($fileName, $mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper around global function fread()
|
||||
* @see fread()
|
||||
*
|
||||
* @param resource $handle
|
||||
* @param int|null $length
|
||||
* @return string
|
||||
*/
|
||||
public function fread($handle, $length = null)
|
||||
{
|
||||
return fread($handle, $length);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper around global function fgets()
|
||||
* @see fgets()
|
||||
@@ -67,13 +80,26 @@ class GlobalFunctionsHelper
|
||||
*
|
||||
* @param resource $handle
|
||||
* @param int $offset
|
||||
* @param int $whence
|
||||
* @return int
|
||||
*/
|
||||
public function fseek($handle, $offset)
|
||||
public function fseek($handle, $offset, $whence = SEEK_SET)
|
||||
{
|
||||
return fseek($handle, $offset);
|
||||
return fseek($handle, $offset, $whence);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper around global function ftell()
|
||||
* @see fseek()
|
||||
*
|
||||
* @param resource $handle
|
||||
* @return bool|int
|
||||
*/
|
||||
public function ftell($handle)
|
||||
{
|
||||
return ftell($handle);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper around global function fgetcsv()
|
||||
* @see fgetcsv()
|
||||
|
||||
Reference in new issue
Block a user