»a; } static function toHaxeArray($a) { return new _hx_array($a); } static function hashOfAssociativeArray($arr) { $h = new Hash(); $h->h = $arr; return $h; } static function associativeArrayOfHash($hash) { return $hash->h; } static function objectOfAssociativeArray($arr) { foreach($arr as $key => $value){ if(is_array($value)) $arr[$key] = php_Lib::objectOfAssociativeArray($value); } return _hx_anonymous($arr); } static function associativeArrayOfObject($ob) { return (array) $ob; } static function mail($to, $subject, $message, $additionalHeaders = null, $additionalParameters = null) { if(null !== $additionalParameters) { return mail($to, $subject, $message, $additionalHeaders, $additionalParameters); } else { if(null !== $additionalHeaders) { return mail($to, $subject, $message, $additionalHeaders); } else { return mail($to, $subject, $message); } } } static function rethrow($e) { if(Std::is($e, _hx_qtype("php.Exception"))) { $__rtex__ = $e; throw $__rtex__; } else { throw new HException($e); } } static function appendType($o, $path, $t) { $name = $path->shift(); if($path->length === 0) { $o->$name = $t; } else { $so = ((isset($o->$name)) ? $o->$name : _hx_anonymous(array())); php_Lib::appendType($so, $path, $t); $o->$name = $so; } } static function getClasses() { $path = null; $o = _hx_anonymous(array()); reset(php_Boot::$qtypes); while(($path = key(php_Boot::$qtypes)) !== null) { php_Lib::appendType($o, _hx_explode(".", $path), php_Boot::$qtypes[$path]); next(php_Boot::$qtypes); } return $o; } static function loadLib($pathToLib) { $prefix = null; $_hx_types_array = array(); $_hx_cache_content = ''; //Calling this function will put all types present in the specified types in the $_hx_types_array _hx_build_paths($pathToLib, $_hx_types_array, array(), $prefix); for($i=0;$i__qname__, php_Boot::$qtypes)) { _hx_register_type($t); } } } function __toString() { return 'php.Lib'; } }