Browse Source

[php7] Global.require(), Global.include()

Alexander Kuzmenko 8 years ago
parent
commit
746d2ee6ee
2 changed files with 25 additions and 6 deletions
  1. 21 1
      std/php7/Global.hx
  2. 4 5
      std/php7/Lib.hx

+ 21 - 1
std/php7/Global.hx

@@ -1166,5 +1166,25 @@ extern class Global {
 	/**
 	/**
 		@see http://php.net/manual/en/function.mail.php
 		@see http://php.net/manual/en/function.mail.php
 	**/
 	**/
-	static function mail( $to:String, $subject:String, $message:String, ?$additional_headers:String, ?$additional_parameters:String ) : Bool;
+	static function mail( to:String, subject:String, message:String, ?additional_headers:String, ?additional_parameters:String ) : Bool;
+
+	/**
+		@see http://php.net/manual/en/function.require.php
+	**/
+	static function require( include_path:String ) : Void;
+
+	/**
+		@see http://php.net/manual/en/function.require-once.php
+	**/
+	static function require_once( include_path:String ) : Void;
+
+	/**
+		@see http://php.net/manual/en/function.include.php
+	**/
+	static function include( include_path:String ) : Void;
+
+	/**
+		@see http://php.net/manual/en/function.include-once.php
+	**/
+	static function include_once( include_path:String ) : Void;
 }
 }

+ 4 - 5
std/php7/Lib.hx

@@ -140,10 +140,9 @@ class Lib {
 	}
 	}
 
 
 	/**
 	/**
-	*  Loads types defined in the specified directory.
- 	*/
- 	public static function loadLib(pathToLib : String) : Void
- 	{
+		Loads types defined in the specified directory.
+	**/
+	public static function loadLib(pathToLib : String) : Void {
 		throw "Not implemented";
 		throw "Not implemented";
- 	}
+	}
 }
 }