Changeset 1938

Show
Ignore:
Timestamp:
02/05/2008 05:47:53 PM (11 months ago)
Author:
zombor
Message:

Bad zombor!

Location:
trunk/system/libraries
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Payment.php

    r1911 r1938  
    8686                // Initialize the driver 
    8787                $this->driver = new $driver($this->config); 
     88 
     89                if ( ! ($this->driver instanceof Payment_Driver)) 
     90                        throw new Kohana_Exception('payment.driver_not_supported', 'Payment drivers must use the Payment_Driver interface.'); 
    8891        } 
    8992 
  • trunk/system/libraries/drivers/Payment.php

    r1935 r1938  
    55 * $Id$ 
    66 * 
    7  * @package    Core 
     7 * @package    Payment 
    88 * @author     Kohana Team 
    99 * @copyright  (c) 2007-2008 Kohana Team 
  • trunk/system/libraries/drivers/Payment/Authorize.php

    r1935 r1938  
    1010 * @license    http://kohanaphp.com/license.html 
    1111 */ 
    12 class Payment_Authorize_Driver 
     12class Payment_Authorize_Driver implements Payment_Driver 
    1313{ 
    1414        // Fields required to do a transaction 
  • trunk/system/libraries/drivers/Payment/Paypal.php

    r1935 r1938  
    1313 * @license    http://kohanaphp.com/license.html 
    1414 */ 
    15 class Payment_Paypal_Driver { 
     15class Payment_Paypal_Driver implements Payment_Driver { 
    1616 
    1717        private $required_fields = array 
  • trunk/system/libraries/drivers/Payment/Trident.php

    r1935 r1938  
    1010 * @license    http://kohanaphp.com/license.html 
    1111 */ 
    12 class Payment_Trident_Driver 
     12class Payment_Trident_Driver implements Payment_Driver 
    1313{ 
    1414        // Fields required to do a transaction 
  • trunk/system/libraries/drivers/Payment/Trustcommerce.php

    r1935 r1938  
    1010 * @license    http://kohanaphp.com/license.html 
    1111 */ 
    12 class Payment_Trustcommerce_Driver 
     12class Payment_Trustcommerce_Driver implements Payment_Driver 
    1313{ 
    1414        // Fields required to do a transaction 
  • trunk/system/libraries/drivers/Payment/Yourpay.php

    r1935 r1938  
    1010 * @license    http://kohanaphp.com/license.html 
    1111 */ 
    12 class Payment_Yourpay_Driver 
     12class Payment_Yourpay_Driver implements Payment_Driver 
    1313{ 
    1414        // Fields required to do a transaction