/** * Singleton Instance * @return object */ public static function get_instance() { // If the single instance hasn't been set, set it now. if (NULL == self::$instance) { self::$instance = new self(); } return self::$instance; }