| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/public_html/painel/mkt/MailWizzApi/ |
Upload File : |
<?php
/**
* This file contains the autoloader class for the MailWizzApi PHP-SDK.
*
* @author Serban George Cristian <cristian.serban@mailwizz.com>
* @link http://www.mailwizz.com/
* @copyright 2013-2017 http://www.mailwizz.com/
*/
/**
* The MailWizzApi Autoloader class.
*
* From within a Yii Application, you would load this as:
*
* <pre>
* require_once(Yii::getPathOfAlias('application.vendors.MailWizzApi.Autoloader').'.php');
* Yii::registerAutoloader(array('MailWizzApi_Autoloader', 'autoloader'), true);
* </pre>
*
* Alternatively you can:
* <pre>
* require_once('Path/To/MailWizzApi/Autoloader.php');
* MailWizzApi_Autoloader::register();
* </pre>
*
* @author Serban George Cristian <cristian.serban@mailwizz.com>
* @package MailWizzApi
* @since 1.0
*/
class MailWizzApi_Autoloader
{
/**
* The registrable autoloader
*
* @param string $class
*/
public static function autoloader($class)
{
if (strpos($class, 'MailWizzApi') === 0) {
$className = str_replace('_', '/', $class);
$className = substr($className, 12);
if (is_file($classFile = dirname(__FILE__) . '/'. $className.'.php')) {
require_once($classFile);
}
}
}
/**
* Registers the MailWizzApi_Autoloader::autoloader()
*/
public static function register()
{
spl_autoload_register(array('MailWizzApi_Autoloader', 'autoloader'));
}
}