google_api_php_client_autoload_gadswp

Copyright 2014 Google Inc.

Description

google_api_php_client_autoload_gadswp( (string) $className ); 

Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Parameters (1)

0. $classname (string)
The className.

Usage

  1. if ( !function_exists( 'google_api_php_client_autoload_gadswp' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-adsense-dashboard/autoload.php'; 
  3.  
  4. // The className. 
  5. $classname = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = google_api_php_client_autoload_gadswp($classname); 
  9.  

Defined (1)

The function is defined in the following location(s).

/autoload.php  
  1. function google_api_php_client_autoload_gadswp($className) { 
  2. $classPath = explode('_', $className); 
  3. if ($classPath[0] != 'Google') { 
  4. return; 
  5. if (count($classPath) > 3) { 
  6. // Maximum class file path depth in this project is 3. 
  7. $classPath = array_slice($classPath, 0, 3); 
  8. $filePath = dirname(__FILE__) . '/src/' . implode('/', $classPath) . '.php'; 
  9. if (file_exists($filePath)) { 
  10. require_once($filePath);