Browse Source

[php] Add externs for `fileatime()`, `filectime()` and `filemtime()` (#9830)

Cédric Belin 5 years ago
parent
commit
428e46950a
1 changed files with 15 additions and 0 deletions
  1. 15 0
      std/php/Global.hx

+ 15 - 0
std/php/Global.hx

@@ -690,6 +690,21 @@ extern class Global {
 	**/
 	static function file_put_contents(filename:String, data:Dynamic, flags:Int = 0, ?context:Resource):EitherType<Int, Bool>;
 
+	/**
+		@see http://php.net/manual/en/function.fileatime.php
+	**/
+	static function fileatime(filename:String):EitherType<Int, Bool>;
+
+	/**
+		@see http://php.net/manual/en/function.filectime.php
+	**/
+	static function filectime(filename:String):EitherType<Int, Bool>;
+
+	/**
+		@see http://php.net/manual/en/function.filemtime.php
+	**/
+	static function filemtime(filename:String):EitherType<Int, Bool>;
+
 	/**
 		@see http://php.net/manual/en/function.clearstatcache.php
 	**/