Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php
  2. class functionsClass{
  3.  
  4.     private $version = '1.0.0.0';
  5.     private $dependsOn = array();
  6.  
  7.  
  8.     static protected $instance = null;
  9.  
  10.     public function __construct(){}
  11.  
  12.     static function getInstance(){
  13.         if(!self :: $instance)
  14.             self :: $instance = new self();
  15.         return self :: $instance;
  16.     }
  17.  
  18.     public function __call($funcName,$args){
  19.         if(!function_exists($funcName))
  20.             include_once '/includes/functions/'.$funcName.'.php5';
  21.         return call_user_func_array($funcName,$args);
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement