Elgg  Version 2.3
Includer.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg;
3 
9 final class Includer {
10 
17  static public function includeFile($file) {
18  return (include $file);
19  }
20 
27  static public function requireFile($file) {
28  return (require $file);
29  }
30 }
Allow executing scripts without $this context or local vars.
Definition: Includer.php:9
static requireFile($file)
Require a file with as little context as possible.
Definition: Includer.php:27
static includeFile($file)
Include a file with as little context as possible.
Definition: Includer.php:17
Save menu items.
if(!array_key_exists($filename, $text_files)) $file