Overview
  • Namespace
  • Class

Namespaces

  • Mypos
    • IPC

Classes

  • Mypos\IPC\Authorization
  • Mypos\IPC\AuthorizationCapture
  • Mypos\IPC\AuthorizationList
  • Mypos\IPC\AuthorizationReverse
  • Mypos\IPC\Base
  • Mypos\IPC\Card
  • Mypos\IPC\CardStore
  • Mypos\IPC\Cart
  • Mypos\IPC\Config
  • Mypos\IPC\Customer
  • Mypos\IPC\Defines
  • Mypos\IPC\GetPaymentStatus
  • Mypos\IPC\GetTxnStatus
  • Mypos\IPC\Helper
  • Mypos\IPC\IAPreAuthorization
  • Mypos\IPC\IAPurchase
  • Mypos\IPC\IAStoreCard
  • Mypos\IPC\IAStoredCardUpdate
  • Mypos\IPC\IPCGetTxnLog
  • Mypos\IPC\Loader
  • Mypos\IPC\MandateManagement
  • Mypos\IPC\PreAuthorization
  • Mypos\IPC\PreAuthorizationCancellation
  • Mypos\IPC\PreAuthorizationCompletion
  • Mypos\IPC\PreAuthorizationStatus
  • Mypos\IPC\Purchase
  • Mypos\IPC\PurchaseByIcard
  • Mypos\IPC\Refund
  • Mypos\IPC\RequestMoney
  • Mypos\IPC\Response
  • Mypos\IPC\Reversal

Exceptions

  • Mypos\IPC\IPC_Exception
 1 <?php
 2 
 3 namespace Mypos\IPC;
 4 
 5 /**
 6  * Library classes loader
 7  */
 8 class Loader{
 9 
10     /**
11      * Find and include required class file
12      * @param string $class_name
13      * @return boolean
14      */
15     static public function loader($class_name){
16 
17         if(preg_match('/^' . str_replace('\\', '\\\\', __NAMESPACE__) . '\\\/', $class_name)){
18             $filePath = dirname(__FILE__) . DIRECTORY_SEPARATOR . str_replace(array(__NAMESPACE__ . '\\', '\\'), array('', DIRECTORY_SEPARATOR), $class_name) . '.php';
19             if(is_file($filePath) && is_readable($filePath)){
20                 require_once $filePath;
21                 return true;
22             }
23         }
24     }
25 
26 }
27 
28 spl_autoload_register('\Mypos\IPC\Loader::loader');
29 
API documentation generated by ApiGen