Haxe/php API documentation

To get started with the Haxe php target:


package php

..
db
net
reflection
ArrayAccess

Native PHP interface.

ArrayIterator

See:

CacheLimiter

Closure

See:

Const

This class contains externs for native PHP constants defined in global namespace. For native PHP functions in global namespace see php.Global.

Countable

See:

Error

ErrorException

See:

Exception

Generator

See:

Global

This class contains externs for native PHP functions defined in global namespace. For native PHP constants in global namespace see php.Const.

IteratorAggregate

See:

JsonSerializable

See:

Lib

Platform-specific PHP Library. Provides some platform-specific functions for the PHP target, such as conversion from Haxe types to native types and vice-versa.

NativeArray

Native PHP array.

NativeAssocArray

NativeIndexedArray

NativeIterator

Native PHP interface.

NativeString

Native PHP string.

NativeStringIterator

NativeStringKeyValueIterator

NativeStructArray

This type can be used in places where externs use associative arrays as a list of configuration options. This type is a special case for Haxe->Php generator: object declaration is generated as php array declaration whenever that object declaration is passed directly to a variable or a function argument of this type.

Ref

Special type which allows passing function arguments by reference. This type should be used for externs only.

Resource

PHP native resource type

RuntimeException

Scalar

Scalar is a type that is compatible with any scalar value (int, float, bool, string)

SeekableIterator

See:

Serializable

See:

Session

Session consists of a way to preserve certain data across subsequent accesses.

SessionHandlerInterface

See:

StdClass

SuperGlobal

Syntax

Special extern class to support PHP language specifics. Don't use these functions unless you are really sure what you are doing.

Throwable

See:

Traversable

See:

Web

This class is used for accessing the local Web server and the current client request and information.