wp-pay-gateways /
ideal-basic
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace Pronamic\WordPress\Pay\Gateways\IDealBasic; |
||||||
| 4 | |||||||
| 5 | use Pronamic\WordPress\Pay\Gateways\IDeal\AbstractIntegration as IDeal_AbstractIntegration; |
||||||
| 6 | |||||||
| 7 | /** |
||||||
| 8 | * Title: Abstract integration |
||||||
| 9 | * Description: |
||||||
| 10 | * Copyright: 2005-2019 Pronamic |
||||||
| 11 | * Company: Pronamic |
||||||
| 12 | * |
||||||
| 13 | * @author Remco Tolsma |
||||||
| 14 | * @version 2.0.0 |
||||||
| 15 | * @since 1.0.0 |
||||||
| 16 | */ |
||||||
| 17 | abstract class AbstractIntegration extends IDeal_AbstractIntegration { |
||||||
| 18 | public function __construct() { |
||||||
| 19 | // Actions. |
||||||
| 20 | $function = array( __NAMESPACE__ . '\Listener', 'listen' ); |
||||||
| 21 | |||||||
| 22 | if ( ! has_action( 'wp_loaded', $function ) ) { |
||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||
| 23 | add_action( 'wp_loaded', $function ); |
||||||
|
0 ignored issues
–
show
The function
add_action was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 24 | } |
||||||
| 25 | } |
||||||
| 26 | |||||||
| 27 | public function get_config_factory_class() { |
||||||
| 28 | return __NAMESPACE__ . '\ConfigFactory'; |
||||||
| 29 | } |
||||||
| 30 | |||||||
| 31 | public function get_settings_class() { |
||||||
| 32 | return array( |
||||||
| 33 | 'Pronamic\WordPress\Pay\Gateways\IDeal\Settings', |
||||||
| 34 | __NAMESPACE__ . '\Settings', |
||||||
| 35 | ); |
||||||
| 36 | } |
||||||
| 37 | |||||||
| 38 | /** |
||||||
| 39 | * Get required settings for this integration. |
||||||
| 40 | * |
||||||
| 41 | * @link https://github.com/wp-premium/gravityforms/blob/1.9.16/includes/fields/class-gf-field-multiselect.php#L21-L42 |
||||||
| 42 | * @since 1.1.3 |
||||||
| 43 | * @return array |
||||||
| 44 | */ |
||||||
| 45 | public function get_settings() { |
||||||
| 46 | $settings = parent::get_settings(); |
||||||
| 47 | |||||||
| 48 | $settings[] = 'ideal-basic'; |
||||||
| 49 | |||||||
| 50 | return $settings; |
||||||
| 51 | } |
||||||
| 52 | } |
||||||
| 53 |