| 1 | <?php |
||
| 21 | class Factory |
||
| 22 | extends \Aimeos\Client\JsonApi |
||
| 23 | implements \Aimeos\Client\JsonApi\Common\Factory\Iface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Creates the required client specified by the given path of client names. |
||
| 27 | * |
||
| 28 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object required by clients |
||
| 29 | * @param string $path Name of the client separated by slashes, e.g "order/base" |
||
| 30 | * @param string|null $name Name of the client implementation ("Standard" if null) |
||
| 31 | * @return \Aimeos\Client\JsonApi\Iface JSON client instance |
||
| 32 | * @throws \Aimeos\Client\JsonApi\Exception If the given path is invalid |
||
| 33 | */ |
||
| 34 | static public function createClient( \Aimeos\MShop\Context\Item\Iface $context, $path, $name = null ) |
||
| 38 | |||
| 39 | |||
| 40 | /** |
||
| 41 | * Enables or disables caching of class instances. |
||
| 42 | * |
||
| 43 | * @param boolean $value True to enable caching, false to disable it. |
||
| 44 | * @return boolean Previous cache setting |
||
| 45 | */ |
||
| 46 | static public function setCache( $value ) |
||
| 50 | } |
||
| 51 |