opencart/docs/api/Opencart.System.Library.Language.html
2024-03-04 23:29:14 +08:00

573 lines
14 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Class Opencart\System\Library\Language | OpenCart API API</title>
<link rel="stylesheet" href="http://localhost\opencart-master/docs/api/assets/main.css">
<script src="http://localhost\opencart-master/docs/api/assets/main.js" defer></script>
</head>
<body class="layout">
<div class="layout-aside">
<div class="menu">
<div class="menu-section">
<h3>Namespaces</h3>
<ul>
<li class="menuGroup-item active">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.html">Opencart</a>
<ul>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.html">Admin</a>
</li>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.html">Catalog</a>
</li>
<li class="menuGroup-item active">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.html">System</a>
<ul>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Engine.html">Engine</a>
</li>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Helper.html">Helper</a>
</li>
<li class="menuGroup-item active">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html">Library</a>
<ul>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Cache.html">Cache</a>
</li>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Cart.html">Cart</a>
</li>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.DB.html">DB</a>
</li>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Mail.html">Mail</a>
</li>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Session.html">Session</a>
</li>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Template.html">Template</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="menuGroup-item">
<a href="http://localhost\opencart-master/docs/api/namespace-none.html">none</a>
</li>
</ul>
</div>
<div class="menu-section">
<h3>Classes</h3>
<ul>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Cache.html">
Cache
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.DB.html">
DB
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Document.html">
Document
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Image.html">
Image
</a>
</li>
<li class="active">
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Language.html">
Language
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Log.html">
Log
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Mail.html">
Mail
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Request.html">
Request
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Response.html">
Response
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Session.html">
Session
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Template.html">
Template
</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Url.html">
Url
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="layout-main">
<div class="layout-navbar">
<nav class="navbar">
<div class="navbar-left">
<ul class="navbar-links">
<li>
<a href="http://localhost\opencart-master/docs/api/index.html">Overview</a>
</li>
<li>
<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html">Namespace</a>
</li>
<li class="active"><a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Language.html">Class</a></li> <li>
<a href="http://localhost\opencart-master/docs/api/tree.html">Tree</a>
</li>
</ul>
</div>
<div class="navbar-right">
<div class="search" data-elements="http://localhost\opencart-master/docs/api/assets/elements.js">
<input class="search-input" placeholder="Search class, function or namespace" autofocus>
<ul class="search-results"></ul>
</div>
</div>
</nav>
</div>
<div class="layout-content">
<h1>
Class <a href="http://localhost\opencart-master/docs/api/namespace-Opencart.html">Opencart</a>\<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.html">System</a>\<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html">Library</a>\<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Language.html">Language</a>
</h1>
<table class="classLikeSignatureTable">
</table>
<div class="classLikeDescription">
<div class="description"><p>Class Language</p>
</div>
</div>
<div class="classLikeSection">
<b>Located at</b> <a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#15" title="Go to source code">system\library\language.php</a><br>
</div>
<table class="table" id="methods">
<tr>
<th class="table-heading sortable" colspan="3" title="Switch between natural and alphabetical order">Methods</th>
</tr>
<tr class="expandable collapsed" data-order="__construct" id="___construct">
<td class="table-cell table-shrink">
<code class="nowrap">
public
</code>
</td>
<td class="table-cell">
<code><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#37-44" title="Go to source code">__construct</a>(<span>string <var>$code</var></span>)</code>
<div class="expandable-collapsedView">
<p>Constructor</p>
</div>
<div class="expandable-expandedView">
<div class="description"><p>Constructor</p>
</div>
</div>
</td>
<td class="table-anchor">
<a href="#___construct">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="addPath" id="_addPath">
<td class="table-cell table-shrink">
<code class="nowrap">
public
</code>
</td>
<td class="table-cell">
<code><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#46-60" title="Go to source code">addPath</a>(<span>string <var>$namespace</var></span>, <span>string <var>$directory</var> = <span class="php-str">''</span></span>): void</code>
<div class="expandable-collapsedView">
<p>addPath</p>
</div>
<div class="expandable-expandedView">
<div class="description"><p>addPath</p>
</div>
</div>
</td>
<td class="table-anchor">
<a href="#_addPath">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="get" id="_get">
<td class="table-cell table-shrink">
<code class="nowrap">
public
</code>
</td>
<td class="table-cell">
<code><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#62-71" title="Go to source code">get</a>(<span>string <var>$key</var></span>): string</code>
<div class="expandable-collapsedView">
<p>Get Get language text string</p>
</div>
<div class="expandable-expandedView">
<div class="description"><p>Get Get language text string</p>
</div>
</div>
</td>
<td class="table-anchor">
<a href="#_get">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="set" id="_set">
<td class="table-cell table-shrink">
<code class="nowrap">
public
</code>
</td>
<td class="table-cell">
<code><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#73-85" title="Go to source code">set</a>(<span>string <var>$key</var></span>, <span>string <var>$value</var></span>): void</code>
<div class="expandable-collapsedView">
<p>Set Set language text string</p>
</div>
<div class="expandable-expandedView">
<div class="description"><p>Set Set language text string</p>
</div>
</div>
</td>
<td class="table-anchor">
<a href="#_set">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="all" id="_all">
<td class="table-cell table-shrink">
<code class="nowrap">
public
</code>
</td>
<td class="table-cell">
<code><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#87-110" title="Go to source code">all</a>(<span>string <var>$prefix</var> = <span class="php-str">''</span></span>): array&lt;string, string&gt;</code>
<div class="expandable-collapsedView">
<p>All</p>
</div>
<div class="expandable-expandedView">
<div class="description"><p>All</p>
</div>
</div>
</td>
<td class="table-anchor">
<a href="#_all">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="clear" id="_clear">
<td class="table-cell table-shrink">
<code class="nowrap">
public
</code>
</td>
<td class="table-cell">
<code><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#112-119" title="Go to source code">clear</a>(): void</code>
<div class="expandable-collapsedView">
<p>Clear</p>
</div>
<div class="expandable-expandedView">
<div class="description"><p>Clear</p>
</div>
</div>
</td>
<td class="table-anchor">
<a href="#_clear">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="load" id="_load">
<td class="table-cell table-shrink">
<code class="nowrap">
public
</code>
</td>
<td class="table-cell">
<code><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#121-177" title="Go to source code">load</a>(<span>string <var>$filename</var></span>, <span>string <var>$prefix</var> = <span class="php-str">''</span></span>, <span>string <var>$code</var> = <span class="php-str">''</span></span>): array&lt;string, string&gt;</code>
<div class="expandable-collapsedView">
<p>Load</p>
</div>
<div class="expandable-expandedView">
<div class="description"><p>Load</p>
</div>
<h4>Parameters</h4>
<table>
<tr>
<td><var>$code</var>&nbsp;&nbsp;</td>
<td><p>Language code</p>
</td>
</tr>
</table>
</div>
</td>
<td class="table-anchor">
<a href="#_load">#</a>
</td>
</tr>
</table>
<table class="table" id="properties">
<tr>
<th class="table-heading sortable" colspan="4" title="Switch between natural and alphabetical order">Properties</th>
</tr>
<tr class="expandable collapsed" data-order="code" id="$code">
<td class="table-cell table-shrink">
<code class="nowrap">
protected
</code>
</td>
<td class="table-cell table-shrink">
<code class="nowrap">string</code>
</td>
<td class="table-cell">
<code><var><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#16-19" title="Go to source code">$code</a></var></code>
<div class="expandable-expandedView">
</div>
</td>
<td class="table-anchor">
<a href="#$code">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="directory" id="$directory">
<td class="table-cell table-shrink">
<code class="nowrap">
protected
</code>
</td>
<td class="table-cell table-shrink">
<code class="nowrap">string</code>
</td>
<td class="table-cell">
<code><var><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#20-23" title="Go to source code">$directory</a></var></code>
<div class="expandable-expandedView">
</div>
</td>
<td class="table-anchor">
<a href="#$directory">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="path" id="$path">
<td class="table-cell table-shrink">
<code class="nowrap">
protected
</code>
</td>
<td class="table-cell table-shrink">
<code class="nowrap">array&lt;string, string&gt;</code>
</td>
<td class="table-cell">
<code><var><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#24-27" title="Go to source code">$path</a></var> = []</code>
<div class="expandable-expandedView">
</div>
</td>
<td class="table-anchor">
<a href="#$path">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="data" id="$data">
<td class="table-cell table-shrink">
<code class="nowrap">
protected
</code>
</td>
<td class="table-cell table-shrink">
<code class="nowrap">array&lt;string, string&gt;</code>
</td>
<td class="table-cell">
<code><var><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#28-31" title="Go to source code">$data</a></var> = []</code>
<div class="expandable-expandedView">
</div>
</td>
<td class="table-anchor">
<a href="#$data">#</a>
</td>
</tr>
<tr class="expandable collapsed" data-order="cache" id="$cache">
<td class="table-cell table-shrink">
<code class="nowrap">
protected
</code>
</td>
<td class="table-cell table-shrink">
<code class="nowrap">array&lt;string, array&lt;string, array&lt;string, mixed&gt;&gt;&gt;</code>
</td>
<td class="table-cell">
<code><var><a href="http://localhost\opencart-master/docs/api/source-system.library.language.html#32-35" title="Go to source code">$cache</a></var> = []</code>
<div class="expandable-expandedView">
</div>
</td>
<td class="table-anchor">
<a href="#$cache">#</a>
</td>
</tr>
</table>
</div>
<div class="layout-footer">
OpenCart API API documentation generated by <a href="https://www.apigen.org">ApiGen dev-master</a>
</div>
</div>
<div class="layout-rest">
<div class="navbar"></div>
</div>
</body>
</html>