コード例 #1
0
 /**
  * Gets an array with Gateways.
  *
  * @access public
  * @return array
  */
 public function getGateways()
 {
     $gateways = array();
     foreach ($this->supported_gateways as $gateway) {
         $class = 'AktiveMerchant\\Billing\\Gateways\\' . $gateway;
         $gateways[Inflect::underscore($gateway)] = $class::$display_name;
     }
     return $gateways;
 }
コード例 #2
0
ファイル: Gateway.php プロジェクト: bluetechy/Aktive-Merchant
 public function factory_name()
 {
     $class = str_replace('ActiveMerchant\\Billing\\Gateways\\', '', get_class($this));
     return Inflect::underscore($class);
 }