This repository has been archived by the owner on Jul 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,533 additions
and
1,425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<?php | ||
|
||
class inWidgetAutoloader | ||
class InWidgetAutoloader | ||
{ | ||
private static $_lastLoadedFilename; | ||
public static function loadPackages($className) | ||
{ | ||
$className = str_replace("\\", "/", $className); | ||
$pathParts = explode('_', $className); | ||
self::$_lastLoadedFilename = implode('/', $pathParts) . '.php'; | ||
require_once(__DIR__.'/'.self::$_lastLoadedFilename); | ||
} | ||
private static $lastLoadedFilename; | ||
|
||
public static function loadPackages($className) | ||
{ | ||
$className = str_replace("\\", "/", $className); | ||
$pathParts = explode('_', $className); | ||
self::$lastLoadedFilename = implode('/', $pathParts) . '.php'; | ||
require_once(__DIR__ . '/' . self::$lastLoadedFilename); | ||
} | ||
} | ||
spl_autoload_register(array('inWidgetAutoloader', 'loadPackages')); | ||
|
||
spl_autoload_register(array('InWidgetAutoloader', 'loadPackages')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/InWidget/Exception/inWidgetException.php'; | ||
require_once __DIR__ . '/InWidget/API/apiModel.php'; | ||
require_once __DIR__ . '/InWidget/API/apiScraper.php'; | ||
require_once __DIR__ . '/InWidget/API/apiOfficial.php'; | ||
require_once __DIR__ . '/InWidget/Core.php'; | ||
require_once __DIR__ . '/InWidget/Exception/InWidgetException.php'; | ||
require_once __DIR__ . '/InWidget/Api/ApiModel.php'; | ||
require_once __DIR__ . '/InWidget/Api/ApiScraper.php'; | ||
require_once __DIR__ . '/InWidget/Api/ApiOfficial.php'; | ||
require_once __DIR__ . '/InWidget/Core.php'; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.