SHARE
TWEET

Untitled

a guest Jan 17th, 2020 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top