Elgg  Version 3.0
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
if(!array_key_exists($filename, $text_files)) $file
Configuration exception.
Allow executing scripts without $this context or local vars.
Definition: Includer.php:10
elgg require
Throw an error if the required package isn&#39;t present.
Definition: elgglib.js:164
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