PaymentAdmin::alternateAccessCheck()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * Model admin administration of payments.
5
 *
6
 * @package payment
7
 */
8
class PaymentAdmin extends ModelAdmin{
9
10
	private static $menu_title = "Payments";
11
	private static $url_segment = "payments";
12
	private static $menu_icon = 'omnipay/images/payment-admin.png';
13
	private static $menu_priority = 1;
14
15
	public $showImportForm = false;
16
17
	private static $managed_models = array(
18
		'Payment'
19
	);
20
21
	public function alternateAccessCheck() {
22
		return !$this->config()->hidden;
23
	}
24
25
}
26