forked from HaxeFoundation/haxe
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[php7] Merge Array & NativeArray implementation
- Loading branch information
Showing
10 changed files
with
544 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package php7; | ||
|
||
/** | ||
Native PHP interface. | ||
@see http://php.net/manual/en/class.arrayaccess.php | ||
**/ | ||
@:native('ArrayAccess') | ||
extern interface ArrayAccess<K,V> { | ||
function offsetExists( offset:K ) : Bool; | ||
function offsetGet( offset:K ) : V; | ||
function offsetSet( offset:K, value:V ) : Void; | ||
function offsetUnset( offset:K ) : Void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
package php7; | ||
|
||
/** | ||
This class contains externs for native PHP constants defined in global namespace. | ||
For native PHP functions in global namespace see `php7.Global`. | ||
This class contains externs for native PHP constants defined in global namespace. | ||
For native PHP functions in global namespace see `php7.Global`. | ||
**/ | ||
@:phpGlobal | ||
extern class Const { | ||
/** | ||
@see http://php.net/manual/en/errorfunc.constants.php | ||
**/ | ||
static var E_ERROR : Int; | ||
static var E_WARNING : Int; | ||
static var E_PARSE : Int; | ||
static var E_NOTICE : Int; | ||
static var E_CORE_ERROR : Int; | ||
static var E_CORE_WARNING : Int; | ||
static var E_COMPILE_ERROR : Int; | ||
static var E_COMPILE_WARNING : Int; | ||
static var E_USER_ERROR : Int; | ||
static var E_USER_WARNING : Int; | ||
static var E_USER_NOTICE : Int; | ||
static var E_STRICT : Int; | ||
static var E_RECOVERABLE_ERROR : Int; | ||
static var E_DEPRECATED : Int; | ||
static var E_USER_DEPRECATED : Int; | ||
static var E_ALL : Int; | ||
/** | ||
@see http://php.net/manual/en/errorfunc.constants.php | ||
**/ | ||
static var E_ERROR : Int; | ||
static var E_WARNING : Int; | ||
static var E_PARSE : Int; | ||
static var E_NOTICE : Int; | ||
static var E_CORE_ERROR : Int; | ||
static var E_CORE_WARNING : Int; | ||
static var E_COMPILE_ERROR : Int; | ||
static var E_COMPILE_WARNING : Int; | ||
static var E_USER_ERROR : Int; | ||
static var E_USER_WARNING : Int; | ||
static var E_USER_NOTICE : Int; | ||
static var E_STRICT : Int; | ||
static var E_RECOVERABLE_ERROR : Int; | ||
static var E_DEPRECATED : Int; | ||
static var E_USER_DEPRECATED : Int; | ||
static var E_ALL : Int; | ||
/** | ||
@see http://php.net/manual/en/function.count.php | ||
**/ | ||
static var COUNT_NORMAL : Int; | ||
static var COUNT_RECURSIVE : Int; | ||
/** | ||
@see http://php.net/manual/en/function.array-filter.php | ||
**/ | ||
static var ARRAY_FILTER_USE_KEY : Int; | ||
static var ARRAY_FILTER_USE_BOTH : Int; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.