catalog/includes/OSC/OM/Modules/AdminDashboard.php 1 location
|
@@ 13-38 (lines=26) @@
|
10 |
|
|
11 |
|
use OSC\OM\Apps; |
12 |
|
|
13 |
|
class AdminDashboard extends \OSC\OM\ModulesAbstract |
14 |
|
{ |
15 |
|
public function getInfo($app, $key, $data) |
16 |
|
{ |
17 |
|
$result = []; |
18 |
|
|
19 |
|
$class = $this->ns . $app . '\\' . $data; |
20 |
|
|
21 |
|
if (is_subclass_of($class, 'OSC\OM\Modules\\' . $this->code . 'Interface')) { |
22 |
|
$result[$app . '\\' . $key] = $class; |
23 |
|
} |
24 |
|
|
25 |
|
return $result; |
26 |
|
} |
27 |
|
|
28 |
|
public function getClass($module) |
29 |
|
{ |
30 |
|
list($vendor, $app, $code) = explode('\\', $module, 3); |
31 |
|
|
32 |
|
$info = Apps::getInfo($vendor . '\\' . $app); |
33 |
|
|
34 |
|
if (isset($info['modules'][$this->code][$code])) { |
35 |
|
return $this->ns . $vendor . '\\' . $app . '\\' . $info['modules'][$this->code][$code]; |
36 |
|
} |
37 |
|
} |
38 |
|
} |
39 |
|
|
catalog/includes/OSC/OM/Modules/AdminMenu.php 1 location
|
@@ 13-38 (lines=26) @@
|
10 |
|
|
11 |
|
use OSC\OM\Apps; |
12 |
|
|
13 |
|
class AdminMenu extends \OSC\OM\ModulesAbstract |
14 |
|
{ |
15 |
|
public function getInfo($app, $key, $data) |
16 |
|
{ |
17 |
|
$result = []; |
18 |
|
|
19 |
|
$class = $this->ns . $app . '\\' . $data; |
20 |
|
|
21 |
|
if (is_subclass_of($class, 'OSC\OM\Modules\\' . $this->code . 'Interface')) { |
22 |
|
$result[$app . '\\' . $key] = $class; |
23 |
|
} |
24 |
|
|
25 |
|
return $result; |
26 |
|
} |
27 |
|
|
28 |
|
public function getClass($module) |
29 |
|
{ |
30 |
|
list($vendor, $app, $code) = explode('\\', $module, 3); |
31 |
|
|
32 |
|
$info = Apps::getInfo($vendor . '\\' . $app); |
33 |
|
|
34 |
|
if (isset($info['modules'][$this->code][$code])) { |
35 |
|
return $this->ns . $vendor . '\\' . $app . '\\' . $info['modules'][$this->code][$code]; |
36 |
|
} |
37 |
|
} |
38 |
|
} |
39 |
|
|
catalog/includes/OSC/OM/Modules/Payment.php 1 location
|
@@ 13-38 (lines=26) @@
|
10 |
|
|
11 |
|
use OSC\OM\Apps; |
12 |
|
|
13 |
|
class Payment extends \OSC\OM\ModulesAbstract |
14 |
|
{ |
15 |
|
public function getInfo($app, $key, $data) |
16 |
|
{ |
17 |
|
$result = []; |
18 |
|
|
19 |
|
$class = $this->ns . $app . '\\' . $data; |
20 |
|
|
21 |
|
if (is_subclass_of($class, 'OSC\OM\Modules\\' . $this->code . 'Interface')) { |
22 |
|
$result[$app . '\\' . $key] = $class; |
23 |
|
} |
24 |
|
|
25 |
|
return $result; |
26 |
|
} |
27 |
|
|
28 |
|
public function getClass($module) |
29 |
|
{ |
30 |
|
list($vendor, $app, $code) = explode('\\', $module, 3); |
31 |
|
|
32 |
|
$info = Apps::getInfo($vendor . '\\' . $app); |
33 |
|
|
34 |
|
if (isset($info['modules'][$this->code][$code])) { |
35 |
|
return $this->ns . $vendor . '\\' . $app . '\\' . $info['modules'][$this->code][$code]; |
36 |
|
} |
37 |
|
} |
38 |
|
} |
39 |
|
|
catalog/includes/OSC/OM/Modules/OrderTotal.php 1 location
|
@@ 13-38 (lines=26) @@
|
10 |
|
|
11 |
|
use OSC\OM\Apps; |
12 |
|
|
13 |
|
class OrderTotal extends \OSC\OM\ModulesAbstract |
14 |
|
{ |
15 |
|
public function getInfo($app, $key, $data) |
16 |
|
{ |
17 |
|
$result = []; |
18 |
|
|
19 |
|
$class = $this->ns . $app . '\\' . $data; |
20 |
|
|
21 |
|
if (is_subclass_of($class, 'OSC\OM\Modules\\' . $this->code . 'Interface')) { |
22 |
|
$result[$app . '\\' . $key] = $class; |
23 |
|
} |
24 |
|
|
25 |
|
return $result; |
26 |
|
} |
27 |
|
|
28 |
|
public function getClass($module) |
29 |
|
{ |
30 |
|
list($vendor, $app, $code) = explode('\\', $module, 3); |
31 |
|
|
32 |
|
$info = Apps::getInfo($vendor . '\\' . $app); |
33 |
|
|
34 |
|
if (isset($info['modules'][$this->code][$code])) { |
35 |
|
return $this->ns . $vendor . '\\' . $app . '\\' . $info['modules'][$this->code][$code]; |
36 |
|
} |
37 |
|
} |
38 |
|
} |
39 |
|
|
catalog/includes/OSC/OM/Modules/Shipping.php 1 location
|
@@ 13-38 (lines=26) @@
|
10 |
|
|
11 |
|
use OSC\OM\Apps; |
12 |
|
|
13 |
|
class Shipping extends \OSC\OM\ModulesAbstract |
14 |
|
{ |
15 |
|
public function getInfo($app, $key, $data) |
16 |
|
{ |
17 |
|
$result = []; |
18 |
|
|
19 |
|
$class = $this->ns . $app . '\\' . $data; |
20 |
|
|
21 |
|
if (is_subclass_of($class, 'OSC\OM\Modules\\' . $this->code . 'Interface')) { |
22 |
|
$result[$app . '\\' . $key] = $class; |
23 |
|
} |
24 |
|
|
25 |
|
return $result; |
26 |
|
} |
27 |
|
|
28 |
|
public function getClass($module) |
29 |
|
{ |
30 |
|
list($vendor, $app, $code) = explode('\\', $module, 3); |
31 |
|
|
32 |
|
$info = Apps::getInfo($vendor . '\\' . $app); |
33 |
|
|
34 |
|
if (isset($info['modules'][$this->code][$code])) { |
35 |
|
return $this->ns . $vendor . '\\' . $app . '\\' . $info['modules'][$this->code][$code]; |
36 |
|
} |
37 |
|
} |
38 |
|
} |
39 |
|
|