Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250706) (3342f23b299)
|
Public Member Functions | |
basename ($path, $suffix='') | |
Wrapper around global function basename() | |
fclose ($handle) | |
Wrapper around global function fclose() | |
feof ($handle) | |
Wrapper around global function feof() | |
fflush ($handle) | |
Wrapper around global function fflush() | |
fgetcsv ($handle, $length=null, $delimiter=null, $enclosure=null) | |
Wrapper around global function fgetcsv() | |
fgets ($handle, $length=null) | |
Wrapper around global function fgets() | |
file_exists ($fileName) | |
Wrapper around global function file_exists() | |
file_get_contents ($filePath) | |
Wrapper around global function file_get_contents() | |
fopen ($fileName, $mode) | |
Wrapper around global function fopen() | |
fputcsv ($handle, array $fields, $delimiter=null, $enclosure=null) | |
Wrapper around global function fputcsv() | |
fputs ($handle, $string) | |
Wrapper around global function fputs() | |
fseek ($handle, $offset) | |
Wrapper around global function fseek() | |
function_exists ($functionName) | |
Wrapper around global function function_exists() | |
fwrite ($handle, $string) | |
Wrapper around global function fwrite() | |
header ($string) | |
Wrapper around global function header() | |
iconv ($string, $sourceEncoding, $targetEncoding) | |
Wrapper around global function iconv() | |
is_readable ($fileName) | |
Wrapper around global function is_readable() | |
mb_convert_encoding ($string, $sourceEncoding, $targetEncoding) | |
Wrapper around global function mb_convert_encoding() | |
ob_end_clean () | |
Wrapper around global function ob_end_clean() | |
rewind ($handle) | |
Wrapper around global function rewind() | |
stream_get_wrappers () | |
Wrapper around global function stream_get_wrappers() | |
Protected Member Functions | |
convertToUseRealPath ($filePath) | |
Updates the given file path to use a real path. | |
isZipStream ($path) | |
Returns whether the given path is a zip stream. | |
Box\Spout\Common\Helper\GlobalFunctionsHelper::basename | ( | $path, | |
$suffix = '' ) |
Wrapper around global function basename()
string | $path | |
string | $suffix |
string |
|
protected |
Updates the given file path to use a real path.
This is to avoid issues on some Windows setup.
string | $filePath | File path |
string | The file path using a real path |
Box\Spout\Common\Helper\GlobalFunctionsHelper::fclose | ( | $handle | ) |
Wrapper around global function fclose()
resource | $handle |
bool |
Box\Spout\Common\Helper\GlobalFunctionsHelper::feof | ( | $handle | ) |
Wrapper around global function feof()
resource | $handle |
bool |
Box\Spout\Common\Helper\GlobalFunctionsHelper::fflush | ( | $handle | ) |
Wrapper around global function fflush()
resource | $handle |
bool |
Box\Spout\Common\Helper\GlobalFunctionsHelper::fgetcsv | ( | $handle, | |
$length = null, | |||
$delimiter = null, | |||
$enclosure = null ) |
Wrapper around global function fgetcsv()
resource | $handle | |
int | null | $length | |
string | null | $delimiter | |
string | null | $enclosure |
array|false |
Box\Spout\Common\Helper\GlobalFunctionsHelper::fgets | ( | $handle, | |
$length = null ) |
Wrapper around global function fgets()
resource | $handle | |
int | null | $length |
string |
Box\Spout\Common\Helper\GlobalFunctionsHelper::file_exists | ( | $fileName | ) |
Wrapper around global function file_exists()
string | $fileName |
bool |
Box\Spout\Common\Helper\GlobalFunctionsHelper::file_get_contents | ( | $filePath | ) |
Wrapper around global function file_get_contents()
string | $filePath |
string |
Box\Spout\Common\Helper\GlobalFunctionsHelper::fopen | ( | $fileName, | |
$mode ) |
Wrapper around global function fopen()
string | $fileName | |
string | $mode |
resource|bool |
Box\Spout\Common\Helper\GlobalFunctionsHelper::fputcsv | ( | $handle, | |
array | $fields, | ||
$delimiter = null, | |||
$enclosure = null ) |
Wrapper around global function fputcsv()
resource | $handle | |
array | $fields | |
string | null | $delimiter | |
string | null | $enclosure |
int |
Box\Spout\Common\Helper\GlobalFunctionsHelper::fputs | ( | $handle, | |
$string ) |
Wrapper around global function fputs()
resource | $handle | |
string | $string |
int |
Box\Spout\Common\Helper\GlobalFunctionsHelper::fseek | ( | $handle, | |
$offset ) |
Wrapper around global function fseek()
resource | $handle | |
int | $offset |
int |
Box\Spout\Common\Helper\GlobalFunctionsHelper::function_exists | ( | $functionName | ) |
Wrapper around global function function_exists()
string | $functionName |
bool |
Box\Spout\Common\Helper\GlobalFunctionsHelper::fwrite | ( | $handle, | |
$string ) |
Wrapper around global function fwrite()
resource | $handle | |
string | $string |
int |
Box\Spout\Common\Helper\GlobalFunctionsHelper::header | ( | $string | ) |
Wrapper around global function header()
string | $string |
void |
Box\Spout\Common\Helper\GlobalFunctionsHelper::iconv | ( | $string, | |
$sourceEncoding, | |||
$targetEncoding ) |
Wrapper around global function iconv()
string | $string | The string to be converted |
string | $sourceEncoding | The encoding of the source string |
string | $targetEncoding | The encoding the source string should be converted to |
string|bool | the converted string or FALSE on failure. |
Box\Spout\Common\Helper\GlobalFunctionsHelper::is_readable | ( | $fileName | ) |
Wrapper around global function is_readable()
string | $fileName |
bool |
|
protected |
Returns whether the given path is a zip stream.
string | $path | Path pointing to a document |
bool | TRUE if path is a zip stream, FALSE otherwise |
Box\Spout\Common\Helper\GlobalFunctionsHelper::mb_convert_encoding | ( | $string, | |
$sourceEncoding, | |||
$targetEncoding ) |
Wrapper around global function mb_convert_encoding()
string | $string | The string to be converted |
string | $sourceEncoding | The encoding of the source string |
string | $targetEncoding | The encoding the source string should be converted to |
string|bool | the converted string or FALSE on failure. |
Box\Spout\Common\Helper\GlobalFunctionsHelper::ob_end_clean | ( | ) |
Wrapper around global function ob_end_clean()
void |
Box\Spout\Common\Helper\GlobalFunctionsHelper::rewind | ( | $handle | ) |
Wrapper around global function rewind()
resource | $handle |
bool |
Box\Spout\Common\Helper\GlobalFunctionsHelper::stream_get_wrappers | ( | ) |
Wrapper around global function stream_get_wrappers()
array |