class
Application
Объект Application (приложение) является главным в иерархии объектов FastsiteCMS и
представляет само приложение FastsiteCMS. Cвойства и методы предназначены для
доступа к параметрам сайта.
Traits
Используется в классах, которым необходимо работать с БД.
Methods
static void
configSet(string $key,
miced $value)
Сохраняет пару ключ/значение в БД
static mixed
configGet(string $key)
Возвращает значение связанное с ключем из БД
static void
configUnset(string $key)
Удаляет пару ключ/значение из БД
get()
Short for getInstance()
initBo()
инициализация режима BackOffice
getBo()
Возвращает объект BackOffice
void
setLocale($locale = null, $remember = false)
Установливает новую локаль приложения и запоминает её в сессии.
mixed
getVar(string $name)
Получить переменную конфигурации
mixed
setVar($name, $value)
Сохранить переменную конфигурации
getUser()
Получить авторизованного пользователя
getConn()
Возвращает соединение в БД
debug($mode, $str)
No description
void
route(string $path, callable $hook)
Регистрирует обработчик определенных URL на фронтофисе. Если REQUEST_URI начинается с $path, то запускается данный обработчик
void
setFrontOffice(bool $fo = TRUE)
Указать приложению, работает FrontOffice или нет
array
getGroups()
Возвращает список встроенных в систему групп пользователей
void
addUserGroup(array $group)
Добавляет новую встроенную группу
array
getPlugins()
Получить список установленных плагинов
mixed
getUserVar($name, $server)
Получить пользовательскую переменную
string
getUid()
Получить уникальный идентификаор клиента FO
void
eventLog(int $event_code, string $text = FALSE)
Делает запись в журнал аудита
void
eventHandler($event, $params)
Глобальный обработчик событий. Записывает события в журнал аудита. Рассылает почтовые уведомления.
getWidget($name, $params = null, $uid = null)
Возвращает виджет
getTwig()
Создает и возвращает шаблонизатор Twig
void
showPageProperty(string $name)
Выводит в поток вывода значение свойства, заданного с помощью Cetera\Application::setPageProperty('name', 'value')
void
showMeta(string $name)
Выводит в поток вывода тег со значением свойства, заданного с помощью Cetera\Application::setPageProperty('name', 'value')
void
showTitle()
Выводит в поток вывода тег
Содержание задается с помощью Cetera\Application::setPageProperty('title', 'value')</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
void
</div>
<div class="col-md-8 type">
<a href="#method_showHeadStrings">showHeadStrings</a>()
<p>Выводит в поток вывода строки, добавленные методом Cetera\Application::addHeadString()</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
void
</div>
<div class="col-md-8 type">
<a href="#method_showCSS">showCSS</a>()
<p>Выводит в поток вывода стили, добавленные методом Cetera\Application::addCSS()</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
void
</div>
<div class="col-md-8 type">
<a href="#method_showScripts">showScripts</a>()
<p>Выводит в поток вывода скрипты, добавленные методом Cetera\Application::addScript()</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
mixed
</div>
<div class="col-md-8 type">
<a href="#method_getPageProperty">getPageProperty</a>(string $name)
<p>Возвращает текущее значение свойства страницы фронтофиса</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
<abbr title="Cetera\Cetera\Application">Application</abbr>
</div>
<div class="col-md-8 type">
<a href="#method_setPageProperty">setPageProperty</a>(string $name, string $value, boolean $array = false, boolean $unique = true)
<p>Устанавливает определенное свойство страницы фронтофиса</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
<abbr title="Cetera\Cetera\Application">Application</abbr>
</div>
<div class="col-md-8 type">
<a href="#method_addHeadString">addHeadString</a>(string $value, boolean $unique = true)
<p>Добавляет строку в блок <head> страницы фронтофиса</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
<abbr title="Cetera\Cetera\Application">Application</abbr>
</div>
<div class="col-md-8 type">
<a href="#method_addCSS">addCSS</a>(string $file)
<p>Добавляет подключает css файл к странице фронтофиса</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
<abbr title="Cetera\Cetera\Application">Application</abbr>
</div>
<div class="col-md-8 type">
<a href="#method_addScript">addScript</a>(string $file)
<p>Добавляет подключает js скрипт к странице фронтофиса</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
void
</div>
<div class="col-md-8 type">
<a href="#method_cronJob">cronJob</a>(string $logFile = false)
<p>Переключает приложение в режим cron-работы.</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
boolean
</div>
<div class="col-md-8 type">
<a href="#method_contentExists">contentExists</a>()
<p>Определеет, опубликован ли пользовательский контент</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
</div>
<div class="col-md-8 type">
<a href="#method_error_handler">error_handler</a>($errno, $errstr, $errfile, $errline)
<p class="no-description">No description</p>
</div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
</div>
<div class="col-md-8 type">
<a href="#method_exception_handler">exception_handler</a>($exception)
<p class="no-description">No description</p>
</div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
</div>
<div class="col-md-8 type">
<a href="#method_getLocaleList">getLocaleList</a>()
<p class="no-description">No description</p>
</div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
</div>
<div class="col-md-8 type">
<a href="#method_getRequest">getRequest</a>()
<p class="no-description">No description</p>
</div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
</div>
<div class="col-md-8 type">
<a href="#method_getResponse">getResponse</a>()
<p class="no-description">No description</p>
</div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
</div>
<div class="col-md-8 type">
<a href="#method_setRouter">setRouter</a>($router)
<p class="no-description">No description</p>
</div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
</div>
<div class="col-md-8 type">
<a href="#method_getRouter">getRouter</a>()
<p class="no-description">No description</p>
</div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
</div>
<div class="col-md-8 type">
<a href="#method_getEntityManager">getEntityManager</a>()
<p class="no-description">No description</p>
</div>
<div class="col-md-2"></div>
</div>
</div>
<h2>Details</h2>
<div id="method-details">
<div class="method-item">
<h3 id="method_getDbConnection">
<div class="location">in <a href="../Cetera/DbConnection.html#method_getDbConnection"><abbr title="Cetera\DbConnection">DbConnection</abbr></a> at line 22</div>
<code>final static <abbr title="Doctrine\DBAL\Connection">Connection</abbr>
<strong>getDbConnection</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает активное соединение с БД в рамках приложения</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><abbr title="Doctrine\DBAL\Connection">Connection</abbr></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_configSet">
<div class="location">in <a href="../Cetera/DbConnection.html#method_configSet"><abbr title="Cetera\DbConnection">DbConnection</abbr></a> at line 35</div>
<code> static void
<strong>configSet</strong>(string $key, <abbr title="Cetera\miced">miced</abbr> $value)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Сохраняет пару ключ/значение в БД</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$key</td>
<td>ключ</td>
</tr>
<tr>
<td><abbr title="Cetera\miced">miced</abbr></td>
<td>$value</td>
<td>значение</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_configGet">
<div class="location">in <a href="../Cetera/DbConnection.html#method_configGet"><abbr title="Cetera\DbConnection">DbConnection</abbr></a> at line 47</div>
<code> static mixed
<strong>configGet</strong>(string $key)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает значение связанное с ключем из БД</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$key</td>
<td>ключ</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>mixed</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_configGetAll">
<div class="location">in <a href="../Cetera/DbConnection.html#method_configGetAll"><abbr title="Cetera\DbConnection">DbConnection</abbr></a> at line 60</div>
<code> static mixed
<strong>configGetAll</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает все ключи/значения из БД</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>mixed</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_configUnset">
<div class="location">in <a href="../Cetera/DbConnection.html#method_configUnset"><abbr title="Cetera\DbConnection">DbConnection</abbr></a> at line 78</div>
<code> static void
<strong>configUnset</strong>(string $key)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Удаляет пару ключ/значение из БД</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$key</td>
<td>ключ</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getInstance">
<div class="location">at line 242</div>
<code> static <a href="../Cetera/Application.html"><abbr title="Cetera\Application">Application</abbr></a>
<strong>getInstance</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Singleton instance</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><a href="../Cetera/Application.html"><abbr title="Cetera\Application">Application</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_get">
<div class="location">at line 255</div>
<code> static <a href="../Cetera/Application.html"><abbr title="Cetera\Application">Application</abbr></a>
<strong>get</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Short for getInstance()</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><a href="../Cetera/Application.html"><abbr title="Cetera\Application">Application</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_initBo">
<div class="location">at line 297</div>
<code>
<strong>initBo</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>инициализация режима BackOffice</p> </div>
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getBackOffice">
<div class="location">at line 305</div>
<code>
<strong>getBackOffice</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
<h4>See also</h4>
<table class="table table-condensed">
<tr>
<td>Application::getBo()</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getBo">
<div class="location">at line 315</div>
<code> <a href="../Cetera/BackOffice.html"><abbr title="Cetera\BackOffice">BackOffice</abbr></a>
<strong>getBo</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает объект BackOffice</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><a href="../Cetera/BackOffice.html"><abbr title="Cetera\BackOffice">BackOffice</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getFrontOffice">
<div class="location">at line 320</div>
<code>
<strong>getFrontOffice</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getFo">
<div class="location">at line 325</div>
<code>
<strong>getFo</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setCatalog">
<div class="location">at line 336</div>
<code> void
<strong>setCatalog</strong>(int|<a href="../Cetera/Catalog.html"><abbr title="Cetera\Catalog">Catalog</abbr></a> $catalog)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Установливает текущий раздел.</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>int|<a href="../Cetera/Catalog.html"><abbr title="Cetera\Catalog">Catalog</abbr></a></td>
<td>$catalog</td>
<td>раздел</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setLocale">
<div class="location">at line 354</div>
<code> void
<strong>setLocale</strong>($locale = null, $remember = false)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Установливает новую локаль приложения и запоминает её в сессии.</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$locale</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$remember</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getLocale">
<div class="location">at line 367</div>
<code> <a target="_blank" href="http://php.net/Locale">Locale</a>
<strong>getLocale</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Локаль приложения</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><a target="_blank" href="http://php.net/Locale">Locale</a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getSession">
<div class="location">at line 377</div>
<code> <abbr title="Cetera\Zend\Session\SessionManager">SessionManager</abbr>
<strong>getSession</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Сессия приложения</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><abbr title="Cetera\Zend\Session\SessionManager">SessionManager</abbr></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getTranslator">
<div class="location">at line 388</div>
<code> <a href="../Cetera/TranslatorWrapper.html"><abbr title="Cetera\TranslatorWrapper">TranslatorWrapper</abbr></a>
<strong>getTranslator</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Получить переводчик</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><a href="../Cetera/TranslatorWrapper.html"><abbr title="Cetera\TranslatorWrapper">TranslatorWrapper</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_decodeLocaleString">
<div class="location">at line 407</div>
<code>
<strong>decodeLocaleString</strong>($string)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$string</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getVar">
<div class="location">at line 448</div>
<code> mixed
<strong>getVar</strong>(string $name)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Получить переменную конфигурации</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$name</td>
<td>имя переменной</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>mixed</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setVar">
<div class="location">at line 465</div>
<code> mixed
<strong>setVar</strong>($name, $value)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Сохранить переменную конфигурации</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$name</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$value</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>mixed</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getUser">
<div class="location">at line 494</div>
<code> <a href="../Cetera/User.html"><abbr title="Cetera\User">User</abbr></a>
<strong>getUser</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Получить авторизованного пользователя</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><a href="../Cetera/User.html"><abbr title="Cetera\User">User</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setUser">
<div class="location">at line 516</div>
<code>
<strong>setUser</strong>($user)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$user</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_connectDb">
<div class="location">at line 526</div>
<code> void
<strong>connectDb</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Установить соединение с БД</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setDbConnection">
<div class="location">at line 575</div>
<code>
<strong>setDbConnection</strong>($conn)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$conn</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getConn">
<div class="location">at line 587</div>
<code> <abbr title="Cetera\Doctrine\DBAL\Connection">Connection</abbr>
<strong>getConn</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает соединение в БД</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><abbr title="Cetera\Doctrine\DBAL\Connection">Connection</abbr></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isConnected">
<div class="location">at line 598</div>
<code> void
<strong>isConnected</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Установлено ли соединение с БД</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isDebugMode">
<div class="location">at line 616</div>
<code>
<strong>isDebugMode</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_initSession">
<div class="location">at line 626</div>
<code> void
<strong>initSession</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Инициализация сессии</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_shutdown">
<div class="location">at line 659</div>
<code> static void
<strong>shutdown</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Завершение работы приложения</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_debug">
<div class="location">at line 687</div>
<code>
<strong>debug</strong>($mode, $str)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$mode</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$str</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getServer">
<div class="location">at line 698</div>
<code> <a href="../Cetera/Server.html"><abbr title="Cetera\Server">Server</abbr></a>
<strong>getServer</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает текущий сервер</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><a href="../Cetera/Server.html"><abbr title="Cetera\Server">Server</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setServer">
<div class="location">at line 714</div>
<code> void
<strong>setServer</strong>(int|<a href="../Cetera/Server.html"><abbr title="Cetera\Server">Server</abbr></a> $server)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Установливает текущий сервер.</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>int|<a href="../Cetera/Server.html"><abbr title="Cetera\Server">Server</abbr></a></td>
<td>$server</td>
<td>сервер</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getCatalog">
<div class="location">at line 731</div>
<code> <a href="../Cetera/Catalog.html"><abbr title="Cetera\Catalog">Catalog</abbr></a>
<strong>getCatalog</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает текущий раздел</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><a href="../Cetera/Catalog.html"><abbr title="Cetera\Catalog">Catalog</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getSection">
<div class="location">at line 741</div>
<code> <a href="../Cetera/Catalog.html"><abbr title="Cetera\Catalog">Catalog</abbr></a>
<strong>getSection</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает текущий раздел</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><a href="../Cetera/Catalog.html"><abbr title="Cetera\Catalog">Catalog</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getUnparsedUrl">
<div class="location">at line 752</div>
<code> string
<strong>getUnparsedUrl</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает нераспарсенную часть REQUEST_URI</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getUrlPath">
<div class="location">at line 763</div>
<code> array
<strong>getUrlPath</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает путь до текущего раздела</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>array</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_previewMode">
<div class="location">at line 774</div>
<code> bool
<strong>previewMode</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Мы в previewMode?</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>bool</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setPreviewMode">
<div class="location">at line 779</div>
<code>
<strong>setPreviewMode</strong>($mode)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$mode</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_route">
<div class="location">at line 791</div>
<code> void
<strong>route</strong>(string $path, callable $hook)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Регистрирует обработчик определенных URL на фронтофисе. Если REQUEST_URI начинается с $path, то запускается данный обработчик</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$path</td>
<td></td>
</tr>
<tr>
<td>callable</td>
<td>$hook</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setRequestUri">
<div class="location">at line 797</div>
<code>
<strong>setRequestUri</strong>($uri)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$uri</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isFrontOffice">
<div class="location">at line 870</div>
<code> bool
<strong>isFrontOffice</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Работает Front office?</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>bool</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setFrontOffice">
<div class="location">at line 881</div>
<code> void
<strong>setFrontOffice</strong>(bool $fo = TRUE)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Указать приложению, работает FrontOffice или нет</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>bool</td>
<td>$fo</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_registerOutputHandler">
<div class="location">at line 887</div>
<code>
<strong>registerOutputHandler</strong>($function)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$function</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_applyOutputHandler">
<div class="location">at line 892</div>
<code>
<strong>applyOutputHandler</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getTemplateDir">
<div class="location">at line 928</div>
<code> string
<strong>getTemplateDir</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает путь к шаблонам</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getTemplatePath">
<div class="location">at line 933</div>
<code>
<strong>getTemplatePath</strong>($name)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$name</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_includeTemplate">
<div class="location">at line 948</div>
<code>
<strong>includeTemplate</strong>($name)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$name</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getGroups">
<div class="location">at line 958</div>
<code> array
<strong>getGroups</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает список встроенных в систему групп пользователей</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>array</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_addUserGroup">
<div class="location">at line 992</div>
<code> void
<strong>addUserGroup</strong>(array $group)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Добавляет новую встроенную группу</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>array</td>
<td>$group</td>
<td>данные группы</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_initPlugins">
<div class="location">at line 1002</div>
<code>
<strong>initPlugins</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getPlugins">
<div class="location">at line 1064</div>
<code> array
<strong>getPlugins</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Получить список установленных плагинов</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>array</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getVersion">
<div class="location">at line 1070</div>
<code>
<strong>getVersion</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getUserVar">
<div class="location">at line 1081</div>
<code> mixed
<strong>getUserVar</strong>($name, $server)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Получить пользовательскую переменную</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$name</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$server</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>mixed</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getUid">
<div class="location">at line 1108</div>
<code> string
<strong>getUid</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Получить уникальный идентификаор клиента FO</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getLastVisit">
<div class="location">at line 1118</div>
<code> string
<strong>getLastVisit</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Получить timestamp последнего посещения FO</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getAuth">
<div class="location">at line 1126</div>
<code>
<strong>getAuth</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_eventLog">
<div class="location">at line 1139</div>
<code> void
<strong>eventLog</strong>(int $event_code, string $text = FALSE)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Делает запись в журнал аудита</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>int</td>
<td>$event_code</td>
<td>код события</td>
</tr>
<tr>
<td>string</td>
<td>$text</td>
<td>дополнительное описание</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getLoggableEvents">
<div class="location">at line 1159</div>
<code> array
<strong>getLoggableEvents</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает список событий, сохраняемых в журнал аудита</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>array</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_addLoggableEvent">
<div class="location">at line 1188</div>
<code> void
<strong>addLoggableEvent</strong>(int $event_code)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Разрешает сохранение события в журнал аудита</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>int</td>
<td>$event_code</td>
<td>код события</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_removeLoggableEvent">
<div class="location">at line 1208</div>
<code> void
<strong>removeLoggableEvent</strong>(int $event_code)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Запрещает сохранение события в журнал аудита</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>int</td>
<td>$event_code</td>
<td>код события</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_eventHandler">
<div class="location">at line 1227</div>
<code> void
<strong>eventHandler</strong>($event, $params)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Глобальный обработчик событий. Записывает события в журнал аудита. Рассылает почтовые уведомления.</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$event</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$params</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getWidget">
<div class="location">at line 1286</div>
<code> <abbr title="Cetera\Widget">Widget</abbr>
<strong>getWidget</strong>($name, $params = null, $uid = null)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает виджет</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$name</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$params</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$uid</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><abbr title="Cetera\Widget">Widget</abbr></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_registerWidget">
<div class="location">at line 1353</div>
<code> void
<strong>registerWidget</strong>($config)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Добавляет виджет в коллекцию</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$config</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getRegisteredWidgets">
<div class="location">at line 1379</div>
<code> array
<strong>getRegisteredWidgets</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает список зарегистрированных виджетов</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>array</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_parseParams">
<div class="location">at line 1539</div>
<code>
<strong>parseParams</strong>($result)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$result</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_parseWidgets">
<div class="location">at line 1583</div>
<code>
<strong>parseWidgets</strong>($result)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$result</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_registerCronJob">
<div class="location">at line 1610</div>
<code>
<strong>registerCronJob</strong>($file)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$file</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getCronJobs">
<div class="location">at line 1615</div>
<code>
<strong>getCronJobs</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getCallerPath">
<div class="location">at line 1620</div>
<code>
<strong>getCallerPath</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_addModule">
<div class="location">at line 1633</div>
<code>
<strong>addModule</strong>()
<small><sup><span class="label label-danger">deprecated</span></sup></small></code>
</h3>
<div class="details">
<p>
<small><sup><span class="label label-danger">deprecated</span></sup></small>
<tr>
<td>используй</td>
<td>BackOffice::addModule()</td>
</tr>
</p>
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_ping">
<div class="location">at line 1640</div>
<code>
<strong>ping</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getTwig">
<div class="location">at line 1678</div>
<code> <abbr title="Cetera\Twig_Environment">Twig_Environment</abbr>
<strong>getTwig</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Создает и возвращает шаблонизатор Twig</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><abbr title="Cetera\Twig_Environment">Twig_Environment</abbr></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_showAdminPanel">
<div class="location">at line 1739</div>
<code> void
<strong>showAdminPanel</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Выводит на странице фронтофиса админ-панель</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_showPageProperty">
<div class="location">at line 1769</div>
<code> void
<strong>showPageProperty</strong>(string $name)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Выводит в поток вывода значение свойства, заданного с помощью Cetera\Application::setPageProperty('name', 'value')</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$name</td>
<td>Имя свойства</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_showMeta">
<div class="location">at line 1780</div>
<code> void
<strong>showMeta</strong>(string $name)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Выводит в поток вывода тег <meta> со значением свойства, заданного с помощью Cetera\Application::setPageProperty('name', 'value')</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$name</td>
<td>Имя свойства</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_showTitle">
<div class="location">at line 1793</div>
<code> void
<strong>showTitle</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Выводит в поток вывода тег <title>
Содержание задается с помощью Cetera\Application::setPageProperty('title', 'value')</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_showHeadStrings">
<div class="location">at line 1805</div>
<code> void
<strong>showHeadStrings</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Выводит в поток вывода строки, добавленные методом Cetera\Application::addHeadString()</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_showCSS">
<div class="location">at line 1815</div>
<code> void
<strong>showCSS</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Выводит в поток вывода стили, добавленные методом Cetera\Application::addCSS()</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_showScripts">
<div class="location">at line 1825</div>
<code> void
<strong>showScripts</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Выводит в поток вывода скрипты, добавленные методом Cetera\Application::addScript()</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getPageProperty">
<div class="location">at line 1836</div>
<code> mixed
<strong>getPageProperty</strong>(string $name)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Возвращает текущее значение свойства страницы фронтофиса</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$name</td>
<td>Имя свойства</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>mixed</td>
<td>Значение свойства</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setPageProperty">
<div class="location">at line 1850</div>
<code> <abbr title="Cetera\Cetera\Application">Application</abbr>
<strong>setPageProperty</strong>(string $name, string $value, boolean $array = false, boolean $unique = true)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Устанавливает определенное свойство страницы фронтофиса</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$name</td>
<td>Имя свойства</td>
</tr>
<tr>
<td>string</td>
<td>$value</td>
<td>Значение свойства</td>
</tr>
<tr>
<td>boolean</td>
<td>$array</td>
<td>Используется ли свойство как массив значений. Если true, то новое значение добавляется в массив</td>
</tr>
<tr>
<td>boolean</td>
<td>$unique</td>
<td>Проверять значение на уникальность. Если значение уже есть в массиве, то новое добавлено не будет</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><abbr title="Cetera\Cetera\Application">Application</abbr></td>
<td>Экземпляр приложения</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_addHeadString">
<div class="location">at line 1882</div>
<code> <abbr title="Cetera\Cetera\Application">Application</abbr>
<strong>addHeadString</strong>(string $value, boolean $unique = true)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Добавляет строку в блок <head> страницы фронтофиса</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$value</td>
<td>Строка для добавления</td>
</tr>
<tr>
<td>boolean</td>
<td>$unique</td>
<td>Проверять строку на уникальность.</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><abbr title="Cetera\Cetera\Application">Application</abbr></td>
<td>Экземпляр приложения</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_addCSS">
<div class="location">at line 1893</div>
<code> <abbr title="Cetera\Cetera\Application">Application</abbr>
<strong>addCSS</strong>(string $file)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Добавляет подключает css файл к странице фронтофиса</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$file</td>
<td>Ссылка на файл</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><abbr title="Cetera\Cetera\Application">Application</abbr></td>
<td>Экземпляр приложения</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_addScript">
<div class="location">at line 1904</div>
<code> <abbr title="Cetera\Cetera\Application">Application</abbr>
<strong>addScript</strong>(string $file)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Добавляет подключает js скрипт к странице фронтофиса</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$file</td>
<td>Ссылка на файл</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td><abbr title="Cetera\Cetera\Application">Application</abbr></td>
<td>Экземпляр приложения</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_cronJob">
<div class="location">at line 1917</div>
<code> void
<strong>cronJob</strong>(string $logFile = false)
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Переключает приложение в режим cron-работы.</p> <p>При этом весь выходной поток, включая сообщения об ошибках направляются в лог-файл
По окончании работы скрипта в лог записывается текущее время</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>string</td>
<td>$logFile</td>
<td>Имя лог-файла</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>void</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_contentExists">
<div class="location">at line 1934</div>
<code> boolean
<strong>contentExists</strong>()
</code>
</h3>
<div class="details">
<div class="method-description">
<p>Определеет, опубликован ли пользовательский контент</p> </div>
<div class="tags">
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>boolean</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_error_handler">
<div class="location">at line 1947</div>
<code> static
<strong>error_handler</strong>($errno, $errstr, $errfile, $errline)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$errno</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$errstr</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$errfile</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$errline</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_exception_handler">
<div class="location">at line 1962</div>
<code> static
<strong>exception_handler</strong>($exception)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$exception</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getLocaleList">
<div class="location">at line 2021</div>
<code>
<strong>getLocaleList</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getRequest">
<div class="location">at line 2034</div>
<code>
<strong>getRequest</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getResponse">
<div class="location">at line 2041</div>
<code>
<strong>getResponse</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_setRouter">
<div class="location">at line 2048</div>
<code>
<strong>setRouter</strong>($router)
</code>
</h3>
<div class="details">
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td></td>
<td>$router</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getRouter">
<div class="location">at line 2052</div>
<code>
<strong>getRouter</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getEntityManager">
<div class="location">at line 2059</div>
<code>
<strong>getEntityManager</strong>()
</code>
</h3>
<div class="details">
<div class="tags">
</div>
</div>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/">Sami, the API Documentation Generator</a>.
</div>
</div>
</div>
</body>
</html>