# Class Opencart\System\Library\Language

Class Language

Located at system\library\language.php

Methods
`public` | `__construct(string $code)` Constructor Constructor | #
`public` | `addPath(string $namespace, string $directory = ''): void` addPath addPath | #
`public` | `get(string $key): string` Get Get language text string Get Get language text string | #
`public` | `set(string $key, string $value): void` Set Set language text string Set Set language text string | #
`public` | `all(string $prefix = ''): array<string, string>` All All | #
`public` | `clear(): void` Clear Clear | #
`public` | `load(string $filename, string $prefix = '', string $code = ''): array<string, string>` Load Load #### Parameters
$code | Language code
| #

Properties
`protected` | `string` | `$code` | #
`protected` | `string` | `$directory` | #
`protected` | `array<string, string>` | `$path = []` | #
`protected` | `array<string, string>` | `$data = []` | #
`protected` | `array<string, array<string, array<string, mixed>>>` | `$cache = []` | #

OpenCart API API documentation generated by ApiGen dev-master