forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
@ -9,6 +9,36 @@ import haxe.Constraints;
|
||||
**/
|
||||
@:phpGlobal
|
||||
extern class Global {
|
||||
/**
|
||||
@see http://php.net/manual/en/function.get-browser.php
|
||||
**/
|
||||
static function get_browser(?user_agent:String, ?return_array:Bool = false):EitherType<Dynamic, EitherType<NativeArray, Bool>>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.get-defined-constants.php
|
||||
**/
|
||||
static function get_defined_constants(categorize:Bool = false):NativeArray;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.finfo-file.php
|
||||
**/
|
||||
static function finfo_file(finfo:Finfo, filename:String, flags:Int = 0, ?context:Resource):EitherType<String, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.finfo-open.php
|
||||
**/
|
||||
static function finfo_open(flags:Int = 0, ?magic_database:String):EitherType<Finfo, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.finfo-close.php
|
||||
**/
|
||||
static function finfo_close(finfo:Finfo):Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.fastcgi-finish-request.php
|
||||
**/
|
||||
static function fastcgi_finish_request():Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.exit.php
|
||||
**/
|
||||
@ -370,6 +400,11 @@ extern class Global {
|
||||
**/
|
||||
static function strpos(haystack:String, needle:String, offset:Int = 0):EitherType<Bool, Int>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.stripos.php
|
||||
**/
|
||||
static function stripos(haystack:String, needle:String, offset:Int = 0):EitherType<Bool, Int>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.strrpos.php
|
||||
**/
|
||||
@ -390,6 +425,11 @@ extern class Global {
|
||||
**/
|
||||
static function strcmp(str1:String, str2:String):Int;
|
||||
|
||||
/**
|
||||
@see https://www.php.net/manual/en/function.strspn.php
|
||||
**/
|
||||
static function strspn(string:String, characters:String, offset:Int = 0, ?length:Int):Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.strtr.php
|
||||
**/
|
||||
@ -407,6 +447,11 @@ extern class Global {
|
||||
static function str_replace(search:EitherType<String, NativeArray>, replace:EitherType<String, NativeArray>, subject:EitherType<String, NativeArray>,
|
||||
?count:Int):EitherType<String, NativeArray>;
|
||||
|
||||
/**
|
||||
@see https://www.php.net/manual/en/function.str-starts-with.php
|
||||
**/
|
||||
static function str_starts_with(haystack:String, needle:String):Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.explode.php
|
||||
**/
|
||||
@ -1197,7 +1242,7 @@ extern class Global {
|
||||
/**
|
||||
@see http://php.net/manual/en/function.mb-strlen.php
|
||||
**/
|
||||
static function mb_strlen(str:String, ?encoding:String):EitherType<Int, Bool>;
|
||||
static function mb_strlen(str:String, ?encoding:String):Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.mb-substr.php
|
||||
@ -1454,6 +1499,11 @@ extern class Global {
|
||||
**/
|
||||
static function base64_decode(data:String, strict:Bool = false):EitherType<String, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.gethostname.php
|
||||
**/
|
||||
static function gethostname():EitherType<String, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.gethostbyname.php
|
||||
**/
|
||||
@ -1868,4 +1918,244 @@ extern class Global {
|
||||
@see http://php.net/manual/en/function.empty.php
|
||||
**/
|
||||
static function empty(variable:Any):Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.quoted-printable-decode.php
|
||||
**/
|
||||
static function quoted_printable_decode(string:String):String;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.quoted-printable-encode.php
|
||||
**/
|
||||
static function quoted_printable_encode(string:String):String;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.easter-date.php
|
||||
**/
|
||||
static function easter_date(?year:Int, ?mode:Int): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.easter-days.php
|
||||
**/
|
||||
static function easter_days(?year:Int, ?mode:Int): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.sys-get-temp-dir.php
|
||||
**/
|
||||
static function sys_get_temp_dir():String;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.tempnam.php
|
||||
**/
|
||||
static function tempnam(directory:String, prefix:String):EitherType<String, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.tmpfile.php
|
||||
**/
|
||||
static function tmpfile():EitherType<Resource, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-alloc.php
|
||||
**/
|
||||
static function ftp_alloc(ftp: Resource, size: Int, ?response: Ref<String>): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-append.php
|
||||
**/
|
||||
static function ftp_append(ftp: Resource, remote_filename: String, local_filename: String, ?mode: Int): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-cdup.php
|
||||
**/
|
||||
static function ftp_cdup(ftp: Resource): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-chdir.php
|
||||
**/
|
||||
static function ftp_chdir(ftp: Resource, directory: String): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-chmod.php
|
||||
**/
|
||||
static function ftp_chmod(ftp: Resource, permissions: Int, filename: String): EitherType<Int, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-close.php
|
||||
**/
|
||||
static function ftp_close(ftp: Resource): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-connect.php
|
||||
**/
|
||||
static function ftp_connect(hostname: String, port: Int = 21, timeout: Int = 90): EitherType<Resource, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-delete.php
|
||||
**/
|
||||
static function ftp_delete(ftp: Resource, filename: String): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-exec.php
|
||||
**/
|
||||
static function ftp_exec(ftp: Resource, command: String): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-fget.php
|
||||
**/
|
||||
static function ftp_fget(ftp: Resource, stream: Resource, remote_filename: String, ?mode: Int, offset: Int = 0): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-fput.php
|
||||
**/
|
||||
static function ftp_fput(ftp: Resource, remote_filename: String, stream: Resource, ?mode: Int, offset: Int = 0): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-get.php
|
||||
**/
|
||||
static function ftp_get(ftp: Resource, local_filename: String, remote_filename: String, offset: Int = 0): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-get-option.php
|
||||
**/
|
||||
static function ftp_get_option(ftp: Resource, option: Int): EitherType<Int, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-login.php
|
||||
**/
|
||||
static function ftp_login(ftp: Resource, username: String, password: String): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-mdtm.php
|
||||
**/
|
||||
static function ftp_mdtm(ftp: Resource, filename: String): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-mkdir.php
|
||||
**/
|
||||
static function ftp_mkdir(ftp: Resource, directory: String): EitherType<String, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-mlsd.php
|
||||
**/
|
||||
static function ftp_mlsd(ftp: Resource, directory: String): EitherType<NativeIndexedArray<NativeAssocArray<String>>, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-nb-continue.php
|
||||
**/
|
||||
static function ftp_nb_continue(ftp: Resource): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-nb-fget.php
|
||||
**/
|
||||
static function ftp_nb_fget(ftp: Resource, stream: Resource, remote_filename: String, ?mode: Int, offset: Int = 0): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-nb-fput.php
|
||||
**/
|
||||
static function ftp_nb_fput(ftp: Resource, remote_filename: String, stream: Resource, ?mode: Int, offset: Int = 0): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-nb-get.php
|
||||
**/
|
||||
static function ftp_nb_get(ftp: Resource, local_filename: String, remote_filename: String, offset: Int = 0): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-nb-put.php
|
||||
**/
|
||||
static function ftp_nb_put(ftp: Resource, remote_filename: String, local_filename: String, offset: Int = 0): EitherType<Int, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-nlist.php
|
||||
**/
|
||||
static function ftp_nlist(ftp: Resource, directory: String): EitherType<NativeIndexedArray<String>, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-pasv.php
|
||||
**/
|
||||
static function ftp_pasv(ftp: Resource, enable: Bool): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-put.php
|
||||
**/
|
||||
static function ftp_put(ftp: Resource, remote_filename: String, local_filename: String, offset: Int = 0): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-pwd.php
|
||||
**/
|
||||
static function ftp_pwd(ftp: Resource): EitherType<String, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-raw.php
|
||||
**/
|
||||
static function ftp_raw(ftp: Resource, command: String): NativeIndexedArray<String>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-rawlist.php
|
||||
**/
|
||||
static function ftp_rawlist(ftp: Resource, directory: String, recursive: Bool = false): EitherType<NativeIndexedArray<String>, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-rename.php
|
||||
**/
|
||||
static function ftp_rename(ftp: Resource, from: String, to: String): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-rmdir.php
|
||||
**/
|
||||
static function ftp_rmdir(ftp: Resource, directory: String): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-set-option.php
|
||||
**/
|
||||
static function ftp_set_option(ftp: Resource, option: Int, value: EitherType<Int, Bool>): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-site.php
|
||||
**/
|
||||
static function ftp_site(ftp: Resource, command: String): Bool;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-size.php
|
||||
**/
|
||||
static function ftp_size(ftp: Resource, filename: String): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-ssl-connect.php
|
||||
**/
|
||||
static function ftp_ssl_connect(hostname: String, port: Int = 21, timeout: Int = 90): EitherType<Resource, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ftp-systype.php
|
||||
**/
|
||||
static function ftp_systype(ftp: Resource): EitherType<String, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.connection-aborted.php
|
||||
**/
|
||||
static function connection_aborted(): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.connection-status.php
|
||||
**/
|
||||
static function connection_status(): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.ignore-user-abort.php
|
||||
**/
|
||||
static function ignore_user_abort(enable: Null<Bool> = null): Int;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.highlight-file.php
|
||||
**/
|
||||
static function highlight_file(filename: String, returns: Bool = false): EitherType<String, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.highlight-string.php
|
||||
**/
|
||||
static function highlight_string(string: String, returns: Bool = false): EitherType<String, Bool>;
|
||||
|
||||
/**
|
||||
@see http://php.net/manual/en/function.php-strip-whitespace.php
|
||||
**/
|
||||
static function php_strip_whitespace(filename: String): String;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user