Newer
Older
ubFramework / Portal / docroot / include / Sphere / Entity.php
@Christopher W. Olsen Christopher W. Olsen on 10 Dec 2017 414 bytes Cleaning Up Making It A Sub Module
<?php

class Sphere_Entity {

  static function getInstance($module) {

    $modName = $module;

    // File access security check
    if (! class_exists ( $modName )) {
      // checkFileAccessForInclusion("modules/$module/$modName.php");
      require_once ("modules/$module/$modName.php");
    }

    $focus = new $modName ();
    $focus->moduleName = $module;
    return $focus;

  }

}
?>