1 | <?php |
||
24 | class Standard |
||
25 | extends \Aimeos\Controller\Frontend\Base |
||
26 | implements Iface, \Aimeos\Controller\Frontend\Common\Iface |
||
27 | { |
||
28 | private $providers = []; |
||
|
|||
29 | |||
30 | |||
31 | /** |
||
32 | * Returns a list of attributes that are invalid |
||
33 | * |
||
34 | * @param string $serviceId Unique service ID |
||
35 | * @param string[] $attributes List of attribute codes as keys and strings entered by the customer as value |
||
36 | * @return string[] List of attributes codes as keys and error messages as values for invalid or missing values |
||
37 | */ |
||
38 | public function checkAttributes( $serviceId, array $attributes ) |
||
47 | |||
48 | |||
49 | /** |
||
50 | * Returns the service item for the given ID |
||
51 | * |
||
52 | * @param string $serviceId Unique service ID |
||
53 | * @param string[] $ref List of domain names whose items should be fetched too |
||
54 | * @return \Aimeos\MShop\Service\Provider\Iface Service provider object |
||
55 | */ |
||
56 | public function getProvider( $serviceId, $ref = ['media', 'price', 'text'] ) |
||
63 | |||
64 | |||
65 | /** |
||
66 | * Returns the service providers of the given type |
||
67 | * |
||
68 | * @param string|null $type Service type, e.g. "delivery" (shipping related), "payment" (payment related) or null for all |
||
69 | * @param string[] $ref List of domain names whose items should be fetched too |
||
70 | * @return \Aimeos\MShop\Service\Provider\Iface[] List of service IDs as keys and service provider objects as values |
||
71 | */ |
||
72 | public function getProviders( $type = null, $ref = ['media', 'price', 'text'] ) |
||
96 | |||
97 | |||
98 | /** |
||
99 | * Processes the service for the given order, e.g. payment and delivery services |
||
100 | * |
||
101 | * @param \Aimeos\MShop\Order\Item\Iface $orderItem Order which should be processed |
||
102 | * @param string $serviceId Unique service item ID |
||
103 | * @param array $urls Associative list of keys and the corresponding URLs |
||
104 | * (keys are <type>.url-self, <type>.url-success, <type>.url-update where type can be "delivery" or "payment") |
||
105 | * @param array $params Request parameters and order service attributes |
||
106 | * @return \Aimeos\MShop\Common\Item\Helper\Form\Iface|null Form object with URL, parameters, etc. |
||
107 | * or null if no form data is required |
||
108 | */ |
||
109 | public function process( \Aimeos\MShop\Order\Item\Iface $orderItem, $serviceId, array $urls, array $params ) |
||
119 | |||
120 | |||
121 | /** |
||
122 | * Updates the order status sent by payment gateway notifications |
||
123 | * |
||
124 | * @param ServerRequestInterface $request Request object |
||
125 | * @param ResponseInterface $response Response object that will contain HTTP status and response body |
||
126 | * @param string $code Unique code of the service used for the current order |
||
127 | * @return \Psr\Http\Message\ResponseInterface Response object |
||
128 | */ |
||
129 | public function updatePush( ServerRequestInterface $request, ResponseInterface $response, $code ) |
||
138 | |||
139 | |||
140 | /** |
||
141 | * Updates the payment or delivery status for the given request |
||
142 | * |
||
143 | * @param ServerRequestInterface $request Request object with parameters and request body |
||
144 | * @param string $code Unique code of the service used for the current order |
||
145 | * @param string $orderid ID of the order whose payment status should be updated |
||
146 | * @return \Aimeos\MShop\Order\Item\Iface $orderItem Order item that has been updated |
||
147 | */ |
||
148 | public function updateSync( ServerRequestInterface $request, $code, $orderid ) |
||
171 | } |
||
172 |
This check marks private properties in classes that are never used. Those properties can be removed.