Elgg  Version master
Includer.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg;
4 
10 final class Includer {
11 
18  public static function includeFile($file) {
19  return include $file;
20  }
21 
28  public static function requireFile($file) {
29  return require $file;
30  }
31 
38  public static function requireFileOnce($file) {
39  return require_once $file;
40  }
41 }
static includeFile($file)
Include a file with as little context as possible.
Definition: Includer.php:18
Allow executing scripts without $this context or local vars.
Definition: Includer.php:10
static requireFile($file)
Require a file with as little context as possible.
Definition: Includer.php:28
static requireFileOnce($file)
Require a file once with as little context as possible.
Definition: Includer.php:38