SFAPIclient/Requests.php
public static function autoloader($class) {
		// Check that the class starts with "Requests"
		if (strpos($class, 'Requests') !== 0) {
			return;
		}

		$file = str_replace('_', '/', $class);
		if (file_exists(dirname(__FILE__) . '/' . $file . '.php')) {
			require_once(dirname(__FILE__) . '/' . $file . '.php');
		}
	}
public static function autoloader($class) {
		// Check that the class starts with "Requests"
		if (strpos($class, 'Requests') !== 0) {
			return;
		}

		$file = str_replace('_', '/', $class);
		if (file_exists(dirname(__FILE__) . '/' . $file . '.php')) {
			require_once(dirname(__FILE__) . '/' . $file . '.php');
		}
	}
public static function autoloader ( $ class ) { // Check that the class starts with "Requests" if ( strpos ( $ class , 'Requests' ) !== 0 ) { return ; } $ file = str_replace ( '_' , '/' , $ class ) ; if ( file_exists ( dirname ( __FILE__ ) . '/' . $ file . '.php' ) ) { require_once ( dirname ( __FILE__ ) . '/' . $ file . '.php' ) ; } }
Autoloader for Requests

Register this with {@see register_autoloader()} if you'd like to avoid
having to create your own.

(You can also use `spl_autoload_register` directly if you'd prefer.)

@codeCoverageIgnore

@param string $class Class name to load
Autoloader for Requests