Техническая документация Irbis — различия между версиями

Материал из MstarProject Manual
Перейти к: навигация, поиск
(Каталог init_database)
(GetCriterias($aData))
 
(не показано 79 промежуточных версии 2 участников)
Строка 177: Строка 177:
 
==== $aAdmin ====
 
==== $aAdmin ====
  
==== function hasAccessTo($sAction) ====
+
==== hasAccessTo($sAction) ====
==== function Admin() ====
+
==== Admin() ====
==== function AdminRedirect(<nowiki>$sAction='', $aMessage=array())</nowiki> ====
+
==== AdminRedirect(<nowiki>$sAction='', $aMessage=array())</nowiki> ====
==== function PreIndex() ====
+
==== PreIndex() ====
==== function AfterIndex() ====
+
==== AfterIndex() ====
==== function SetDefaultTable($oTable, $aWhereData = array()) ====
+
==== SetDefaultTable($oTable, $aWhereData = array()) ====
==== function ProcessTemplateForm($sPath) ====
+
==== ProcessTemplateForm($sPath) ====
==== function Add($bEdit = false) ====
+
==== Add($bEdit = false) ====
==== function Edit() ====
+
==== Edit() ====
==== function Apply() ====
+
==== Apply() ====
==== function Search() ====
+
==== Search() ====
==== function SearchForm() ====
+
==== SearchForm() ====
==== function BeforeApply() ====
+
==== BeforeApply() ====
==== function AfterApply($aBeforeRow,$aAfterRow) ====
+
==== AfterApply($aBeforeRow,$aAfterRow) ====
==== function BeforeAddAssign(&$aData) ====
+
==== BeforeAddAssign(&$aData) ====
==== function CheckField() ====
+
==== CheckField() ====
==== function Delete() ====
+
==== Delete() ====
==== function Trash() ====
+
==== Trash() ====
==== function Archive() ====
+
==== Archive() ====
==== function UnArchive() ====
+
==== UnArchive() ====
==== function ActionToClass($sBaseAction) ====
+
==== ActionToClass($sBaseAction) ====
==== function Message(<nowiki>$sType = '', $sMessage = '',$sOldObject=''</nowiki>) ====
+
==== Message(<nowiki>$sType = '', $sMessage = '',$sOldObject=''</nowiki>) ====
==== function GetFilter() ====
+
==== GetFilter() ====
==== function ProcessFCKEditors() ====
+
==== ProcessFCKEditors() ====
==== function initLocaleGlobal() ====
+
==== initLocaleGlobal() ====
==== function GetFCKEditor(<nowiki>$sFieldName='description',$sFieldValue='',$iWidth=700,$iHeight=600,$sFCKEditorEnterMode=''</nowiki>) ====
+
==== GetFCKEditor(<nowiki>$sFieldName='description',$sFieldValue='',$iWidth=700,$iHeight=600,$sFCKEditorEnterMode=''</nowiki>) ====
==== function GetCKEditor(<nowiki>$sFieldName='description',$sFieldValue='',$iWidth=700,$iHeight=600,$sFCKEditorEnterMode=''</nowiki>) ====
+
==== GetCKEditor(<nowiki>$sFieldName='description',$sFieldValue='',$iWidth=700,$iHeight=600,$sFCKEditorEnterMode=''</nowiki>) ====
==== function DisplayChange() ====
+
==== DisplayChange() ====
==== function OrderChange() ====
+
==== OrderChange() ====
==== function IsMpanelUser($sLogin,$sPassword) ====
+
==== IsMpanelUser($sLogin,$sPassword) ====
==== function SearchStrongChange() ====
+
==== SearchStrongChange() ====
  
 
=== Auth.php ===
 
=== Auth.php ===
Строка 217: Строка 217:
 
==== $sWhere ====
 
==== $sWhere ====
 
==== $bIgnoreCookie ====
 
==== $bIgnoreCookie ====
==== function Login($sLogin, $sPassword, $bIgnoreVisible=false, $bIgnoreEmailConfirmation=true, $bSalt=false, $bCheckPassword=true, $sOtherFieldAsLogin=<nowiki>''</nowiki>) ====
+
==== Login($sLogin, $sPassword, $bIgnoreVisible=false, $bIgnoreEmailConfirmation=true, $bSalt=false, $bCheckPassword=true, $sOtherFieldAsLogin=<nowiki>''</nowiki>) ====
  
==== function Logout() ====
+
==== Logout() ====
==== function NeedAuth($sType=<nowiki>''</nowiki>) ====
+
==== NeedAuth($sType=<nowiki>''</nowiki>) ====
  
 
Проверка типа авторизованного пользователя. Если тип совпадает с параметром $sType, то функция возвращает true, если нет - вызывает LoginErrorRedirect(), где формируется сообщение об ошибке.
 
Проверка типа авторизованного пользователя. Если тип совпадает с параметром $sType, то функция возвращает true, если нет - вызывает LoginErrorRedirect(), где формируется сообщение об ошибке.
  
==== function LoginErrorRedirect($bSaveReturn=true) ====
+
==== LoginErrorRedirect($bSaveReturn=true) ====
==== function IsAuth() ====
+
==== IsAuth() ====
  
 
Проверяет авторизован ли пользователь. Если да, возвращает true, если нет - false.
 
Проверяет авторизован ли пользователь. Если да, возвращает true, если нет - false.
  
==== function GetUserProfile($iId,$sType='customer') ====
+
==== GetUserProfile($iId,$sType='customer') ====
  
 
Получение информации о пользователе с указанным id в параметре $iId.
 
Получение информации о пользователе с указанным id в параметре $iId.
  
==== function IsUser($sLogin,$sPassword,$bIgnoreVisible=false,$bSalt=false,$sOtherFieldAsLogin=<nowiki>''</nowiki>) ====
+
==== IsUser($sLogin,$sPassword,$bIgnoreVisible=false,$bSalt=false,$sOtherFieldAsLogin=<nowiki>''</nowiki>) ====
  
 
Проверка существования пользователя с указанным логином и паролем.
 
Проверка существования пользователя с указанным логином и паролем.
Строка 244: Строка 244:
 
* $sOtherFieldAsLogin - ...
 
* $sOtherFieldAsLogin - ...
  
==== function IsValidCookie($sCookie) ====
+
==== IsValidCookie($sCookie) ====
  
 
Проверка валидности cookie.
 
Проверка валидности cookie.
  
==== function RefreshSession($aUser) ====
+
==== RefreshSession($aUser) ====
  
 
Обновить сессию пользователя, указанного в параметре $aUser.
 
Обновить сессию пользователя, указанного в параметре $aUser.
  
==== function RefreshCookie($sLogin,$sPassword,$iIdCustomer) ====
+
==== RefreshCookie($sLogin,$sPassword,$iIdCustomer) ====
  
 
Обновить cookie пользователя с указанными логином, паролем и id.
 
Обновить cookie пользователя с указанными логином, паролем и id.
  
==== function FilterLetters($input) ====
+
==== FilterLetters($input) ====
==== function GetIp() ====
+
==== GetIp() ====
==== function AutoCreateUser() ====
+
==== AutoCreateUser() ====
  
 
Автоматическое создание пользователя с рандомным логином и паролем. Необходимо для не зарегистрированных пользователей в разделах сайта по продаже, где нужна регистрация. Возвращает массив стандартного аккаунта пользователя.
 
Автоматическое создание пользователя с рандомным логином и паролем. Необходимо для не зарегистрированных пользователей в разделах сайта по продаже, где нужна регистрация. Возвращает массив стандартного аккаунта пользователя.
  
==== function CheckLogin($sLogin) ====
+
==== CheckLogin($sLogin) ====
  
 
Проверка существования пользователя с логином $sLogin. Если логин занят, возвращает false, логин свободный - true.
 
Проверка существования пользователя с логином $sLogin. Если логин занят, возвращает false, логин свободный - true.
  
==== function GenerateLogin() ====
+
==== GenerateLogin() ====
  
 
Сгенерировать случайный логин.
 
Сгенерировать случайный логин.
  
==== function GeneratePassword() ====
+
==== GeneratePassword() ====
  
 
Сгенерировать случайный пароль.
 
Сгенерировать случайный пароль.
  
==== function UpdateLastVisit($aUser) ====
+
==== UpdateLastVisit($aUser) ====
  
 
Обновить в базе время последнего посещения на текущее для пользователя $aUser.
 
Обновить в базе время последнего посещения на текущее для пользователя $aUser.
  
==== function UpdateCustomerReal($iUser) ====
+
==== UpdateCustomerReal($iUser) ====
  
 
Подтверждение пользователя с id указанным в параметре $iUser.
 
Подтверждение пользователя с id указанным в параметре $iUser.
  
==== function CheckPermissions($iIdAction) ====
+
==== CheckPermissions($iIdAction) ====
  
 
Проверка прав доступа к action, id которого $iIdAction.
 
Проверка прав доступа к action, id которого $iIdAction.
Строка 301: Строка 301:
 
==== $aConst ====
 
==== $aConst ====
 
==== $aConstant ====
 
==== $aConstant ====
 +
 +
Массив переменных из таблицы констант.
 +
 
==== $aRequest ====
 
==== $aRequest ====
 
==== $sText ====
 
==== $sText ====
 
==== $aData ====
 
==== $aData ====
 +
 +
Массив глобальных переменных для всех объектов, которые наследуют класс Base.
 +
 
==== $sProjectName ====
 
==== $sProjectName ====
 
==== $aMenuSection ====
 
==== $aMenuSection ====
Строка 314: Строка 320:
 
==== $aTopPageTemplate ====
 
==== $aTopPageTemplate ====
 
==== $sZirHtml ====
 
==== $sZirHtml ====
==== function PreInit() ====
+
==== PreInit() ====
==== function Init() ====
+
==== Init() ====
==== function ProcessAjax() ====
+
 
==== function Process() ====
+
Инициализация базовых переменных.
==== function EscapeAll(&$aData) ====
+
 
==== function UnescapeAll(&$aData) ====
+
==== ProcessAjax() ====
==== function FixParseStrBug(&$aArray) ====
+
==== Process() ====
==== function Redirect($sUrl,$is_check_lower=1) ====
+
==== EscapeAll(&$aData) ====
==== function LocalLog($sText) ====
+
==== UnescapeAll(&$aData) ====
==== function GetSql($sScript, $aData = array()) ====
+
==== FixParseStrBug(&$aArray) ====
==== function UpdateConstant($sKey, $sValue) ====
+
==== Redirect($sUrl,$is_check_lower=1) ====
==== function GetConstant($sKey,$sDefaultValue='') ====
+
 
==== function Message($aMessage=array(),$bGetText=true) ====
+
Стандартная функция перенаправления.
==== function RemoveMessageFromUrl($sUrl) ====
+
 
==== function SendSiteInfo() ====
+
<nowiki>Параметры:</nowiki>
==== function MstarprojectBase() ====
+
* $sUrl - адрес перехода;
 +
* $is_check_lower - указывает нужно ли привести все буквы указанного URL в нижний регистр. По умолчанию заданно значение 1, что значит по умолчанию приводить в нижний регистр.
 +
 
 +
==== LocalLog($sText) ====
 +
==== GetSql($sScript, $aData = array()) ====
 +
==== UpdateConstant($sKey, $sValue) ====
 +
 
 +
Обновление или создание констант, которые используются во всем проекте.
 +
 
 +
==== GetConstant($sKey,<nowiki>$sDefaultValue=''</nowiki>) ====
 +
 
 +
==== Message($aMessage=array(),$bGetText=true) ====
 +
 
 +
Показывает уведомления (NOTICE), предупреждения (WARNING), ошибки (ERROR) для Index (MI), форм (MF) и таблиц (MT).
 +
 
 +
Параметры:
 +
* $aMessage - ассоциативный массив ключ (MI_NOTICE, MI_WARNING, MI_ERROR, MF_NOTICE ... , MT_WARNING, ...) - значение (текст сообщения);
 +
* $bGetText - указывает использовать ли функцию getText. По умолчанию true - использовать.
 +
 
 +
==== RemoveMessageFromUrl($sUrl) ====
 +
 
 +
Удалить массив сообщений aMessage из указанного в параметре URL.
 +
 
 +
==== SendSiteInfo() ====
 +
==== MstarprojectBase() ====
  
 
=== BaseTemp.php ===
 
=== BaseTemp.php ===
  
==== function EnumToArray($sTable, $sField) ====
+
Класс для размещения общих функций, когда для них нет конкретного класса.
 +
 
 +
==== EnumToArray($sTable, $sField) ====
 +
 
 +
Функция конвертирования из DB enum/set в массив.
 +
 
 +
Параметры:
 +
* String $sTable - из какой таблицы;
 +
* String $sField - какие поля должны быть конвертированы.
  
 
=== Cache.php ===
 
=== Cache.php ===
  
==== function Cache() ====
+
==== Cache() ====
==== function GetValue($sSection,$sKey) ====
+
==== GetValue($sSection,$sKey) ====
==== function SetValue($sSection,$sKey,$sValue,$iValidTill=false) ====
+
==== SetValue($sSection,$sKey,$sValue,$iValidTill=false) ====
  
 
=== Capcha.php ===
 
=== Capcha.php ===
  
 
==== $aMathematicOperator ====
 
==== $aMathematicOperator ====
==== function __construct() ====
+
 
==== function GetMathematic($sTemplate='addon/capcha/mathematic.tpl') ====
+
Массив математических операторов для создания уравнения. По умолчанию заданны операторы "+" и "-".
==== function CheckMathematic() ====
+
 
==== function GetRandomOperator() ====
+
==== __construct() ====
==== function GetRandomOperand() ====
+
==== GetMathematic($sTemplate='addon/capcha/mathematic.tpl') ====
==== function GetValidationHash($sMathematicFormula) ====
+
==== CheckMathematic() ====
==== function ClearOldHash() ====
+
 
==== function AddHash($sType='mathematic',$sHash) ====
+
Проверка введенного пользователем значения уравнения капчи.
==== function IsFreeFromCapcha() ====
+
==== GetRandomOperator() ====
==== function SaveLastCapcha() ====
+
 
==== function GetGraphics() ====
+
Возвращает случайный математический оператор из массива $aMathematicOperator.
==== function CheckGraph() ====
+
 
 +
==== GetRandomOperand() ====
 +
 
 +
Возвращает случайное число.
 +
 
 +
==== GetValidationHash($sMathematicFormula) ====
 +
==== ClearOldHash() ====
 +
==== AddHash($sType='mathematic',$sHash) ====
 +
==== IsFreeFromCapcha() ====
 +
==== SaveLastCapcha() ====
 +
 
 +
Сохранить последнюю капчу, для исключения повторов.
 +
 
 +
==== GetGraphics() ====
 +
==== CheckGraph() ====
  
 
=== Category.php ===
 
=== Category.php ===
  
 
==== $iMaxSubCategorie ====
 
==== $iMaxSubCategorie ====
==== function __construct() ====
+
 
==== function Index() ====
+
Максимально значение подкатегорий для родительского элемента.
==== function SetAddingColumn() ====
+
 
==== function initLocaleGlobal() ====
+
==== __construct() ====
==== function BeforeAdd() ====
+
==== Index() ====
==== function Move () ====
+
==== SetAddingColumn() ====
==== function Apply() ====
+
==== initLocaleGlobal() ====
==== function Delete() ====
+
==== BeforeAdd() ====
 +
==== Move () ====
 +
==== Apply() ====
 +
==== Delete() ====
  
 
=== Comment.php ===
 
=== Comment.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function GetCommentList($sSection,$sId,$bXajaxResponse=false,$bHideUnapproved=false) ====
+
==== GetCommentList($sSection,$sId,$bXajaxResponse=false,$bHideUnapproved=false) ====
==== function GetCommentListTree($sSection,$sId,$bXajaxResponse=false) ====
+
==== GetCommentListTree($sSection,$sId,$bXajaxResponse=false) ====
==== function GetCommentLink($sSection,$sId,$sLink,$bHideUnapproved=false) ====
+
==== GetCommentLink($sSection,$sId,$sLink,$bHideUnapproved=false) ====
==== function Post() ====
+
==== Post() ====
==== function PopupPost() ====
+
==== PopupPost() ====
==== function GetCommentHash($sSection,$aId) ====
+
==== GetCommentHash($sSection,$aId) ====
  
 
=== ContactForm.php ===
 
=== ContactForm.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function OutputForm($sName) ====
+
==== OutputForm($sName) ====
==== function ProcessForm($sName) ====
+
==== ProcessForm($sName) ====
  
 
=== DateFormat.php ===
 
=== DateFormat.php ===
  
==== function GetBaseDate($sFormat,$iTimestamp='',$iTimeZone='') ====
+
==== GetBaseDate(<nowiki>$sFormat,$iTimestamp='',$iTimeZone=''</nowiki>) ====
==== function GetDate($iTimestamp='',$iTimeZone='') ====
+
==== GetDate(<nowiki>$iTimestamp='',$iTimeZone=''</nowiki>) ====
==== function GetTime($iTimestamp='',$iTimeZone='') ====
+
==== GetTime(<nowiki>$iTimestamp='',$iTimeZone=''</nowiki>) ====
==== function GetDateTime($iTimestamp='',$iTimeZone='') ====
+
==== GetDateTime(<nowiki>$iTimestamp='',$iTimeZone=''</nowiki>) ====
==== function FormatSearch($sSearchDate, $sFormat='Y-m-d H:i:s') ====
+
==== FormatSearch($sSearchDate, $sFormat='Y-m-d H:i:s') ====
==== function FormatSearchNow() ====
+
==== FormatSearchNow() ====
==== function FormatSearchTomorrow() ====
+
==== FormatSearchTomorrow() ====
==== function GetFileDateTime($iTimestamp='',$iTimeZone='',$bShowSecond=true) ====
+
==== GetFileDateTime(<nowiki>$iTimestamp='',$iTimeZone=''</nowiki>,$bShowSecond=true) ====
==== function GetPostDate($sPostDate,$iTimeZone='') ====
+
==== GetPostDate($sPostDate,<nowiki>$iTimeZone=''</nowiki>) ====
==== function GetPostDateTime($sPostDate,$iTimeZone='') ====
+
==== GetPostDateTime($sPostDate,<nowiki>$iTimeZone=''</nowiki>) ====
==== function GetSqlDate($sNameField="post_date") ====
+
==== GetSqlDate($sNameField="post_date") ====
==== function GetSqlStrToDate($sPostDate) ====
+
==== GetSqlStrToDate($sPostDate) ====
==== function GetNextMonth($sPostDate) ====
+
==== GetNextMonth($sPostDate) ====
==== function Seconds2Times($seconds) ====
+
==== Seconds2Times($seconds) ====
==== function NameIntervalDate($aDiffDate) ====
+
 
 +
Преобразование секунд $seconds в секунды/минуты/часы/дни/года.
 +
 
 +
Возвращает массив $times:
 +
* $times[0] - секунды
 +
* $times[1] - минуты
 +
* $times[2] - часы
 +
* $times[3] - дни
 +
* $times[4] - года
 +
 
 +
==== NameIntervalDate($aDiffDate) ====
  
 
=== Db.php ===
 
=== Db.php ===
  
==== function Execute($sSql,$aInput=false) ====
+
==== Execute($sSql,$aInput=false) ====
==== function GetAll($sSql) ====
+
 
==== function GetAssoc($sSql, $aData=array(), $bReturnSql=false) ====
+
Выполнить SQL запрос.
==== function GetRow($sSql) ====
+
 
==== function GetOne($sSql) ====
+
Параметры:
==== function AutoExecute($sTable, $aFieldValue, $sMode = 'INSERT', $sWhere = FALSE, $bForceUpdate=true, $bMagicQuote=false) ====
+
* $sSql - SQL запрос для выполнения, или возможно массив, в котором содержится запрос ($sql[0] будет содержать SQL запрос);
==== function Debug() ====
+
* $aInput - массив входных данных для связывания. Пустые элементы будут установлены в null.
==== function LogSql($bEnable=true) ====
+
 
==== function InsertId() ====
+
Возвращает RecordSet или false.
==== function AffectedRow() ====
+
==== function StartTrans() ====
+
==== GetAll($sSql) ====
==== function FailTrans() ====
+
 
==== function CompleteTrans() ====
+
Выполняет SQL запрос и возвращает результат в виде массива ([0]=>array(field=>value, ...),[1]=>array(....)).
==== function Escape($aData) ====
+
 
==== function GetInsertSql($oSql, $aField, $bMagicq=true, $sForce=null) ====
+
==== GetAssoc($sSql, $aData=array(), $bReturnSql=false) ====
==== function SelectLimit($sSql, $iRow=-1, $iStart=-1, $inputarr=false,$secs2cache=0) ====
+
 
==== function GetTableInfo($sType='') ====
+
Выполняет SQL запрос и получает результат в виде ассоциативного массива array(id1=>array(f1,f2 ...),id2=>array(f1,f2 ...)).
==== function SetWhere(&$sWhere,$aData,$sDataField,$sPrefix,$sTableField="") ====
+
 
==== function GetDateFormat($sNameField="post_date", $sFormat="") ====
+
==== GetRow($sSql) ====
==== function GetStrToDate($sPostDate, $bReturnDate=false, $sFormat="") ====
+
 
 +
Выполняет SQL запрос и получает строку таблицы в виде массива array (fild=>value, fild2=>value2 ...).
 +
 
 +
==== GetOne($sSql) ====
 +
 
 +
Выполняет SQL запрос и получает одно значение.
 +
 
 +
==== AutoExecute($sTable, $aFieldValue, $sMode = 'INSERT', $sWhere = FALSE, $bForceUpdate=true, $bMagicQuote=false) ====
 +
==== Debug() ====
 +
==== LogSql($bEnable=true) ====
 +
==== InsertId() ====
 +
==== AffectedRow() ====
 +
==== StartTrans() ====
 +
==== FailTrans() ====
 +
==== CompleteTrans() ====
 +
==== Escape($aData) ====
 +
==== GetInsertSql($oSql, $aField, $bMagicq=true, $sForce=null) ====
 +
==== SelectLimit($sSql, $iRow=-1, $iStart=-1, $inputarr=false,$secs2cache=0) ====
 +
==== GetTableInfo($sType='') ====
 +
==== SetWhere(&$sWhere,$aData,$sDataField,$sPrefix,$sTableField="") ====
 +
==== GetDateFormat($sNameField="post_date", $sFormat="") ====
 +
==== GetStrToDate($sPostDate, $bReturnDate=false, $sFormat="") ====
  
 
=== Dbtree.php ===
 
=== Dbtree.php ===
Строка 436: Строка 522:
 
==== $table_level ====
 
==== $table_level ====
 
==== $res ====
 
==== $res ====
==== function Dbtree($table="", $prefix="") ====
+
==== Dbtree($table="", $prefix="") ====
==== function Clear($data = array()) ====
+
==== Clear($data = array()) ====
==== function GetNodeInfo($section_id, $cache = FALSE) ====
+
==== GetNodeInfo($section_id, $cache = FALSE) ====
==== function GetParentInfo($section_id, $condition = '', $cache = FALSE) ====
+
==== GetParentInfo($section_id, <nowiki>$condition = ''</nowiki>, $cache = FALSE) ====
==== function Insert($section_id, $condition = '', $data = array()) ====
+
==== Insert($section_id, <nowiki>$condition = ''</nowiki>, $data = array()) ====
==== function InsertNear($ID, $condition = '', $data = array()) ====
+
 
==== function MoveAll($ID, $newParentId, $condition = '') ====
+
Добавить новый элемент в дерево для элемента с номером $section_id.
==== function ChangePosition($id1, $id2) ====
+
 
==== function ChangePositionAll($id1, $id2, $position = 'after', $condition = '') ====
+
Параметры:
==== function Delete($ID, $condition = '') ====
+
* $section_id - номер родительского элемента;
==== function DeleteAll($ID, $condition = '') ====
+
* $condition- array('and' => array('id = 0', 'id2 >= 3'), 'or' => array('sec = \'www\'', 'sec2 <> \'erere\'')), и т.д., где ключ - (AND, OR, т.д.), значение - строка условия;
==== function Full($fields, $condition = '', $cache = FALSE) ====
+
* $data - содержит параметры дополнительных полей дерева (если есть): array('filed name' => 'importance', etc)
==== function Branch($ID, $fields, $condition = '', $cache = FALSE) ====
+
 
==== function Parents($ID, $fields, $condition = '', $cache = FALSE) ====
+
==== InsertNear($ID, <nowiki>$condition = ''</nowiki>, $data = array()) ====
==== function Ajar($ID, $fields, $condition = '', $cache = FALSE, $sOpenLevel='1') ====
+
 
==== function AjarBranch($ID, $fields, $condition = '', $cache = FALSE, $sOpenLevel='1') ====
+
Добавить новый элемент в дереве возле элемента с идентификационным номером $ID.
==== function RecordCount() ====
+
 
==== function NextRow() ====
+
Параметры:
==== function _PrepareCondition($condition, $where = FALSE, $prefix = '') ====
+
* $ID - номер родительского элемента;
==== function GetAllData() ====
+
* $condition- array('and' => array('id = 0', 'id2 >= 3'), 'or' => array('sec = \'www\'', 'sec2 <> \'erere\'')), и т.д., где ключ - (AND, OR, т.д.), значение - строка условия;
==== function GetAssocData() ====
+
* $data - содержит параметры дополнительных полей дерева (если есть): array('filed name' => 'importance', etc)
==== function FullTree($with_space=false) ====
+
 
==== function FullFoSelect($with_space=false) ====
+
==== MoveAll($ID, $newParentId, <nowiki>$condition = ''</nowiki>) ====
==== function MoveItem($id,$to=-1) ====
+
==== ChangePosition($id1, $id2) ====
==== function AddSpaceItem($a,$iSpace=6 ) ====
+
 
==== function GetData($sType, $id=1, $fields = '', $condition = '', $cache = false, $iSpace=0, $bAssoc=false, $sOpenLevel='1') ====
+
Изменить позицию элемента.
 +
 
 +
Параметры:
 +
* $id1 - ID первого элемента;
 +
* $id2 - ID второго элемента.
 +
 
 +
Возвращает true если операция прошла успешно, иначе - false.
 +
 
 +
==== ChangePositionAll($id1, $id2, $position = 'after', <nowiki>$condition = ''</nowiki>) ====
 +
 
 +
Перестановка узлов в пределе того же уровня и ограничение одного из родителей со всеми своими детьми: $id1 стоит перед или после $id2.
 +
 
 +
Параметры:
 +
* integer $id1 - ID первого элемента;
 +
* integer $id2 - ID второго элемента;
 +
* string $position - 'before' или 'after' $id2;
 +
* $condition - array('and' => array('id = 0', 'id2 >= 3'), 'or' => array('sec = \'www\'', 'sec2 <> \'erere\'')), и т.д., где ключ - (AND, OR, т.д.), значение - строка условия;
 +
 
 +
Возвращает true если операция прошла успешно, иначе - false.
 +
 
 +
==== Delete($ID, <nowiki>$condition = ''</nowiki>) ====
 +
 
 +
Удалить элемент с номером $ID из дерева, не удаляя его потомков.
 +
 
 +
==== DeleteAll($ID, <nowiki>$condition = ''</nowiki>) ====
 +
 
 +
Удалить элемент с номером $ID из дерева и всех его потомков.
 +
 
 +
==== Full($fields, <nowiki>$condition = ''</nowiki>, $cache = FALSE) ====
 +
==== Branch($ID, $fields, <nowiki>$condition = ''</nowiki>, $cache = FALSE) ====
 +
 
 +
Возвращает все элементы ветви, начиная с элемента с номером $ID.
 +
 
 +
==== Parents($ID, $fields, <nowiki>$condition = ''</nowiki>, $cache = FALSE) ====
 +
 
 +
Возвращает все родительские элементы элемента с номером $ID.
 +
 
 +
==== Ajar($ID, $fields, <nowiki>$condition = ''</nowiki>, $cache = FALSE, $sOpenLevel='1') ====
 +
==== AjarBranch($ID, $fields, <nowiki>$condition = ''</nowiki>, $cache = FALSE, $sOpenLevel='1') ====
 +
==== RecordCount() ====
 +
==== NextRow() ====
 +
==== _PrepareCondition($condition, $where = FALSE, <nowiki>$prefix = ''</nowiki>) ====
 +
==== GetAllData() ====
 +
==== GetAssocData() ====
 +
==== FullTree($with_space=false) ====
 +
==== FullFoSelect($with_space=false) ====
 +
==== MoveItem($id,$to=-1) ====
 +
==== AddSpaceItem($a,$iSpace=6 ) ====
 +
==== GetData($sType, $id=1, <nowiki>$fields = '', $condition = ''</nowiki>, $cache = false, $iSpace=0, $bAssoc=false, $sOpenLevel='1') ====
  
 
=== Debug.php ===
 
=== Debug.php ===
  
==== function PrintPre($sVariable,$bDie=true,$bReturn=false) ====
+
==== PrintPre($sVariable,$bDie=true,$bReturn=false) ====
==== function PrintPreTpl($sVariable,$bDie=true) ====
+
==== PrintPreTpl($sVariable,$bDie=true) ====
==== function GetMicrotime() ====
+
==== GetMicrotime() ====
==== function WriteToLog($sFile,$data) ====
+
==== WriteToLog($sFile,$data) ====
  
 
=== DirectorySite.php ===
 
=== DirectorySite.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Prepare() ====
+
==== Prepare() ====
==== function CategoryChange() ====
+
==== CategoryChange() ====
==== function ListCategory() ====
+
==== ListCategory() ====
==== function Index() ====
+
==== Index() ====
==== function Preview() ====
+
==== Preview() ====
  
 
=== ExcelOld.php ===
 
=== ExcelOld.php ===
Строка 493: Строка 627:
 
===== $oWriter =====
 
===== $oWriter =====
 
===== $oDrawing =====
 
===== $oDrawing =====
===== function Excel() =====
+
===== Excel() =====
===== function SetActiveSheetIndex($i=0) =====
+
===== SetActiveSheetIndex($i=0) =====
===== function GetActiveSheet() =====
+
===== GetActiveSheet() =====
===== function SetShowSummaryBelow($sState=true) =====
+
===== SetShowSummaryBelow($sState=true) =====
===== function SetRowOutlineLevel($iRow,$iLevel=1,$bVisible=false) =====
+
===== SetRowOutlineLevel($iRow,$iLevel=1,$bVisible=false) =====
===== function SetCellValue($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="") =====
+
===== SetCellValue($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="") =====
===== function SetCellValueExplicit($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="", $pType=PHPExcel_Cell_DataType::TYPE_STRING) =====
+
===== SetCellValueExplicit($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="", $pType=PHPExcel_Cell_DataType::TYPE_STRING) =====
===== function SetHeaderValue($aHeader=array(), $iRow, $bUtfEncode=true) =====
+
===== SetHeaderValue($aHeader=array(), $iRow, $bUtfEncode=true) =====
===== function SetAutoSize($aHeader) =====
+
===== SetAutoSize($aHeader) =====
===== function DuplicateStyleArray($sRange="", $sColor="", $aStyle=array()) =====
+
===== DuplicateStyleArray($sRange="", $sColor="", $aStyle=array()) =====
===== function SetTitle($sTitle="") =====
+
===== SetTitle($sTitle="") =====
===== function WriterExcel5($sFileNameFull,$bOutput=false) =====
+
===== WriterExcel5($sFileNameFull,$bOutput=false) =====
===== function WriterExcel7($sFileNameFull) =====
+
===== WriterExcel7($sFileNameFull) =====
===== function SetDefaultFont($sName, $iSize=0) =====
+
===== SetDefaultFont($sName, $iSize=0) =====
===== function ReadExcel5($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true ) =====
+
===== ReadExcel5($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true ) =====
===== function ReadExcel7($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true ) =====
+
===== ReadExcel7($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true ) =====
===== function SetPrintBreak($sCordinate) =====
+
===== SetPrintBreak($sCordinate) =====
===== function SetRowToRepeat($iRowStart,$iRowEnd) =====
+
===== SetRowToRepeat($iRowStart,$iRowEnd) =====
===== function MergeCell($sRange) =====
+
===== MergeCell($sRange) =====
===== function WriterPdf($sFileNameFull,$bOutput=false) =====
+
===== WriterPdf($sFileNameFull,$bOutput=false) =====
===== function WriterCSV($sFileNameFull,$bOutput=false, $iSheet=0) =====
+
===== WriterCSV($sFileNameFull,$bOutput=false, $iSheet=0) =====
===== function WriterHtml($sFileNameFull) =====
+
===== WriterHtml($sFileNameFull) =====
===== function GetRowHeight($iRow) =====
+
===== GetRowHeight($iRow) =====
===== function SetRowHeight($iRow,$dSize) =====
+
===== SetRowHeight($iRow,$dSize) =====
===== function SetColWidth($sCol,$dSize) =====
+
===== SetColWidth($sCol,$dSize) =====
===== function GetReadData() =====
+
===== GetReadData() =====
===== function GetSpreadsheetData() =====
+
===== GetSpreadsheetData() =====
===== function GetMergeCell() =====
+
===== GetMergeCell() =====
===== function CreateSheet() =====
+
===== CreateSheet() =====
===== function RemoveSheet($iSheet) =====
+
===== RemoveSheet($iSheet) =====
===== function SetProtectionFile($sPassword="12345") =====
+
===== SetProtectionFile($sPassword="12345") =====
===== function SetDrawing($sCordinate,$sFullPath,$iHeight=0) =====
+
===== SetDrawing($sCordinate,$sFullPath,$iHeight=0) =====
===== function freezePane($sCell) =====
+
===== freezePane($sCell) =====
===== function RemoveRow($iRow) =====
+
===== RemoveRow($iRow) =====
===== function CopyRange($sRangeFrom,$sCellTo,$bInsertRow=true) =====
+
===== CopyRange($sRangeFrom,$sCellTo,$bInsertRow=true) =====
===== function SetWrapText($sRange) =====
+
===== SetWrapText($sRange) =====
===== function GetNextColumn($sColumn="") =====
+
===== GetNextColumn($sColumn="") =====
===== function SetCreateReader() =====
+
===== SetCreateReader() =====
===== function CreateObjectExcel2007() =====
+
===== CreateObjectExcel2007() =====
  
  
Строка 538: Строка 672:
 
===== $_startRow =====
 
===== $_startRow =====
 
===== $_endRow =====
 
===== $_endRow =====
===== function __construct() =====
+
===== __construct() =====
===== function readCell($column, $row, $worksheetName = '') =====
+
===== readCell($column, $row, <nowiki>$worksheetName = ''</nowiki>) =====
===== function setRows($startRow, $chunkSize) =====
+
 
 +
===== setRows($startRow, $chunkSize) =====
  
 
=== Excel.php ===
 
=== Excel.php ===
Строка 556: Строка 691:
 
===== $oWriter =====
 
===== $oWriter =====
 
===== $oDrawing =====
 
===== $oDrawing =====
===== function __destruct() =====
+
===== __destruct() =====
===== function Excel() =====
+
===== Excel() =====
===== function SetActiveSheetIndex($i=0) =====
+
===== SetActiveSheetIndex($i=0) =====
===== function GetActiveSheet() =====
+
===== GetActiveSheet() =====
===== function SetShowSummaryBelow($sState=true) =====
+
===== SetShowSummaryBelow($sState=true) =====
===== function SetRowOutlineLevel($iRow,$iLevel=1,$bVisible=false) =====
+
===== SetRowOutlineLevel($iRow,$iLevel=1,$bVisible=false) =====
===== function SetCellValue($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="") =====
+
===== SetCellValue($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="") =====
===== function SetCellValueExplicit($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="", $pType=PHPExcel_Cell_DataType::TYPE_STRING) =====
+
===== SetCellValueExplicit($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="", $pType=PHPExcel_Cell_DataType::TYPE_STRING) =====
===== function SetHeaderValue($aHeader=array(), $iRow, $bUtfEncode=true) =====
+
===== SetHeaderValue($aHeader=array(), $iRow, $bUtfEncode=true) =====
===== function SetAutoSize($aHeader) =====
+
===== SetAutoSize($aHeader) =====
===== function DuplicateStyleArray($sRange="", $sColor="", $aStyle=array()) =====
+
===== DuplicateStyleArray($sRange="", $sColor="", $aStyle=array()) =====
===== function SetTitle($sTitle="") =====
+
===== SetTitle($sTitle="") =====
===== function WriterExcel5($sFileNameFull,$bOutput=false) =====
+
===== WriterExcel5($sFileNameFull,$bOutput=false) =====
===== function WriterExcel7($sFileNameFull,$bOutput=false) =====
+
===== WriterExcel7($sFileNameFull,$bOutput=false) =====
===== function SetDefaultFont($sName, $iSize=0) =====
+
===== SetDefaultFont($sName, $iSize=0) =====
===== function ReadExcel5($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true ) =====
+
===== ReadExcel5($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true ) =====
===== function ReadExcel7($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true ) =====
+
===== ReadExcel7($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true ) =====
===== function SetPrintBreak($sCordinate) =====
+
===== SetPrintBreak($sCordinate) =====
===== function SetRowToRepeat($iRowStart,$iRowEnd) =====
+
===== SetRowToRepeat($iRowStart,$iRowEnd) =====
===== function MergeCell($sRange) =====
+
===== MergeCell($sRange) =====
===== function WriterPdf($sFileNameFull,$bOutput=false) =====
+
===== WriterPdf($sFileNameFull,$bOutput=false) =====
===== function WriterCSV($sFileNameFull,$bOutput=false, $iSheet=0) =====
+
===== WriterCSV($sFileNameFull,$bOutput=false, $iSheet=0) =====
===== function WriterHtml($sFileNameFull) =====
+
===== WriterHtml($sFileNameFull) =====
===== function GetRowHeight($iRow) =====
+
===== GetRowHeight($iRow) =====
===== function SetRowHeight($iRow,$dSize) =====
+
===== SetRowHeight($iRow,$dSize) =====
===== function SetColWidth($sCol,$dSize) =====
+
===== SetColWidth($sCol,$dSize) =====
===== function GetReadData() =====
+
===== GetReadData() =====
===== function GetSpreadsheetData() =====
+
===== GetSpreadsheetData() =====
===== function GetMergeCell() =====
+
===== GetMergeCell() =====
===== function CreateSheet() =====
+
===== CreateSheet() =====
===== function RemoveSheet($iSheet) =====
+
===== RemoveSheet($iSheet) =====
===== function SetProtectionFile($sPassword="12345") =====
+
===== SetProtectionFile($sPassword="12345") =====
===== function SetDrawing($sCordinate,$sFullPath,$iHeight=0) =====
+
===== SetDrawing($sCordinate,$sFullPath,$iHeight=0) =====
===== function freezePane($sCell) =====
+
===== freezePane($sCell) =====
===== function RemoveRow($iRow) =====
+
===== RemoveRow($iRow) =====
===== function CopyRange($sRangeFrom,$sCellTo,$bInsertRow=true) =====
+
===== CopyRange($sRangeFrom,$sCellTo,$bInsertRow=true) =====
===== function SetWrapText($sRange) =====
+
===== SetWrapText($sRange) =====
===== function GetNextColumn($sColumn="") =====
+
===== GetNextColumn($sColumn="") =====
===== function SetCreateReader() =====
+
===== SetCreateReader() =====
===== function CreateObjectExcel2007() =====
+
===== CreateObjectExcel2007() =====
  
  
Строка 601: Строка 736:
 
===== $_startRow =====
 
===== $_startRow =====
 
===== $_endRow =====
 
===== $_endRow =====
===== function __construct() =====
+
===== __construct() =====
===== function readCell($column, $row, $worksheetName = '') =====
+
===== readCell($column, $row, <nowiki>$worksheetName = ''</nowiki>) =====
===== function setRows($startRow, $chunkSize) =====
+
 
 +
===== setRows($startRow, $chunkSize) =====
  
 
=== FileCache.php ===
 
=== FileCache.php ===
  
==== function Cache() ====
+
==== Cache() ====
==== function GetValue($sSection,$sKey,$bAddIndexDB=false) ====
+
==== GetValue($sSection,$sKey,$bAddIndexDB=false) ====
==== function SetValue($sSection,$sKey,$sValue,$bAddIndexDb=false) ====
+
==== SetValue($sSection,$sKey,$sValue,$bAddIndexDb=false) ====
  
 
=== File.php ===
 
=== File.php ===
  
==== function GetFromDir($sPathToDir, $bComparative=true) ====
+
==== GetFromDir($sPathToDir, $bComparative=true) ====
==== function RemoveToDir($aFile, $sPathToDir, $bComparative=true, $bAddTime=true, $bDeleteBefore=true) ====
+
 
==== function Write($aFile,$sContent,$sMode="w") ====
+
Получить файлы из директории.
==== function Extract($sPathToFile, $sPathToExtract) ====
+
 
==== function ExtractForPrice($sPathToFile, $sPathToExtract) ====
+
Параметры:
==== function ExtractFirstFile($sPathToFile, $sPathToExtract) ====
+
* string $sPathToDir - путь к директории;
==== function CheckFileUpload($aFile) ====
+
* boolean $bComparative - путь к директории относительный (true) или полный (false).
 +
 
 +
==== RemoveToDir($aFile, $sPathToDir, $bComparative=true, $bAddTime=true, $bDeleteBefore=true) ====
 +
==== Write($aFile,$sContent,$sMode="w") ====
 +
 
 +
Записать в файл.
 +
 
 +
Параметры:
 +
* array $aFile - array('name'=>'FileName', 'path'=>'FilePath');
 +
* string $sContent - данные, которые нужно записать;
 +
* string $sMode - модификатор доступа к файлу.
 +
 
 +
==== Extract($sPathToFile, $sPathToExtract) ====
 +
 
 +
Извлечь из архива.
 +
 
 +
Параметры:
 +
* $sPathToFile - путь к архиву;
 +
* $sPathToExtract - путь для распаковки.
 +
 
 +
Возвращает array(0=>array(name=>...,path=>...),...)
 +
 
 +
==== ExtractForPrice($sPathToFile, $sPathToExtract) ====
 +
==== ExtractFirstFile($sPathToFile, $sPathToExtract) ====
 +
 
 +
Извлечь из архива первый файл.
 +
 
 +
Параметры:
 +
* $sPathToFile - путь к архиву;
 +
* $sPathToExtract - путь для распаковки.
 +
 
 +
Возвращает array(0=>array(name=>...,path=>...),...)
 +
 
 +
==== CheckFileUpload($aFile) ====
  
 
=== Form.php ===
 
=== Form.php ===
Строка 626: Строка 795:
 
==== $sAdditionalTitle ====
 
==== $sAdditionalTitle ====
 
==== $sTitle ====
 
==== $sTitle ====
 +
 +
Заголовок формы.
 +
 
==== $sContent ====
 
==== $sContent ====
 
==== $sClass ====
 
==== $sClass ====
Строка 657: Строка 829:
 
==== $sButtonDivClass ====
 
==== $sButtonDivClass ====
 
==== $aField ====
 
==== $aField ====
 +
 +
Массив полей для динамического создания формы.
 +
 
==== $bType ====
 
==== $bType ====
==== function __construct($aData=array()) ====
+
 
==== function GetForm($sContent='') ====
+
Тип создания формы:
==== function ShowError($sError) ====
+
* static - статически из шаблона;
==== function BeforeReturn($sAction,$sEditAction='') ====
+
* generate - генерирование из заданных полей $aField.
==== function AfterReturn($sAction,$sMessage='') ====
+
 
==== function RedirectAuto($sMessage="") ====
+
==== __construct($aData=array()) ====
==== function Error404($bRedirectMissing=false) ====
+
==== GetForm(<nowiki>$sContent=''</nowiki>) ====
 +
 
 +
Получить шаблон формы.
 +
 
 +
==== ShowError($sError) ====
 +
==== BeforeReturn($sAction,<nowiki>$sEditAction=''</nowiki>) ====
 +
 
 +
==== AfterReturn($sAction,<nowiki>$sMessage=''</nowiki>) ====
 +
 
 +
==== RedirectAuto($sMessage="") ====
 +
==== Error404($bRedirectMissing=false) ====
  
 
=== HtmlDom.php ===
 
=== HtmlDom.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function AddCreateOption($sSelectId, $sOptionText, $sOptionValue) ====
+
==== AddCreateOption($sSelectId, $sOptionText, $sOptionValue) ====
==== function AddCreateOptions($sSelectId, $aOptions) ====
+
 
 +
Добавить значение (option) в список элемента select на стороне клиента.
 +
 
 +
Параметры:
 +
* int $sSelectId - id элемента select;
 +
* String $sOptionText - текст элемента списка;
 +
* String $sOptionValue - значение элемента списка.
 +
 
 +
==== AddCreateOptions($sSelectId, $aOptions) ====
 +
 
 +
Добавить в select несколько значений определенных в массиве $aOptions.
 +
 
 +
Параметры:
 +
* int $sSelectId - id элемента select;
 +
* array $aOptions - массив элементов списка options[key][value].
  
 
=== ImageProcess.php ===
 
=== ImageProcess.php ===
  
 
==== $aDisallowedExtension ====
 
==== $aDisallowedExtension ====
 +
 +
Массив недопустимых расширений. По умолчанию ".php".
 +
 
==== $aAllowedExtension ====
 
==== $aAllowedExtension ====
==== function GetUploadedImage($sFieldName,$iMaxUploaded=3,$sTargetPath='/imgbank/Image/' ,$iIdCustom='',$iBigWidth=600,$iSmallWidth=80,$bLeaveOriginal=false) ====
+
 
==== function ImageResize($sSource, $sDestination, $iNewWidth, $sExtension) ====
+
Массив допустимых расширений. По умолчанию '.gif','.jpg','.jpeg','.png'.
==== function CreateSubnail($sSource,$sTargetPath='/imgbank/Image/',$iIdCustom='',$iBigWidth=600,$iMiddleWidth=300,$iSmallWidth=100) ====
+
 
==== function ParseExtension($sPath) ====
+
==== GetUploadedImage($sFieldName, $iMaxUploaded=3, $sTargetPath='/imgbank/Image/' ,$iIdCustom='', $iBigWidth=600, $iSmallWidth=80, $bLeaveOriginal=false) ====
 +
 
 +
Загрузка и изменение размера изображений.
 +
 
 +
Параметры:
 +
* $sFieldName
 +
* $iMaxUploaded
 +
* $sTargetPath
 +
* $iIdCustom - ID of object of images for name creation
 +
* $iBigWidth
 +
* $iSmallWidth
 +
 
 +
Возвращает массив загруженных и измененных по размеру изображений.
 +
 
 +
==== ImageResize($sSource, $sDestination, $iNewWidth, $sExtension) ====
 +
 
 +
 
 +
Изменение размера изображения.
 +
 
 +
==== CreateSubnail($sSource,$sTargetPath='/imgbank/Image/',$iIdCustom='',$iBigWidth=600,$iMiddleWidth=300,$iSmallWidth=100) ====
 +
==== ParseExtension($sPath) ====
  
 
=== Language.php ===
 
=== Language.php ===
Строка 692: Строка 914:
 
==== $sBaseLocale ====
 
==== $sBaseLocale ====
 
==== $aOldParser ====
 
==== $aOldParser ====
==== function __construct($sBaseLocale = '') ====
+
==== __construct(<nowiki>$sBaseLocale = ''</nowiki>) ====
==== function GetLocale() ====
+
 
==== function GetMessage($sKey, $sPage = "") ====
+
==== GetLocale() ====
==== function GetDMessage($sKey, $sPage = "") ====
+
==== GetMessage($sKey, $sPage = "") ====
==== function GetText($sKey, $sPage = "") ====
+
 
==== function GetContextHint($sKey, $bUnique = false) ====
+
Получить локализованное значение для надписи.
==== function GetOrderStatus($sKey) ====
+
 
==== function PrintPrice($dAmount,$bAbs=false,$bInvert=false,$sOutputType='',$sPriceType='') ====
+
==== GetDMessage($sKey, $sPage = "") ====
==== function PrintCurrencyPrice($dAmount,$sCurrency='USD') ====
+
==== GetText($sKey, $sPage = "") ====
==== function PrintPriceByType($dAmount,$sPriceType='USD') ====
+
 
==== function Price($dAmount, $sPriceType='',$bAbs=false,$bInvert=false) ====
+
Получить локализованное значение для HTML текстов.
==== function GetDate($iTimestamp = '', $iTimeZone = '',$bCurrentForce=false) ====
+
 
==== function GetDateTime($iTimestamp = '', $iTimeZone = '') ====
+
==== GetContextHint($sKey, $bUnique = false) ====
==== function GetPostDate($sPostDate,$iTimeZone='') ====
+
==== GetOrderStatus($sKey) ====
==== function GetPostDateTime($sPostDate,$iTimeZone='') ====
+
==== PrintPrice($dAmount,$bAbs=false,$bInvert=false,<nowiki>$sOutputType='',$sPriceType=''</nowiki>) ====
==== function FormatDate($sSearchDate, $sFormat='Y-m-d H:i:s') ====
+
 
==== function GetLocalizedRow($aData) ====
+
==== PrintCurrencyPrice($dAmount,$sCurrency='USD') ====
==== function GetLocalizedAll($aData, $bReturnSql=false, $sAssocField = '') ====
+
==== PrintPriceByType($dAmount,$sPriceType='USD') ====
==== function Array2Hash($data, $key_array = '') ====
+
==== Price($dAmount, <nowiki>$sPriceType=''</nowiki>,$bAbs=false,$bInvert=false) ====
==== function GetCommentLink($sSection, $sId, $sLink,$bHideUnapproved=false) ====
+
 
==== function GetConstant($sKey,$sDefaultValue='') ====
+
==== GetDate(<nowiki>$iTimestamp = '', $iTimeZone = ''</nowiki>,$bCurrentForce=false) ====
==== function GetMessageArray($aArrayKey, $sPage = "") ====
+
 
==== function IncludeLocaleMap($sMap) ====
+
==== GetDateTime(<nowiki>$iTimestamp = '', $iTimeZone = ''</nowiki>) ====
==== function AddOldParser($sObject,$iId) ====
+
 
==== function ReplaceOldParser($sOutput) ====
+
==== GetPostDate($sPostDate,<nowiki>$iTimeZone=''</nowiki>) ====
==== function GetCatalogMessage($sKey, $sPage = "") ====
+
 
==== function GetTranslit($sString, $sCharset='utf-8') ====
+
==== GetPostDateTime($sPostDate,<nowiki>$iTimeZone=''</nowiki>) ====
==== function PrintPriceCalc($aPrice) ====
+
 
==== function SetText($sKey, $sContent = "") ====
+
==== FormatDate($sSearchDate, $sFormat='Y-m-d H:i:s') ====
 +
==== GetLocalizedRow($aData) ====
 +
==== GetLocalizedAll($aData, $bReturnSql=false, <nowiki>$sAssocField = ''</nowiki>) ====
 +
 
 +
==== Array2Hash($data, <nowiki>$key_array = ''</nowiki>) ====
 +
 
 +
==== GetCommentLink($sSection, $sId, $sLink,$bHideUnapproved=false) ====
 +
==== GetConstant($sKey,<nowiki>$sDefaultValue=''</nowiki>) ====
 +
 
 +
==== GetMessageArray($aArrayKey, $sPage = "") ====
 +
==== IncludeLocaleMap($sMap) ====
 +
==== AddOldParser($sObject,$iId) ====
 +
==== ReplaceOldParser($sOutput) ====
 +
==== GetCatalogMessage($sKey, $sPage = "") ====
 +
==== GetTranslit($sString, $sCharset='utf-8') ====
 +
 
 +
Перевести текст в транслит.
 +
 
 +
==== PrintPriceCalc($aPrice) ====
 +
==== SetText($sKey, $sContent = "") ====
  
 
=== LocaleGlobal.php ===
 
=== LocaleGlobal.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function GetLocaleMap($sTableName) ====
+
==== GetLocaleMap($sTableName) ====
==== function Edit() ====
+
==== Edit() ====
==== function Apply() ====
+
==== Apply() ====
  
 
=== Log.php ===
 
=== Log.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function VisitAdd() ====
+
==== VisitAdd() ====
==== function AdminAdd($sAction,$sTableName='',$sBeforeApply='',$sAfterApply='') ====
+
 
==== function FinanceAdd($aData,$sSection,$iIdUser='',$sDescription,$sCreatedBy='') ====
+
Добавить визит пользователя в логи посещений.
==== function GlobalAdd($aData,$sSection,$iIdUser='') ====
+
 
==== function OrderAdd($aData,$sSection,$iIdUser='') ====
+
==== AdminAdd(<nowiki>$sAction,$sTableName='',$sBeforeApply='',$sAfterApply=''</nowiki>) ====
 +
 
 +
Записать логи запроса администратора в mpanel.
 +
 
 +
==== FinanceAdd($aData,$sSection,<nowiki>$iIdUser='',$sDescription,$sCreatedBy=''</nowiki>) ====
 +
==== GlobalAdd($aData,$sSection,<nowiki>$iIdUser=''</nowiki>) ====
 +
==== OrderAdd($aData,$sSection,<nowiki>$iIdUser=''</nowiki>) ====
  
 
=== Mail.php ===
 
=== Mail.php ===
  
 
==== $bAddedNoRply ====
 
==== $bAddedNoRply ====
==== function SendNow($sAddress,$sSubject,$sBody,$sFrom='',$sFromName='',$sCc='',$iLanguage=null, $bFromDelayed=false, $iPriority=5) ====
+
==== SendNow($sAddress,$sSubject,$sBody,<nowiki>$sFrom='',$sFromName='',$sCc=''</nowiki>,$iLanguage=null, $bFromDelayed=false, $iPriority=5) ====
==== function SendAttach($sAddress,$sSubject,$sBody,$aAttachment=array(),$sCc='',$sFrom='',$sFromName='',$sCharSet = 'cp1251') ====
+
==== SendAttach($sAddress,$sSubject,$sBody,$aAttachment=array(),<nowiki>$sCc='',$sFrom='',$sFromName=''</nowiki>,$sCharSet = 'cp1251') ====
==== function AddDelayed($sAddress,$sSubject,$sBody,$sFromEmail='',$sFromName='',$bCheckEmail=true, $iPriority=5 ,$sAttachCode='',$sDescription='',$sSendAfterDate='') ====
+
==== AddDelayed(<nowiki>$sAddress,$sSubject,$sBody,$sFromEmail='',$sFromName='',$bCheckEmail=true, $iPriority=5 ,$sAttachCode='',$sDescription='',$sSendAfterDate=''</nowiki>) ====
==== function SendDelayed($iLetter=1) ====
+
 
==== function OpenAccount($sHost,$iPort,$sUsername,$sPassword,$sType="pop3",$sFolder="",$bSsl=false) ====
+
==== SendDelayed($iLetter=1) ====
==== function GetEmailCount($oAccount) ====
+
==== OpenAccount($sHost,$iPort,$sUsername,$sPassword,$sType="pop3",$sFolder="",$bSsl=false) ====
==== function GetEmailHeader($oAccount,$iNumberEmail) ====
+
==== GetEmailCount($oAccount) ====
==== function GetAttachment($oAccount,$iNumberEmail) ====
+
==== GetEmailHeader($oAccount,$iNumberEmail) ====
==== function DecodeMimeString($sString) ====
+
==== GetAttachment($oAccount,$iNumberEmail) ====
==== function DeleteEmail($oAccount,$iNumberEmail) ====
+
==== DecodeMimeString($sString) ====
==== function CloseAcount($oAccount) ====
+
==== DeleteEmail($oAccount,$iNumberEmail) ====
==== function GetSenderEmail($oAccount,$iNumberEmail) ====
+
==== CloseAcount($oAccount) ====
 +
==== GetSenderEmail($oAccount,$iNumberEmail) ====
  
 
=== Message.php ===
 
=== Message.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function Prepare() ====
+
==== Prepare() ====
==== function MoveToFolder() ====
+
==== MoveToFolder() ====
==== function Reply() ====
+
==== Reply() ====
==== function Forward() ====
+
==== Forward() ====
==== function Send() ====
+
==== Send() ====
==== function Draft() ====
+
==== Draft() ====
==== function Compose() ====
+
==== Compose() ====
==== function Delete() ====
+
==== Delete() ====
==== function Clear() ====
+
==== Clear() ====
==== function Preview() ====
+
==== Preview() ====
==== function ChangeCurrentFolder() ====
+
==== ChangeCurrentFolder() ====
==== function MessageNumber($iIdUser,$iIdMessageFolder) ====
+
==== MessageNumber($iIdUser,$iIdMessageFolder) ====
==== function CreateMessage($sTo,$sSubject,$iIdMessageFolder,$iIsRead,$sText,$iIdUser='',$sUserFrom='') ====
+
==== CreateMessage($sTo,$sSubject,$iIdMessageFolder,$iIsRead,$sText,$iIdUser='',$sUserFrom='') ====
==== function SendMessage($sTo,$sSubject,$sText,$iIdMessage='',$bSendEmail=true) ====
+
==== SendMessage($sTo,$sSubject,$sText,<nowiki>$iIdMessage=''</nowiki>,$bSendEmail=true) ====
==== function DeleteMessage($iId) ====
+
 
==== function EraseMessage($iId) ====
+
==== DeleteMessage($iId) ====
==== function MoveMessage($iId,$iIdMessageFolder) ====
+
==== EraseMessage($iId) ====
==== function getUserList($aLogin) ====
+
==== MoveMessage($iId,$iIdMessageFolder) ====
==== function ReadMessage($iId) ====
+
==== getUserList($aLogin) ====
==== function CreateNotification($sTo,$sCode,$sType='customer',$aUserData=array(),$sToId='',$iPriority=3) ====
+
==== ReadMessage($iId) ====
==== function CreateDelayedNotification($iIdUser,$sCode,$aUserData=array(),$bSmartyTemplate=false,$iIdCart=0) ====
+
==== CreateNotification($sTo,$sCode,$sType='customer',$aUserData=array(),$sToId='',$iPriority=3) ====
==== function SendBulkUserNotification($sAdditionalWhere='') ====
+
==== CreateDelayedNotification($iIdUser,$sCode,$aUserData=array(),$bSmartyTemplate=false,$iIdCart=0) ====
==== function PreviewUserNotification() ====
+
==== SendBulkUserNotification(<nowiki>$sAdditionalWhere=''</nowiki>) ====
==== function AddNote($iIdUser,$sName,$sDescription,$sUrl='',$sReplyTo='') ====
+
 
==== function CheckNote() ====
+
==== PreviewUserNotification() ====
==== function NoteClose() ====
+
==== AddNote($iIdUser,$sName,$sDescription,$sUrl='',$sReplyTo='') ====
==== function CreateCustomerIdExcel($aUserNotification) ====
+
 
 +
==== CheckNote() ====
 +
==== NoteClose() ====
 +
==== CreateCustomerIdExcel($aUserNotification) ====
  
 
=== Payment.php ===
 
=== Payment.php ===
Строка 790: Строка 1041:
 
==== $aWebmoneyPurse ====
 
==== $aWebmoneyPurse ====
 
==== $aMoneyBookersCurrency ====
 
==== $aMoneyBookersCurrency ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function WebmoneyResult() ====
+
==== WebmoneyResult() ====
==== function WebmoneySuccess() ====
+
==== WebmoneySuccess() ====
==== function WebmoneyFail() ====
+
==== WebmoneyFail() ====
==== function Log($sMethod='webmoney', $sMessage='') ====
+
==== Log($sMethod='webmoney', <nowiki>$sMessage=''</nowiki>) ====
==== function WebMoneyPayment() ====
+
 
==== function MoneybookersResult() ====
+
==== WebMoneyPayment() ====
==== function MoneybookersSuccess() ====
+
==== MoneybookersResult() ====
==== function MoneybookersFail() ====
+
==== MoneybookersSuccess() ====
==== function MoneybookersPayment() ====
+
==== MoneybookersFail() ====
==== function PaypalResult() ====
+
==== MoneybookersPayment() ====
==== function PaypalSuccess() ====
+
==== PaypalResult() ====
==== function PaypalFail() ====
+
==== PaypalSuccess() ====
==== function PaypalPayment() ====
+
==== PaypalFail() ====
==== function decodeQouta( $str ) ====
+
==== PaypalPayment() ====
==== function decodeGPC( $str ) ====
+
==== decodeQouta( $str ) ====
==== function LiqpayResult() ====
+
==== decodeGPC( $str ) ====
==== function LiqpaySuccess() ====
+
==== LiqpayResult() ====
==== function LiqpayFail() ====
+
==== LiqpaySuccess() ====
==== function LiqpayPayment() ====
+
==== LiqpayFail() ====
==== function GetLiqpayOperationXml() ====
+
==== LiqpayPayment() ====
==== function ParseTag($rs, $tag) ====
+
==== GetLiqpayOperationXml() ====
==== function GetTransactionAccount($sAccountId,$sCurrencyCode='') ====
+
==== ParseTag($rs, $tag) ====
==== function WebtopayResult() ====
+
==== GetTransactionAccount($sAccountId,<nowiki>$sCurrencyCode=''</nowiki>) ====
==== function WebtopaySuccess() ====
+
 
==== function WebtopayFail() ====
+
==== WebtopayResult() ====
==== function WebtopayPayment() ====
+
==== WebtopaySuccess() ====
==== function QiwiResult() ====
+
==== WebtopayFail() ====
==== function QiwiPayment() ====
+
==== WebtopayPayment() ====
==== function MonexyResult() ====
+
==== QiwiResult() ====
==== function MonexySuccess() ====
+
==== QiwiPayment() ====
==== function MonexyFail() ====
+
==== MonexyResult() ====
==== function MonexyPayment() ====
+
==== MonexySuccess() ====
==== function UnitellerResult() ====
+
==== MonexyFail() ====
==== function UnitellerSuccess() ====
+
==== MonexyPayment() ====
==== function UnitellerFail() ====
+
==== UnitellerResult() ====
==== function UnitellerPayment() ====
+
==== UnitellerSuccess() ====
 +
==== UnitellerFail() ====
 +
==== UnitellerPayment() ====
  
 
=== Permission.php ===
 
=== Permission.php ===
Строка 833: Строка 1086:
  
 
==== $aAllowAction ====
 
==== $aAllowAction ====
==== function Init() ====
+
==== Init() ====
==== function AppendPermission() ====
+
==== AppendPermission() ====
==== function CheckPermission() ====
+
==== CheckPermission() ====
  
 
=== PrintContent.php ===
 
=== PrintContent.php ===
  
==== function Append($sContent) ====
+
==== Append($sContent) ====
==== function Index() ====
+
==== Index() ====
  
 
=== Repository.php ===
 
=== Repository.php ===
Строка 847: Строка 1100:
 
==== $oInstance ====
 
==== $oInstance ====
 
==== $sPrefix ====
 
==== $sPrefix ====
==== function Get() ====
+
==== Get() ====
==== function __construct() ====
+
==== __construct() ====
==== function InitDatabase($sModuleName,$bCoreSql=true) ====
+
==== InitDatabase($sModuleName,$bCoreSql=true) ====
==== function CheckTableExist($sTableName) ====
+
==== CheckTableExist($sTableName) ====
==== function CheckUpdate($sModuleName,$bCoreSql=true) ====
+
==== CheckUpdate($sModuleName,$bCoreSql=true) ====
  
 
=== Resource.php ===
 
=== Resource.php ===
Строка 860: Строка 1113:
 
==== $aHeaderResource ====
 
==== $aHeaderResource ====
 
==== $aResourceVersion ====
 
==== $aResourceVersion ====
==== function Get() ====
+
==== Get() ====
==== function __construct() ====
+
==== __construct() ====
==== function Add($sFilePath,$iFileVersion=0,$sLocation='header',$aData=array()) ====
+
==== Add($sFilePath,$iFileVersion=0,$sLocation='header',$aData=array()) ====
==== function FillTemplate() ====
+
 
 +
Добавляет файл в заголовок (header) или в нижний блок страницы (footer) html документа. Это могут быть js или css файлы.
 +
 
 +
Параметры:
 +
* $sFilePath - путь к файлу;
 +
* $iFileVersion - версия файла. Если указанная версия больше чем уже включенная, то будет включена эта, с версией выше;
 +
* $sLocation - определяет в какой части html документа произвести подключение. По умолчанию имеет значение header.
 +
 
 +
Пример использования:
 +
<pre>
 +
Resource::Get->Add('/css/main.css',6,'header')
 +
</pre>
 +
 
 +
==== FillTemplate() ====
 +
 
 +
Вставить все добавленные файлы в выходной шаблон для размещения их в конечном html. Вызывается из функции Base::Process().
 +
 
 
====  ====
 
====  ====
  
 
=== Sms.php ===
 
=== Sms.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function FormatNumber($sPhoneNumber) ====
+
==== FormatNumber($sPhoneNumber) ====
==== function SendGT($sPhoneNumber, $sMessage, $iTimeout = 10) ====
+
==== SendGT($sPhoneNumber, $sMessage, $iTimeout = 10) ====
==== function SendTurbo($sPhoneNumber, $sMessage, $sSender = 'Partmaster') ====
+
==== SendTurbo($sPhoneNumber, $sMessage, $sSender = 'Partmaster') ====
==== function SendTurboV2($sPhoneNumber, $sMessage, $sSender = 'Partmaster') ====
+
==== SendTurboV2($sPhoneNumber, $sMessage, $sSender = 'Partmaster') ====
==== function SendNow($sPhoneNumber, $sMessage) ====
+
==== SendNow($sPhoneNumber, $sMessage) ====
==== function AddDelayed($sPhoneNumber, $sMessage) ====
+
==== AddDelayed($sPhoneNumber, $sMessage) ====
==== function SendDelayed($iMessage = 1) ====
+
==== SendDelayed($iMessage = 1) ====
==== function SendClickatell($sPhoneNumber, $sMessage, $sSender ='') ====
+
==== SendClickatell($sPhoneNumber, $sMessage, <nowiki>$sSender =''</nowiki>) ====
  
 
=== String.php ===
 
=== String.php ===
  
==== function Serialize($aValue) ====
+
==== Serialize($aValue) ====
==== function Unserialize($sValue) ====
+
 
==== function FirstNwords($sString, $iWord) ====
+
Произвести сериализацию массива $aValue.
==== function CheckEmail($sEmail) ====
+
 
==== function FilterRequestData($aData,$aFieldArray=array()) ====
+
==== Unserialize($sValue) ====
==== function QuoteCommaString($sString) ====
+
 
==== function CheckDomain($sHaystack, $sNeedle) ====
+
Произвести десериализацию значения $sValue.
==== function UtfEncode($sString) ====
+
 
==== function GetSmartyTemplate($sKey,$aTemplateData=array(), $bOldStyleTemplate=true) ====
+
==== FirstNwords($sString, $iWord) ====
==== function GetTemplateRow($sKey) ====
+
==== CheckEmail($sEmail) ====
==== function GetPage($sKey, $bShowInvisible=false) ====
+
 
==== function ProcessDropDownAdditional() ====
+
Валидация email адреса. Возвращает 1 если email соответствует заданному шаблону, 0 - если не соответствует.
==== function ProcessStatic() ====
+
 
==== function GetDecimal($sDouble) ====
+
==== FilterRequestData($aData,$aFieldArray=array()) ====
==== function Md5Salt($sPassword,$sSalt) ====
+
 
==== function GenerateSalt() ====
+
Фильтрация всех пользовательских данных, которые записываются в базу данных и выводятся на страницы.
==== function GeneratePref($sPrefIn='') ====
+
 
==== function GetUcfirst($sString) ====
+
Параметры:
==== function GetUcword($sString) ====
+
* $aData - входящий запрос;
==== function FormatPhoneNumber($sString,$bNeedCat=TRUE) ====
+
* $aFieldArray - массив строк, которые должны быть добавлены в отфильтрованный результирующий массив
==== function CheckUaPhone($sString) ====
+
 
==== function ParseSize($size) ====
+
==== QuoteCommaString($sString) ====
==== function FormatSize($size) ====
+
==== CheckDomain($sHaystack, $sNeedle) ====
==== function FormatPlural($count, $singular, $plural) ====
+
==== UtfEncode($sString) ====
 +
 
 +
Изменить кодировку строки $sString на utf-8.
 +
 
 +
==== GetSmartyTemplate($sKey,$aTemplateData=array(), $bOldStyleTemplate=true) ====
 +
==== GetTemplateRow($sKey) ====
 +
==== GetPage($sKey, $bShowInvisible=false) ====
 +
==== ProcessDropDownAdditional() ====
 +
==== ProcessStatic() ====
 +
==== GetDecimal($sDouble) ====
 +
 
 +
Получить десятичное число из строки $sDouble.
 +
 
 +
==== Md5Salt($sPassword,$sSalt) ====
 +
 
 +
Шифрование пароля.
 +
 
 +
==== GenerateSalt() ====
 +
==== GeneratePref($sPrefIn='') ====
 +
==== GetUcfirst($sString) ====
 +
==== GetUcword($sString) ====
 +
==== FormatPhoneNumber($sString,$bNeedCat=TRUE) ====
 +
==== CheckUaPhone($sString) ====
 +
==== ParseSize($size) ====
 +
 
 +
Переводит размер в байты.
 +
 
 +
==== FormatSize($size) ====
 +
 
 +
Переводит значение количества байт в строковое представление (кб, Мб, Гб и т.д.).
 +
 
 +
==== FormatPlural($count, $singular, $plural) ====
  
 
=== Table.php ===
 
=== Table.php ===
Строка 998: Строка 1298:
 
==== $iColspanFilter ====
 
==== $iColspanFilter ====
 
==== $iColspanSearchStrong ====
 
==== $iColspanSearchStrong ====
==== function __construct() ====
+
==== __construct() ====
==== function GetTable($sHeader = '', $sHint = '',$sStaticHeader='',$sHeaderNT = '') ====
+
==== GetTable(<nowiki>$sHeader = '', $sHint = '',$sStaticHeader='',$sHeaderNT = ''</nowiki>) ====
==== function getStepper($iRowNumber) ====
+
 
==== function printPage($countPage, $actPage) ====
+
==== getStepper($iRowNumber) ====
==== function getStepperPear($iRowNumber) ====
+
==== printPage($countPage, $actPage) ====
==== function getFilter() ====
+
==== getStepperPear($iRowNumber) ====
==== function Customize() ====
+
==== getFilter() ====
==== function SetSql($sScript, $aData = array()) ====
+
==== Customize() ====
==== function sortArrayCallback($sA, $sB) ====
+
==== SetSql($sScript, $aData = array()) ====
==== function setArray($aData) ====
+
==== sortArrayCallback($sA, $sB) ====
==== function GetFilteredProductEnding($iCount) ====
+
==== setArray($aData) ====
 +
==== GetFilteredProductEnding($iCount) ====
  
 
=== Tree.php ===
 
=== Tree.php ===
Строка 1061: Строка 1362:
 
==== $sNoItem ====
 
==== $sNoItem ====
 
==== $bCountStepper ====
 
==== $bCountStepper ====
==== function __construct() ====
+
==== __construct() ====
==== function getTree($sHeader = '', $sHint = '') ====
+
==== getTree(<nowiki>$sHeader = '', $sHint = ''</nowiki>) ====
==== function getStepper($iRowNumber) ====
+
 
==== function getStepperPear($iRowNumber) ====
+
==== getStepper($iRowNumber) ====
==== function getFilter() ====
+
==== getStepperPear($iRowNumber) ====
==== function Customize() ====
+
==== getFilter() ====
==== function setSql($sScript, $aData = array()) ====
+
==== Customize() ====
==== function sortArrayCallback($sA, $sB) ====
+
==== setSql($sScript, $aData = array()) ====
==== function setArray($aData) ====
+
==== sortArrayCallback($sA, $sB) ====
 +
==== setArray($aData) ====
  
 
=== VinRequest.php ===
 
=== VinRequest.php ===
  
==== function __construct($bNeedAuth=true) ====
+
==== __construct($bNeedAuth=true) ====
==== function Index() ====
+
==== Index() ====
==== function Preview() ====
+
==== Preview() ====
==== function Manager() ====
+
==== Manager() ====
==== function ManagerSave($bRedirect=true) ====
+
==== ManagerSave($bRedirect=true) ====
==== function ManagerSend() ====
+
==== ManagerSend() ====
==== function ManagerRefuse() ====
+
==== ManagerRefuse() ====
==== function ManagerRelease($iId) ====
+
==== ManagerRelease($iId) ====
==== function ManagerMobileNotification($aVinRequest) ====
+
==== ManagerMobileNotification($aVinRequest) ====
==== function GetVinIdList($bReturnArray=false) ====
+
==== GetVinIdList($bReturnArray=false) ====
==== function ManagerRemember() ====
+
==== ManagerRemember() ====
  
 
=== XajaxParser.php ===
 
=== XajaxParser.php ===
Строка 1095: Строка 1397:
  
 
==== $sPrefix ====
 
==== $sPrefix ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function SinxroTranslate() ====
+
==== SinxroTranslate() ====
==== function InsertIrbis() ====
+
==== InsertIrbis() ====
==== function GetFromIrbis() ====
+
==== GetFromIrbis() ====
  
 
=== Binotel.php ===
 
=== Binotel.php ===
  
 
==== $oBinotel ====
 
==== $oBinotel ====
==== function __construct() ====
+
==== __construct() ====
==== function InputCalls() ====
+
==== InputCalls() ====
==== function OutputCalls() ====
+
==== OutputCalls() ====
==== function LostCalls() ====
+
==== LostCalls() ====
==== function CallsByManager() ====
+
==== CallsByManager() ====
==== function CallsByNumber() ====
+
==== CallsByNumber() ====
==== function CallsNow() ====
+
==== CallsNow() ====
==== function Managers() ====
+
==== Managers() ====
==== function UserAdd() ====
+
==== UserAdd() ====
==== function UserImport() ====
+
==== UserImport() ====
==== function UserEdit() ====
+
==== UserEdit() ====
==== function Users() ====
+
==== Users() ====
==== function Call() ====
+
==== Call() ====
==== function Index() ====
+
==== Index() ====
==== function GetCallFromStart() ====
+
==== GetCallFromStart() ====
==== function GetCallRecord($sCallId) ====
+
==== GetCallRecord($sCallId) ====
==== function GetCallsNow() ====
+
==== GetCallsNow() ====
==== function GetLostCalls() ====
+
==== GetLostCalls() ====
==== function GetCallsByNumber($sNumber) ====
+
==== GetCallsByNumber($sNumber) ====
==== function GetCallsByUser($sUser) ====
+
==== GetCallsByUser($sUser) ====
==== function GetCallInfo($sCallId) ====
+
==== GetCallInfo($sCallId) ====
==== function GetMyLastCalls($sInternalNumber) ====
+
==== GetMyLastCalls($sInternalNumber) ====
==== function GetMyCallsByDate($sInternalNumber,$iDateStart,$iDateEnd) ====
+
==== GetMyCallsByDate($sInternalNumber,$iDateStart,$iDateEnd) ====
==== function GetCallsByDay() ====
+
==== GetCallsByDay() ====
==== function GetCallsByDate($sDateStart,$sDateEnd) ====
+
==== GetCallsByDate($sDateStart,$sDateEnd) ====
==== function GetInputCalls() ====
+
==== GetInputCalls() ====
==== function GetOutputputCalls() ====
+
==== GetOutputputCalls() ====
==== function GetAllUsers() ====
+
==== GetAllUsers() ====
==== function GetUserById($iIdUser) ====
+
==== GetUserById($iIdUser) ====
==== function GetUserByNameOrPhone($sNameOrPhone) ====
+
==== GetUserByNameOrPhone($sNameOrPhone) ====
==== function CreateBinotelUser(<nowiki>$sName,$aPhones,$sDescription='',$sEmail='',$iManager='901',$aLabels=array()</nowiki>) ====
+
==== CreateBinotelUser(<nowiki>$sName,$aPhones,$sDescription='',$sEmail='',$iManager='901',$aLabels=array()</nowiki>) ====
==== function EditBinotelUser(<nowiki>$sId,$sName,$aPhones,$sDescription='',$sEmail='',$iManager='901',$aLabels=array()</nowiki>) ====
+
==== EditBinotelUser(<nowiki>$sId,$sName,$aPhones,$sDescription='',$sEmail='',$iManager='901',$aLabels=array()</nowiki>) ====
==== function RemoveBinotelUser($iIdUser) ====
+
==== RemoveBinotelUser($iIdUser) ====
==== function GetClientLabels() ====
+
==== GetClientLabels() ====
==== function GetAllManagers() ====
+
==== GetAllManagers() ====
==== function MakeCallToExternal($iInternal,$iExternal) ====
+
==== MakeCallToExternal($iInternal,$iExternal) ====
==== function CallTransfer($iCallId,$iInternalNumber) ====
+
==== CallTransfer($iCallId,$iInternalNumber) ====
==== function KillCall($iCallId) ====
+
==== KillCall($iCallId) ====
  
 
=== Buh.php ===
 
=== Buh.php ===
Строка 1152: Строка 1454:
 
==== $aActionException ====
 
==== $aActionException ====
 
==== $sCurrentPeriodLastDate ====
 
==== $sCurrentPeriodLastDate ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function SetNextPeriod() ====
+
==== SetNextPeriod() ====
==== function GetLastDate($sDate) ====
+
==== GetLastDate($sDate) ====
==== function Entry(<nowiki>$aDoc, $iAccountD, $iAccountC, $dAmount, $sDescription="", $iAccountDSub1=0, $iAccountDSub2=0, $iAccountDSub3=0, $iAccountCSub1=0, $iAccountCSub2=0, $iAccountCSub3=0, $iCurrency=1, $dCurrencySum=0, $dNumber="", $id=0, $sPostDate=0</nowiki>) ====
+
==== Entry(<nowiki>$aDoc, $iAccountD, $iAccountC, $dAmount, $sDescription="", $iAccountDSub1=0, $iAccountDSub2=0, $iAccountDSub3=0, $iAccountCSub1=0, $iAccountCSub2=0, $iAccountCSub3=0, $iCurrency=1, $dCurrencySum=0, $dNumber="", $id=0, $sPostDate=0</nowiki>) ====
==== function EntrySingle(<nowiki>$aDoc, $iAccountD, $iAccountC, $dAmount, $sDescription="", $iAccountDSub1=0, $iAccountDSub2=0, $iAccountDSub3=0, $iAccountCSub1=0, $iAccountCSub2=0, $iAccountCSub3=0, $iCurrency=1, $dCurrencySum=0, $dNumber="", $id=0, $sPostDate=0</nowiki>) ====
+
==== EntrySingle(<nowiki>$aDoc, $iAccountD, $iAccountC, $dAmount, $sDescription="", $iAccountDSub1=0, $iAccountDSub2=0, $iAccountDSub3=0, $iAccountCSub1=0, $iAccountCSub2=0, $iAccountCSub3=0, $iCurrency=1, $dCurrencySum=0, $dNumber="", $id=0, $sPostDate=0</nowiki>) ====
==== function EntryMany($aEntry) ====
+
==== EntryMany($aEntry) ====
==== function CheckParametr($aData) ====
+
==== CheckParametr($aData) ====
==== function EntryMonth($sDateMonth, $iAccount, $iAccountSub1=0, $iAccountSub2=0, $iAccountSub3=0, $dAmountDStart, $dAmountCStart, $dAmountD, $dAmountC, $dAmountDEnd, $dAmountCEnd) ====
+
==== EntryMonth($sDateMonth, $iAccount, $iAccountSub1=0, $iAccountSub2=0, $iAccountSub3=0, $dAmountDStart, $dAmountCStart, $dAmountD, $dAmountC, $dAmountDEnd, $dAmountCEnd) ====
==== function EntryMonthSingle($dDateMonth, $iAccount, $iAccountSub1, $iAccountSub2=0, $iAccountSub3=0, $dAmountD, $dAmountC, $dAmountDEnd, $dAmountCEnd) ====
+
==== EntryMonthSingle($dDateMonth, $iAccount, $iAccountSub1, $iAccountSub2=0, $iAccountSub3=0, $dAmountD, $dAmountC, $dAmountDEnd, $dAmountCEnd) ====
==== function EntryMonthMany($aEntry) ====
+
==== EntryMonthMany($aEntry) ====
==== function EntryMonthStartSingle($dDateMonth, $iAccount, $iAccountSub1, $iAccountSub2=0, $iAccountSub3=0, $dAmountDStart, $dAmountCStart) ====
+
==== EntryMonthStartSingle($dDateMonth, $iAccount, $iAccountSub1, $iAccountSub2=0, $iAccountSub3=0, $dAmountDStart, $dAmountCStart) ====
==== function Changeling () ====
+
==== Changeling () ====
==== function CallParseSum(&$aItem) ====
+
==== CallParseSum(&$aItem) ====
==== function CloseMonth() ====
+
==== CloseMonth() ====
==== function AddAmount() ====
+
==== AddAmount() ====
==== function ChangeForm() ====
+
==== ChangeForm() ====
==== function ChangelingPreview($bVisibleForm=true) ====
+
==== ChangelingPreview($bVisibleForm=true) ====
==== function GetSubconto() ====
+
==== GetSubconto() ====
==== function GetAmount($sBuhSection,$iBuhSection,$idBuh,$sBuhType='credit') ====
+
==== GetAmount($sBuhSection,$iBuhSection,$idBuh,$sBuhType='credit') ====
==== function GetSaldoLast($iSubconto1,$iBuh='361') ====
+
==== GetSaldoLast($iSubconto1,$iBuh='361') ====
  
 
=== CallMe.php ===
 
=== CallMe.php ===
  
==== function Send() ====
+
==== Send() ====
==== function ShowManager() ====
+
 
 +
Обработка отправки заказа звонка.
 +
 
 +
==== ShowManager() ====
 +
 
 +
Страница "Заказ звонка" для менеджера, где отображаются все заказы звонков, оставленные пользователями.
  
 
=== Cart.php ===
 
=== Cart.php ===
  
 
==== $sExportSql ====
 
==== $sExportSql ====
==== function __construct($bNeedAuth=true) ====
+
==== __construct($bNeedAuth=true) ====
==== function Index() ====
+
==== Index() ====
==== function CartList() ====
+
==== CartList() ====
==== function AssignDeliveryMethods() ====
+
 
==== function CartOnePageOrder() ====
+
Содержимое корзины.
==== function CartOnePageOrderManager() ====
+
 
==== function CartPrint() ====
+
==== AssignDeliveryMethods() ====
==== function CallParseCart(&$aItem) ====
+
 
==== function AddCartItemChecked() ====
+
Задать способы доставки товара в переменные шаблона.
==== function AddCartItem($iNumber=1,$bRedirect=true,<nowiki>$sReference=''</nowiki>) ====
+
 
==== function CartUpdateNumber() ====
+
==== CartOnePageOrder() ====
==== function OrderList() ====
+
 
==== function CallParseOrder(&$aItem) ====
+
Обработка оформления заказа для зарегистрированных и незарегистрированных пользователей.
==== function ParseVinCode($sVinCode, $iCheckVinLen = 17) ====
+
 
==== function PackageConfirm() ====
+
==== CartOnePageOrderManager() ====
==== function PackageDelete() ====
+
 
==== function CheckAccount() ====
+
Обработка оформления заказа менеджером.
==== function SelectAccount() ====
+
 
==== function ShipmentDetail() ====
+
==== CartPrint() ====
==== function PaymentMethod() ====
+
==== CallParseCart(&$aItem) ====
==== function PaymentEnd() ====
+
==== AddCartItemChecked() ====
==== function PaymentEndButton() ====
+
==== AddCartItem($iNumber=1,$bRedirect=true,<nowiki>$sReference=''</nowiki>) ====
==== function SendPendingWork($iIdCartPackage) ====
+
==== CartUpdateNumber() ====
==== function PackagePrint() ====
+
==== OrderList() ====
==== function PackageList() ====
+
==== CallParseOrder(&$aItem) ====
==== function NewAccountError() ====
+
==== ParseVinCode($sVinCode, $iCheckVinLen = 17) ====
==== function NewAccountManagerError() ====
+
==== PackageConfirm() ====
==== function PopUpGetOwnAuto() ====
+
==== PackageDelete() ====
==== function RecalcCartUser($iIdUser,$iIdUserNew,$iIdCartPackage=0) ====
+
==== CheckAccount() ====
==== function GetBoardExpiredCartUser($iIdUser) ====
+
==== SelectAccount() ====
==== function CartExpiredCountPositions($iUserId = 0) ====
+
==== ShipmentDetail() ====
==== function CartExpiredInfo($iUserId = 0) ====
+
==== PaymentMethod() ====
==== function OrderByPhone() ====
+
==== PaymentEnd() ====
==== function NewAccountDeliveryInfoFields() ====
+
==== PaymentEndButton() ====
==== function CartOnepageDeliveryFields() ====
+
==== SendPendingWork($iIdCartPackage) ====
==== function CartOnepagePaymentFields() ====
+
==== PackagePrint() ====
 +
==== PackageList() ====
 +
==== NewAccountError() ====
 +
==== NewAccountManagerError() ====
 +
==== PopUpGetOwnAuto() ====
 +
==== RecalcCartUser($iIdUser,$iIdUserNew,$iIdCartPackage=0) ====
 +
==== GetBoardExpiredCartUser($iIdUser) ====
 +
==== CartExpiredCountPositions($iUserId = 0) ====
 +
==== CartExpiredInfo($iUserId = 0) ====
 +
==== OrderByPhone() ====
 +
==== NewAccountDeliveryInfoFields() ====
 +
 
 +
Создание полей для форм, в которых указывается информация по доставке товара.
 +
 
 +
==== CartOnepageDeliveryFields() ====
 +
 
 +
Создание полей для выбора способа доставки.
 +
 
 +
==== CartOnepagePaymentFields() ====
 +
 
 +
Создание полей для выбора способа оплаты.
  
 
=== CatalogManager.php ===
 
=== CatalogManager.php ===
Строка 1224: Строка 1551:
 
==== $sPrefixAction ====
 
==== $sPrefixAction ====
 
==== $sPathToFile ====
 
==== $sPathToFile ====
==== function Index() ====
+
==== Index() ====
==== function EditName() ====
+
==== EditName() ====
==== function EditPic() ====
+
==== EditPic() ====
==== function UploadManyPics() ====
+
==== UploadManyPics() ====
==== function UploadPic() ====
+
==== UploadPic() ====
==== function ViewPicList() ====
+
==== ViewPicList() ====
==== function UploadMakeCodePic() ====
+
==== UploadMakeCodePic() ====
==== function AddInfo($aData=array()) ====
+
==== AddInfo($aData=array()) ====
==== function DeleteInfo($aData=array()) ====
+
==== DeleteInfo($aData=array()) ====
==== function SetItemCodeImage() ====
+
==== SetItemCodeImage() ====
==== function ImportImage() ====
+
==== ImportImage() ====
==== function DeleteImportImage() ====
+
==== DeleteImportImage() ====
==== function SetImportImage() ====
+
==== SetImportImage() ====
==== function ModelType() ====
+
==== ModelType() ====
==== function ModelTypeDelete($aData=array()) ====
+
==== ModelTypeDelete($aData=array()) ====
==== function AddCatInfo($aData) ====
+
==== AddCatInfo($aData) ====
==== function UpdateNumber() ====
+
==== UpdateNumber() ====
  
 
=== Catalog.php ===
 
=== Catalog.php ===
Строка 1256: Строка 1583:
 
==== $aModel ====
 
==== $aModel ====
 
==== $aModelDetail ====
 
==== $aModelDetail ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function ViewModel() ====
+
==== ViewModel() ====
==== function CallParseModel(&$aItem, $bSeparator=false) ====
+
==== CallParseModel(&$aItem, $bSeparator=false) ====
==== function ViewModelGroup() ====
+
==== ViewModelGroup() ====
==== function GetModelPic($aData) ====
+
==== GetModelPic($aData) ====
==== function GetModelDescription($aData) ====
+
==== GetModelDescription($aData) ====
==== function GetModelName($aData) ====
+
==== GetModelName($aData) ====
==== function ViewModelDetail($bShow=false) ====
+
==== ViewModelDetail($bShow=false) ====
==== function ModelFor() ====
+
==== ModelFor() ====
==== function CallParseModelDetail(&$aItem, $bSeparator=false) ====
+
==== CallParseModelDetail(&$aItem, $bSeparator=false) ====
==== function ViewAssemblage() ====
+
==== ViewAssemblage() ====
==== function GetBranch($id, $aData) ====
+
==== GetBranch($id, $aData) ====
==== function getAllParent($aTree, $iId, $iRootId, &$aCod) ====
+
==== getAllParent($aTree, $iId, $iRootId, &$aCod) ====
==== function CallParsePart(&$aItem) ====
+
==== CallParsePart(&$aItem) ====
==== function GetNavigator($aData,$sCrumb = '') ====
+
==== GetNavigator($aData,<nowiki>$sCrumb = ''</nowiki>) ====
==== function StripCode($sCode) ====
+
 
==== function StripLogin($sCode) ====
+
==== StripCode($sCode) ====
==== function StripCodeSearch($sCode) ====
+
==== StripLogin($sCode) ====
==== function StripCodeSql($sField) ====
+
==== StripCodeSearch($sCode) ====
==== function GetFormattedCode($sCode,$sPref) ====
+
==== StripCodeSql($sField) ====
==== function ViewPrice() ====
+
==== GetFormattedCode($sCode,$sPref) ====
==== function GetPriceTableHead(&$oTable) ====
+
==== ViewPrice() ====
==== function CallParseBrand(&$aItem) ====
+
==== GetPriceTableHead(&$oTable) ====
==== function CallParsePrice(&$aItem, $bSeparator=false) ====
+
==== CallParseBrand(&$aItem) ====
==== function ActualFilter(&$aItem) ====
+
==== CallParsePrice(&$aItem, $bSeparator=false) ====
==== function PosPriceParse(&$aItem,$bHaveFirstSeparator=true,$bHaveAnalogs=true) ====
+
==== ActualFilter(&$aItem) ====
==== function GetJson() ====
+
==== PosPriceParse(&$aItem,$bHaveFirstSeparator=true,$bHaveAnalogs=true) ====
==== function ViewInfoPart() ====
+
==== GetJson() ====
==== function OriginalCross() ====
+
==== ViewInfoPart() ====
==== function GetPriceForInfoPart(<nowiki>$sCodeInput='',$sPrefInput=''</nowiki>) ====
+
==== OriginalCross() ====
==== function ExportPrice() ====
+
==== GetPriceForInfoPart(<nowiki>$sCodeInput='',$sPrefInput=''</nowiki>) ====
==== function SetImageWidth() ====
+
==== ExportPrice() ====
==== function UpdatePrice(<nowiki>$sItemCode="",$idProvider="",$dPrice=0</nowiki>) ====
+
==== SetImageWidth() ====
==== function Cross() ====
+
==== UpdatePrice(<nowiki>$sItemCode="",$idProvider="",$dPrice=0</nowiki>) ====
==== function CrossLoad() ====
+
==== Cross() ====
==== function CrossInstall() ====
+
==== CrossLoad() ====
==== function InstallExcel($aCrossProfile, $aPref) ====
+
==== CrossInstall() ====
==== function InstallExcel07($aCrossProfile, $aPref) ====
+
==== InstallExcel($aCrossProfile, $aPref) ====
==== function InstallCSV($aCrossProfile, $aPref) ====
+
==== InstallExcel07($aCrossProfile, $aPref) ====
==== function CrossClearImport() ====
+
==== InstallCSV($aCrossProfile, $aPref) ====
==== function CrossImportAdvance() ====
+
==== CrossClearImport() ====
==== function CrossProfile() ====
+
==== CrossImportAdvance() ====
==== function InsertCross($aData) ====
+
==== CrossProfile() ====
==== function InsertCrossStop($aData) ====
+
==== InsertCross($aData) ====
==== function DeleteGroupCross() ====
+
==== InsertCrossStop($aData) ====
==== function DeleteCross($bRedirect=true) ====
+
==== DeleteGroupCross() ====
==== function DeleteGroupCrossStop() ====
+
==== DeleteCross($bRedirect=true) ====
==== function DeleteCrossStop($bRedirect=true) ====
+
==== DeleteGroupCrossStop() ====
==== function ImportCross() ====
+
==== DeleteCrossStop($bRedirect=true) ====
==== function SearchAdvance() ====
+
==== ImportCross() ====
==== function PrintPartName($aRow) ====
+
==== SearchAdvance() ====
==== function ChangeSelect() ====
+
==== PrintPartName($aRow) ====
==== function LoadAutotechnics() ====
+
==== ChangeSelect() ====
==== function CrossStop() ====
+
==== LoadAutotechnics() ====
==== function ViewBrand() ====
+
==== CrossStop() ====
==== function ViewBrandShow() ====
+
==== ViewBrand() ====
==== function CorrectBrandLink(&$aBrand) ====
+
==== ViewBrandShow() ====
==== function ChangePartParam() ====
+
==== CorrectBrandLink(&$aBrand) ====
==== function CallParseCross(&$aItem) ====
+
==== ChangePartParam() ====
==== function ViewOwnAuto() ====
+
==== CallParseCross(&$aItem) ====
==== function MotoBrands() ====
+
==== ViewOwnAuto() ====
==== function MotoModels() ====
+
==== MotoBrands() ====
==== function MotoDetails() ====
+
==== MotoModels() ====
==== function MotoAssemblage() ====
+
==== MotoDetails() ====
==== function mb_ucfirst($str, $enc = 'utf-8') ====
+
==== MotoAssemblage() ====
==== function outTree(&$category_arr=array(), $parent_id, $level) ====
+
==== mb_ucfirst($str, $enc = 'utf-8') ====
==== function SetSelectedPart(&$aTree=array(), $iPart) ====
+
==== outTree(&$category_arr=array(), $parent_id, $level) ====
==== function GetArtId($sItemCode) ====
+
==== SetSelectedPart(&$aTree=array(), $iPart) ====
==== function SortTable() ====
+
==== GetArtId($sItemCode) ====
==== function TruckIndex() ====
+
==== SortTable() ====
==== function TruckModels() ====
+
==== TruckIndex() ====
==== function TruckDetails() ====
+
==== TruckModels() ====
==== function TruckAssemblage() ====
+
==== TruckDetails() ====
==== function ParseTruckPartsImages(&$aItem) ====
+
==== TruckAssemblage() ====
 +
==== ParseTruckPartsImages(&$aItem) ====
  
 
=== CommentTree.php ===
 
=== CommentTree.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function GetCommentListTree($sSection,$sId,$bXajaxResponse=false) ====
+
==== GetCommentListTree($sSection,$sId,$bXajaxResponse=false) ====
==== function Post() ====
+
==== Post() ====
==== function convertArrayToTree($aSourceArray, $sParentId='0', $sKeyChildren='child', $aKeyId='id', $sKeyParentId='parent_id') ====
+
==== convertArrayToTree($aSourceArray, $sParentId='0', $sKeyChildren='child', $aKeyId='id', $sKeyParentId='parent_id') ====
==== function doConvertArrayToTree($aSourceArray, &$aThisTree, $sParentId, $sThisId, $sKeyChildren, $aKeyId, $sKeyParentId) ====
+
==== doConvertArrayToTree($aSourceArray, &$aThisTree, $sParentId, $sThisId, $sKeyChildren, $aKeyId, $sKeyParentId) ====
  
 
=== ContactForm.php ===
 
=== ContactForm.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function Call() ====
+
==== Call() ====
  
 
=== Customer.php ===
 
=== Customer.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function Profile() ====
+
==== Profile() ====
==== function IsChangeableLogin($sLogin) ====
+
 
==== function IsTempUser($sLogin='') ====
+
Редактирование профиля клиента.
==== function ChangeRating() ====
+
 
 +
==== IsChangeableLogin($sLogin) ====
 +
==== IsTempUser($sLogin='') ====
 +
 
 +
Если пользователь с логином $sLogin является временным, возвратит 1, если постоянный - 0.
 +
 
 +
==== ChangeRating() ====
  
 
=== Dashboard.php ===
 
=== Dashboard.php ===
  
==== function __construct() ====
+
Личный кабинет пользователя.
==== function Index() ====
+
 
==== function Customer() ====
+
==== __construct() ====
==== function User() ====
+
==== Index() ====
==== function PartnerRegionChange() ====
+
==== Customer() ====
 +
==== User() ====
 +
==== PartnerRegionChange() ====
  
 
=== Delivery.php ===
 
=== Delivery.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function Set() ====
+
==== Set() ====
  
 
=== ElitRoma.php ===
 
=== ElitRoma.php ===
  
 
==== $sPathToFile ====
 
==== $sPathToFile ====
==== function Index() ====
+
==== Index() ====
==== function Export($bPrice=false) ====
+
==== Export($bPrice=false) ====
==== function CronSecond() ====
+
==== CronSecond() ====
==== function CronLoad() ====
+
==== CronLoad() ====
==== function GetPrice() ====
+
==== GetPrice() ====
==== function Load() ====
+
==== Load() ====
==== function LoadFromExcel($sFilePath,<nowiki>$sTable=''</nowiki>) ====
+
==== LoadFromExcel($sFilePath,<nowiki>$sTable=''</nowiki>) ====
==== function Insert(&$aInsert=array(),<nowiki>$sTable=''</nowiki>) ====
+
==== Insert(&$aInsert=array(),<nowiki>$sTable=''</nowiki>) ====
==== function LoadPrice($aItem,<nowiki>$sTable=''</nowiki>) ====
+
==== LoadPrice($aItem,<nowiki>$sTable=''</nowiki>) ====
==== function GetSessionID() ====
+
==== GetSessionID() ====
  
 
=== Error.php ===
 
=== Error.php ===
  
==== function GetError($iCode) ====
+
==== GetError($iCode) ====
  
 
=== Finance.php ===
 
=== Finance.php ===
Строка 1391: Строка 1727:
 
==== $aHaveMoney ====
 
==== $aHaveMoney ====
 
==== $aUserAccountLogTypeAssoc ====
 
==== $aUserAccountLogTypeAssoc ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function CallParseLog(&$aItem) ====
+
==== CallParseLog(&$aItem) ====
==== function ExportAll() ====
+
==== ExportAll() ====
==== function CreateFinanceExcel($sSql,$bShowCustomer=false) ====
+
==== CreateFinanceExcel($sSql,$bShowCustomer=false) ====
==== function BillforUser () ====
+
==== BillforUser () ====
==== function Bill() ====
+
==== Bill() ====
==== function BillPrint(<nowiki>$iIdBill=''</nowiki>) ====
+
==== BillPrint(<nowiki>$iIdBill=''</nowiki>) ====
==== function Deposit(<nowiki>$iIdUser,$dAmount,$sDescription='',$iCustomId='',$sPayType='internal',$sSection='internal',$sData='',$iIdUserAccountLogType=''</nowiki>) ====
+
==== Deposit(<nowiki>$iIdUser,$dAmount,$sDescription='',$iCustomId='',$sPayType='internal',$sSection='internal',$sData='',$iIdUserAccountLogType=''</nowiki>) ====
==== function TransactionError(<nowiki>$aData, $iIdUser='', $sDescription=''</nowiki>) ====
+
==== TransactionError(<nowiki>$aData, $iIdUser='', $sDescription=''</nowiki>) ====
==== function AccountAmount($iIdUser) ====
+
==== AccountAmount($iIdUser) ====
==== function DebtAmount($iIdUser) ====
+
==== DebtAmount($iIdUser) ====
==== function HaveMoney(<nowiki>$dAmount,$iIdUser='',$bFullPayment=false</nowiki>) ====
+
==== HaveMoney(<nowiki>$dAmount,$iIdUser='',$bFullPayment=false</nowiki>) ====
==== function PayForAccount() ====
+
==== PayForAccount() ====
==== function GetGeneralAccountAmount() ====
+
==== GetGeneralAccountAmount() ====
==== function GetUserAccountLogTypeAssoc() ====
+
==== GetUserAccountLogTypeAssoc() ====
==== function GetSumAmount($sUserType='customer') ====
+
==== GetSumAmount($sUserType='customer') ====
==== function AssignAccount($aUser) ====
+
==== AssignAccount($aUser) ====
==== function AssignSubtotal($sWhere) ====
+
==== AssignSubtotal($sWhere) ====
  
 
=== GarageManager.php ===
 
=== GarageManager.php ===
Строка 1419: Строка 1755:
 
==== $aTypeWheel ====
 
==== $aTypeWheel ====
 
==== $aVinMonth ====
 
==== $aVinMonth ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function Profile() ====
+
==== Profile() ====
==== function CallParseUserAuto(&$aItem) ====
+
==== CallParseUserAuto(&$aItem) ====
==== function AddComment() ====
+
==== AddComment() ====
==== function Edit() ====
+
==== Edit() ====
==== function Delete() ====
+
==== Delete() ====
==== function GetInfoAuto($aData) ====
+
==== GetInfoAuto($aData) ====
==== function GetFormAddAuto($oObject, $sTitle = "Edit", $iSubmitNotPopUp = 1) ====
+
==== GetFormAddAuto($oObject, $sTitle = "Edit", $iSubmitNotPopUp = 1) ====
==== function Get_aTypeFuel() ====
+
==== Get_aTypeFuel() ====
==== function Get_aTypeDrive() ====
+
==== Get_aTypeDrive() ====
  
 
=== Home.php ===
 
=== Home.php ===
  
==== function Index() ====
+
==== Index() ====
==== function GetPopularProducts() ====
+
==== GetPopularProducts() ====
==== function GetLastViewedProducts() ====
+
==== GetLastViewedProducts() ====
  
 
=== ManagerCart.php ===
 
=== ManagerCart.php ===
  
 
==== $sCustomerSql ====
 
==== $sCustomerSql ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function CallParseCart(&$aItem) ====
+
==== CallParseCart(&$aItem) ====
==== function Archive() ====
+
==== Archive() ====
==== function Store() ====
+
==== Store() ====
==== function Payment() ====
+
==== Payment() ====
  
 
=== ManagerInvoiceCustomer.php ===
 
=== ManagerInvoiceCustomer.php ===
Строка 1456: Строка 1792:
 
==== CUSTOMER_TYPE_NOT_SET ====
 
==== CUSTOMER_TYPE_NOT_SET ====
 
==== $sPrefix ====
 
==== $sPrefix ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function CallParseCustomer(&$aItem) ====
+
==== CallParseCustomer(&$aItem) ====
==== function Create($bPrint=false) ====
+
==== Create($bPrint=false) ====
==== function CallParseCreate(&$aItem) ====
+
==== CallParseCreate(&$aItem) ====
==== function ChangeRating() ====
+
==== ChangeRating() ====
==== function Invoice() ====
+
==== Invoice() ====
==== function PrintInvoice<nowiki>($iIdUser=''</nowiki>,$bReturnContent=false) ====
+
==== PrintInvoice<nowiki>($iIdUser=''</nowiki>,$bReturnContent=false) ====
==== function GetFactureRight(&$aUserInvoice,&$aAdditionalItem,$aDeliveryCost=array(),$dTarifTax=0,$sCurrency='USD') ====
+
==== GetFactureRight(&$aUserInvoice,&$aAdditionalItem,$aDeliveryCost=array(),$dTarifTax=0,$sCurrency='USD') ====
==== function Recalculate($iIdInvoiceCustomer) ====
+
==== Recalculate($iIdInvoiceCustomer) ====
==== function CreateOfficeTravelSheet() ====
+
==== CreateOfficeTravelSheet() ====
==== function IsTravelSheetAdd() ====
+
==== IsTravelSheetAdd() ====
==== function IsTravelSheetClear() ====
+
==== IsTravelSheetClear() ====
==== function IsTravelSheetBrowse() ====
+
==== IsTravelSheetBrowse() ====
==== function CreateInvoiceTravelSheet() ====
+
==== CreateInvoiceTravelSheet() ====
==== function GetInvoiceExcel() ====
+
==== GetInvoiceExcel() ====
==== function GetInvoiceExcelFitlered() ====
+
==== GetInvoiceExcelFitlered() ====
==== function GetInvoiceExcelAll() ====
+
==== GetInvoiceExcelAll() ====
==== function Send($iInvoiceCustomer) ====
+
==== Send($iInvoiceCustomer) ====
==== function End($iInvoiceCustomer) ====
+
==== End($iInvoiceCustomer) ====
==== function GetInvoiceFactureExcel() ====
+
==== GetInvoiceFactureExcel() ====
==== function GetInvoiceFactureExcelFitlered() ====
+
==== GetInvoiceFactureExcelFitlered() ====
==== function GetInvoiceFactureExcelAll() ====
+
==== GetInvoiceFactureExcelAll() ====
==== function SendInvoiceFactureExcel($aInvoiceId) ====
+
==== SendInvoiceFactureExcel($aInvoiceId) ====
==== function GetInvoiceListExcel() ====
+
==== GetInvoiceListExcel() ====
==== function ChangeCustomerType() ====
+
==== ChangeCustomerType() ====
==== function DeliveryCalculator() ====
+
==== DeliveryCalculator() ====
==== function Delivery() ====
+
==== Delivery() ====
==== function CallParseDelivery(&$aItem) ====
+
==== CallParseDelivery(&$aItem) ====
==== function DeliveryEdit() ====
+
==== DeliveryEdit() ====
  
 
=== Manager.php ===
 
=== Manager.php ===
Строка 1496: Строка 1832:
 
==== $aCustomerList ====
 
==== $aCustomerList ====
 
==== $sCurrentOrderStatus ====
 
==== $sCurrentOrderStatus ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function GetCustomerList() ====
+
==== GetCustomerList() ====
==== function Profile() ====
+
==== Profile() ====
==== function Customer() ====
+
==== Customer() ====
==== function CustomerEdit() ====
+
==== CustomerEdit() ====
==== function CustomerRedirect() ====
+
==== CustomerRedirect() ====
==== function Order() ====
+
==== Order() ====
==== function CallParseOrder(&$aItem) ====
+
==== CallParseOrder(&$aItem) ====
==== function ChangeStatus() ====
+
==== ChangeStatus() ====
==== function AgreeGrowth() ====
+
==== AgreeGrowth() ====
==== function Reorder() ====
+
==== Reorder() ====
==== function Bill() ====
+
==== Bill() ====
==== function ProcessOrderStatus(<nowiki>$iId='', $sOrderStatus='', $sComment='', $sIdProviderOrder='', $dProviderPrice='', $sIdProviderInvoice='', $sCustomValue=''</nowiki>) ====
+
==== ProcessOrderStatus(<nowiki>$iId='', $sOrderStatus='', $sComment='', $sIdProviderOrder='', $dProviderPrice='', $sIdProviderInvoice='', $sCustomValue=''</nowiki>) ====
==== function ChangeCart($aCart,$sOrderStatus,$sCustomValue) ====
+
==== ChangeCart($aCart,$sOrderStatus,$sCustomValue) ====
==== function VinRequest() ====
+
==== VinRequest() ====
==== function CallParseVinRequest(&$aItem) ====
+
==== CallParseVinRequest(&$aItem) ====
==== function VinRequestSave($bRedirect=true) ====
+
==== VinRequestSave($bRedirect=true) ====
==== function VinRequestSend() ====
+
==== VinRequestSend() ====
==== function VinRequestRefuse() ====
+
==== VinRequestRefuse() ====
==== function VinRequestRelease($iId) ====
+
==== VinRequestRelease($iId) ====
==== function VinRequestMobileNotification($aVinRequest) ====
+
==== VinRequestMobileNotification($aVinRequest) ====
==== function GetVinIdList($bReturnArray=false) ====
+
==== GetVinIdList($bReturnArray=false) ====
==== function VinRequestRemember() ====
+
==== VinRequestRemember() ====
==== function PackageAddOrderItem() ====
+
==== PackageAddOrderItem() ====
==== function Package() ====
+
==== Package() ====
==== function CallParsePackage(&$aItem) ====
+
==== CallParsePackage(&$aItem) ====
==== function DeletePackageEmpty() ====
+
==== DeletePackageEmpty() ====
==== function ExportAll() ====
+
==== ExportAll() ====
==== function OrderReportExport() ====
+
==== OrderReportExport() ====
==== function ExportOrder() ====
+
==== ExportOrder() ====
==== function ExportOrderAll() ====
+
==== ExportOrderAll() ====
==== function Export($sType='row_check') ====
+
==== Export($sType='row_check') ====
==== function ExportMegaAll() ====
+
==== ExportMegaAll() ====
==== function ExportMega($sType='row_check') ====
+
==== ExportMega($sType='row_check') ====
==== function GetCartMake($aCart) ====
+
==== GetCartMake($aCart) ====
==== function ImportStatus() ====
+
==== ImportStatus() ====
==== function EditWeight() ====
+
==== EditWeight() ====
==== function ImportWeight() ====
+
==== ImportWeight() ====
==== function AddWeightName($u) ====
+
==== AddWeightName($u) ====
==== function AssignCustomers() ====
+
==== AssignCustomers() ====
==== function Finance() ====
+
==== Finance() ====
==== function CallParseLog(&$aItem) ====
+
==== CallParseLog(&$aItem) ====
==== function ReturnFullPaymentDiscount($aCart) ====
+
==== ReturnFullPaymentDiscount($aCart) ====
==== function FinanceExportAll() ====
+
==== FinanceExportAll() ====
==== function ParentMarginDebet($aCart) ====
+
==== ParentMarginDebet($aCart) ====
==== function IsChangeableLogin($sLogin) ====
+
==== IsChangeableLogin($sLogin) ====
==== function CountMoney() ====
+
==== CountMoney() ====
==== function PayCartPackage($iIdCartPackage,$aEntry=array()) ====
+
==== PayCartPackage($iIdCartPackage,$aEntry=array()) ====
==== function NotifyDebitedMoney($aEntry=array()) ====
+
==== NotifyDebitedMoney($aEntry=array()) ====
==== function PrintOrder() ====
+
==== PrintOrder() ====
==== function RefusePending() ====
+
==== RefusePending() ====
==== function PrintPakage() ====
+
==== PrintPakage() ====
==== function SetPriceTotalCartPackage($aCart) ====
+
==== SetPriceTotalCartPackage($aCart) ====
==== function MergePakage() ====
+
==== MergePakage() ====
==== function ChangeProvider () ====
+
==== ChangeProvider () ====
==== function SetPackagePayed () ====
+
==== SetPackagePayed () ====
==== function Cat () ====
+
==== Cat () ====
==== function SynonymBrandClear ($sBrand) ====
+
==== SynonymBrandClear ($sBrand) ====
==== function Synonym () ====
+
==== Synonym () ====
==== function CatPref () ====
+
==== CatPref () ====
==== function SetCheckedAuto () ====
+
==== SetCheckedAuto () ====
==== function CustomerRecalcCart () ====
+
==== CustomerRecalcCart () ====
==== function JoinOrders() ====
+
==== JoinOrders() ====
==== function GetUserSelect() ====
+
==== GetUserSelect() ====
==== function GetPopularProducts() ====
+
==== GetPopularProducts() ====
  
 
=== Manual.php ===
 
=== Manual.php ===
  
==== function Manual() ====
+
==== Manual() ====
==== function Index() ====
+
==== Index() ====
==== function Show() ====
+
==== Show() ====
==== function ShowShort($sRequesCode) ====
+
==== ShowShort($sRequesCode) ====
==== function CommentList($sManualId) ====
+
==== CommentList($sManualId) ====
  
 
=== Map.php ===
 
=== Map.php ===
Строка 1575: Строка 1911:
 
==== $sPrefix ====
 
==== $sPrefix ====
 
==== $aMap ====
 
==== $aMap ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function DropdownGetChilds($iIdParent) ====
+
==== DropdownGetChilds($iIdParent) ====
  
 
=== Message.php ===
 
=== Message.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Prepare() ====
+
==== Prepare() ====
==== function MoveToFolder() ====
+
==== MoveToFolder() ====
==== function Reply() ====
+
==== Reply() ====
==== function Forward() ====
+
==== Forward() ====
==== function Send() ====
+
==== Send() ====
==== function Draft() ====
+
==== Draft() ====
==== function Compose() ====
+
==== Compose() ====
==== function Delete() ====
+
==== Delete() ====
==== function Clear() ====
+
==== Clear() ====
==== function Preview() ====
+
==== Preview() ====
==== function ChangeCurrentFolder() ====
+
==== ChangeCurrentFolder() ====
==== function Browse() ====
+
==== Browse() ====
==== function CallParseMessage(&$aItem) ====
+
==== CallParseMessage(&$aItem) ====
==== function MessageNumber($iIdUser,$iIdMessageFolder) ====
+
==== MessageNumber($iIdUser,$iIdMessageFolder) ====
==== function CreateMessage($sTo,$sSubject,$iIdMessageFolder,$iIsRead,$sText,<nowiki>$iIdUser='',$sUserFrom=''</nowiki>,$aAttachFiles=array()) ====
+
==== CreateMessage($sTo,$sSubject,$iIdMessageFolder,$iIsRead,$sText,<nowiki>$iIdUser='',$sUserFrom=''</nowiki>,$aAttachFiles=array()) ====
==== function SendMessage($sTo,$sSubject,$sText,<nowiki>$iIdMessage=''</nowiki>,$bSendEmail=true, $aAttachFiles=array()) ====
+
==== SendMessage($sTo,$sSubject,$sText,<nowiki>$iIdMessage=''</nowiki>,$bSendEmail=true, $aAttachFiles=array()) ====
==== function DeleteMessage($iId) ====
+
==== DeleteMessage($iId) ====
==== function EraseMessage($iId) ====
+
==== EraseMessage($iId) ====
==== function MoveMessage($iId,$iIdMessageFolder) ====
+
==== MoveMessage($iId,$iIdMessageFolder) ====
==== function getUserList($aLogin) ====
+
==== getUserList($aLogin) ====
==== function ReadMessage($iId) ====
+
==== ReadMessage($iId) ====
==== function CreateNotification(<nowiki>$sTo,$sCode,$sType='customer',$aUserData=array(),$sToId='',$iPriority=3</nowiki>) ====
+
==== CreateNotification(<nowiki>$sTo,$sCode,$sType='customer',$aUserData=array(),$sToId='',$iPriority=3</nowiki>) ====
==== function CreateDelayedNotification($iIdUser,$sCode,$aUserData=array(),$bSmartyTemplate=false,$iIdCart=0) ====
+
==== CreateDelayedNotification($iIdUser,$sCode,$aUserData=array(),$bSmartyTemplate=false,$iIdCart=0) ====
==== function SendBulkUserNotification(<nowiki>$sAdditionalWhere=''</nowiki>) ====
+
==== SendBulkUserNotification(<nowiki>$sAdditionalWhere=''</nowiki>) ====
==== function PreviewUserNotification() ====
+
==== PreviewUserNotification() ====
==== function AddNote(<nowiki>$iIdUser,$sName,$sDescription,$sUrl='',$sReplyTo=''</nowiki>) ====
+
==== AddNote(<nowiki>$iIdUser,$sName,$sDescription,$sUrl='',$sReplyTo=''</nowiki>) ====
==== function CheckNote() ====
+
==== CheckNote() ====
==== function NoteClose() ====
+
==== NoteClose() ====
==== function CreateCustomerIdExcel($aUserNotification) ====
+
==== CreateCustomerIdExcel($aUserNotification) ====
==== function ChangeStarred() ====
+
==== ChangeStarred() ====
==== function ChangeStarredMessage() ====
+
==== ChangeStarredMessage() ====
==== function GetAttachFiles() ====
+
==== GetAttachFiles() ====
  
 
=== News.php ===
 
=== News.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function Preview() ====
+
==== Preview() ====
==== function CommentList() ====
+
==== CommentList() ====
  
 
=== OwnAuto.php ===
 
=== OwnAuto.php ===
Строка 1631: Строка 1967:
 
==== $aTypeWheel ====
 
==== $aTypeWheel ====
 
==== $aVinMonth ====
 
==== $aVinMonth ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function CallParseUserAuto(&$aItem) ====
+
==== CallParseUserAuto(&$aItem) ====
==== function CallParseLogUserAuto(&$aItem) ====
+
==== CallParseLogUserAuto(&$aItem) ====
==== function GetJson() ====
+
==== GetJson() ====
==== function Del() ====
+
==== Del() ====
==== function GetInfoAuto($aData) ====
+
==== GetInfoAuto($aData) ====
==== function Get_aTypeFuel() ====
+
==== Get_aTypeFuel() ====
==== function Get_aTypeDrive() ====
+
==== Get_aTypeDrive() ====
==== function GetFormAddAuto($oObject, $sTitle = "Edit", $iSubmitNotPopUp = 1, $aData) ====
+
==== GetFormAddAuto($oObject, $sTitle = "Edit", $iSubmitNotPopUp = 1, $aData) ====
==== function AddJson() ====
+
==== AddJson() ====
==== function GetAutoInfoTip($iOrderId) ====
+
==== GetAutoInfoTip($iOrderId) ====
==== function GetListOwnAuto() ====
+
==== GetListOwnAuto() ====
==== function GetInfoById($iId = 0) ====
+
==== GetInfoById($iId = 0) ====
==== function SearchLog() ====
+
==== SearchLog() ====
==== function AddSearchAuto() ====
+
==== AddSearchAuto() ====
==== function DelFromAutoLog() ====
+
==== DelFromAutoLog() ====
  
 
=== PaymentDeclarationManager.php ===
 
=== PaymentDeclarationManager.php ===
  
==== function __construct() =====
+
==== __construct() =====
==== function Index() =====
+
==== Index() =====
==== function Add() =====
+
==== Add() =====
==== function Delete() =====
+
==== Delete() =====
==== function SelectUser() =====
+
==== SelectUser() =====
  
 
=== PaymentDeclaration.php ===
 
=== PaymentDeclaration.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
  
 
=== Payment.php ===
 
=== Payment.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function Log($sMethod='webmoney', <nowiki>$sMessage=''</nowiki>) ====
+
==== Log($sMethod='webmoney', <nowiki>$sMessage=''</nowiki>) ====
==== function LiqpayResult() ====
+
==== LiqpayResult() ====
==== function LiqpaySuccess() ====
+
==== LiqpaySuccess() ====
==== function LiqpayFail() ====
+
==== LiqpayFail() ====
==== function LiqpayPayment() ====
+
==== LiqpayPayment() ====
  
 
=== PaymentReportManager.php ===
 
=== PaymentReportManager.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
  
 
=== PaymentReport.php ===
 
=== PaymentReport.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function Add() ====
+
==== Add() ====
==== function Delete() ====
+
==== Delete() ====
  
 
=== PriceFtp.php ===
 
=== PriceFtp.php ===
Строка 1688: Строка 2024:
 
==== $sPrefix ====
 
==== $sPrefix ====
 
==== $sPrefixAction ====
 
==== $sPrefixAction ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
  
 
=== PriceGroup.php ===
 
=== PriceGroup.php ===
  
 
==== $sPrefix ====
 
==== $sPrefix ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function GetGroupNavi($iParent,&$aNavigator=array()) ====
+
==== GetGroupNavi($iParent,&$aNavigator=array()) ====
==== function cmp($a, $b) ====
+
==== cmp($a, $b) ====
==== function CallParse(&$aItem) ====
+
==== CallParse(&$aItem) ====
==== function GetTabs() ====
+
==== GetTabs() ====
==== function GetMainGroups() ====
+
==== GetMainGroups() ====
==== function Filter() ====
+
==== Filter() ====
==== function SortTablePriceGroup() ====
+
==== SortTablePriceGroup() ====
  
 
=== Price.php ===
 
=== Price.php ===
Строка 1719: Строка 2055:
 
==== $aPriceGrp ====
 
==== $aPriceGrp ====
 
==== $aValidateExtensions ====
 
==== $aValidateExtensions ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function LoadFromFile() ====
+
==== LoadFromFile() ====
==== function InitLoader($aPrice_profile) ====
+
==== InitLoader($aPrice_profile) ====
==== function LoadFromExcel($files,$aPrice_profile,$iUser=0,$iPriceQueue=0) ====
+
==== LoadFromExcel($files,$aPrice_profile,$iUser=0,$iPriceQueue=0) ====
==== function LoadFromCsv($files,$aPrice_profile,$iUser=0,$iPriceQueue=0) ====
+
==== LoadFromCsv($files,$aPrice_profile,$iUser=0,$iPriceQueue=0) ====
==== function LoadFromText($files,$aPrice_profile,$iUser=0,$iPriceQueue=0) ====
+
==== LoadFromText($files,$aPrice_profile,$iUser=0,$iPriceQueue=0) ====
==== function LoadFromDbf($files,$aPrice_profile,$iUser=0,$iPriceQueue=0) ====
+
==== LoadFromDbf($files,$aPrice_profile,$iUser=0,$iPriceQueue=0) ====
==== function LoadPrice($data,$aPrice_profile,$aProvider,$iUser,$iPriceQueue) ====
+
==== LoadPrice($data,$aPrice_profile,$aProvider,$iUser,$iPriceQueue) ====
==== function Install($bRedirect=true) ====
+
==== Install($bRedirect=true) ====
==== function ConformityApply() ====
+
==== ConformityApply() ====
==== function AutoAssocCat() ====
+
==== AutoAssocCat() ====
==== function Conformity() ====
+
==== Conformity() ====
==== function ClearImport(<nowiki>$sMessage=''</nowiki>, $bRedirect=true, $sType = 'all', $iIdProvider=0) ====
+
==== ClearImport(<nowiki>$sMessage=''</nowiki>, $bRedirect=true, $sType = 'all', $iIdProvider=0) ====
==== function ClearProvider($bRedirect=true, $iPriceQueueId = 0) ====
+
==== ClearProvider($bRedirect=true, $iPriceQueueId = 0) ====
==== function ClearPref() ====
+
==== ClearPref() ====
==== function AddItem($aCart,$dPrice) ====
+
==== AddItem($aCart,$dPrice) ====
==== function Export() ====
+
==== Export() ====
==== function ExportFile() ====
+
==== ExportFile() ====
==== function AddRequest() ====
+
==== AddRequest() ====
==== function AddCat() ====
+
==== AddCat() ====
==== function ConvertToInteger($sNumber) ====
+
==== ConvertToInteger($sNumber) ====
==== function RefreshQueue() ====
+
==== RefreshQueue() ====
==== function getStoppedQueueFlag($id) ====
+
==== getStoppedQueueFlag($id) ====
==== function SaveToLog($aResult, $iAllStringsCurrentList, $iAllStringsTotal, $iAllStrings, &$iCountError, $iList, $iPriceQueue, $aData, $aPrice_profile) ====
+
==== SaveToLog($aResult, $iAllStringsCurrentList, $iAllStringsTotal, $iAllStrings, &$iCountError, $iList, $iPriceQueue, $aData, $aPrice_profile) ====
==== function CheckStoppedLoadPrice($iPriceQueue) ====
+
==== CheckStoppedLoadPrice($iPriceQueue) ====
==== function LoadFromXlsxAll($iPriceQueue, &$iMaxCountCol, $files, $aPrice_profile, $aProvider, $iUser) ====
+
==== LoadFromXlsxAll($iPriceQueue, &$iMaxCountCol, $files, $aPrice_profile, $aProvider, $iUser) ====
==== function LoadFromXlsxPartial($iPriceQueue, &$iMaxCountCol, $files, $aPrice_profile, $aProvider, $iUser) ====
+
==== LoadFromXlsxPartial($iPriceQueue, &$iMaxCountCol, $files, $aPrice_profile, $aProvider, $iUser) ====
==== function GetArrayUnknownPref() ====
+
==== GetArrayUnknownPref() ====
==== function SaveFilesToQueue(<nowiki>$aFileExtract, $sSource = 'upload', $iProfile_id = 0, $sSubject = '', $sFrom = ''</nowiki>) ====
+
==== SaveFilesToQueue(<nowiki>$aFileExtract, $sSource = 'upload', $iProfile_id = 0, $sSubject = '', $sFrom = ''</nowiki>) ====
==== function SaveFilesToQueueExtended($aFileExtract, $sSource = 'upload', $iProfile_id = 0, <nowiki>$sSubject = '', $sFrom = ''</nowiki>) ====
+
==== SaveFilesToQueueExtended($aFileExtract, $sSource = 'upload', $iProfile_id = 0, <nowiki>$sSubject = '', $sFrom = ''</nowiki>) ====
==== function SaveFilesToQueueExtendedInsert($aProfileInfo,$aData,$aValue,$sErrorProfile,$sPathToFile) ====
+
==== SaveFilesToQueueExtendedInsert($aProfileInfo,$aData,$aValue,$sErrorProfile,$sPathToFile) ====
==== function ClearOldQueueFiles() ====
+
==== ClearOldQueueFiles() ====
==== function ClearOldQueueImportRecords() ====
+
==== ClearOldQueueImportRecords() ====
==== function RemovePref() ====
+
==== RemovePref() ====
==== function AddAutoPref() ====
+
==== AddAutoPref() ====
==== function GetAssociate() ====
+
==== GetAssociate() ====
==== function FindAssociate($aData) ====
+
==== FindAssociate($aData) ====
==== function BuildAssociateData() ====
+
==== BuildAssociateData() ====
==== function GetPriceMarginId($aData) ====
+
==== GetPriceMarginId($aData) ====
==== function dbg_last_error($iPriceQueue = 0) ====
+
==== dbg_last_error($iPriceQueue = 0) ====
  
 
=== PriceProfile.php ===
 
=== PriceProfile.php ===
  
 
==== $sPrefix ====
 
==== $sPrefix ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function ReloadViewPrice() ====
+
==== ReloadViewPrice() ====
==== function ProviderAddFromFile() ====
+
==== ProviderAddFromFile() ====
==== function PopUpProviderAdd() ====
+
==== PopUpProviderAdd() ====
==== function CreateProvider() ====
+
==== CreateProvider() ====
==== function GetDataFromFile($aData) ====
+
==== GetDataFromFile($aData) ====
==== function LoadFromCsvLimit($aFile,$iLimit=10) ====
+
==== LoadFromCsvLimit($aFile,$iLimit=10) ====
==== function LoadFromExcelLimit($aFile,$iLimit=10) ====
+
==== LoadFromExcelLimit($aFile,$iLimit=10) ====
==== function CreateProfileFromFile() ====
+
==== CreateProfileFromFile() ====
==== function ProviderEdit() ====
+
==== ProviderEdit() ====
==== function ProviderMakroInfo($aData) ====
+
==== ProviderMakroInfo($aData) ====
  
 
=== PriceQueue.php ===
 
=== PriceQueue.php ===
Строка 1782: Строка 2118:
 
==== $sPrefixAction ====
 
==== $sPrefixAction ====
 
==== $sPathToFile ====
 
==== $sPathToFile ====
==== function PriceQueue() ====
+
==== PriceQueue() ====
==== function Index() ====
+
==== Index() ====
==== function GetMailAttachment() ====
+
==== GetMailAttachment() ====
==== function LoadQueuePrice() ====
+
==== LoadQueuePrice() ====
==== function GetFtpFile() ====
+
==== GetFtpFile() ====
==== function GetQueueInfoTable() ====
+
==== GetQueueInfoTable() ====
==== function CallParseQueue(&$aItem) ====
+
==== CallParseQueue(&$aItem) ====
==== function AsuncLoadQueuePrice($iRedirect = 1) ====
+
==== AsuncLoadQueuePrice($iRedirect = 1) ====
==== function SendRequest($url, $params) ====
+
==== SendRequest($url, $params) ====
==== function LoadMessageLog() ====
+
==== LoadMessageLog() ====
==== function BuildMessage($iId = 0,$bIsMailMessage = false) ====
+
==== BuildMessage($iId = 0,$bIsMailMessage = false) ====
==== function GetProfile(<nowiki>$sType = 'mail', $sFileName = '', $sSubject = '', $sFrom = ''</nowiki>) ====
+
==== GetProfile(<nowiki>$sType = 'mail', $sFileName = '', $sSubject = '', $sFrom = ''</nowiki>) ====
  
 
=== PriceSearchLog.php ===
 
=== PriceSearchLog.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function AddSearch($sPref=false,$sCode=false) ====
+
==== AddSearch($sPref=false,$sCode=false) ====
  
 
=== PublicProvider.php ===
 
=== PublicProvider.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Add() ====
+
==== Add() ====
==== function Show() ====
+
==== Show() ====
==== function CallParseProvider(&$aItem) ====
+
==== CallParseProvider(&$aItem) ====
==== function CreateExcel() ====
+
==== CreateExcel() ====
  
 
=== Rating.php ===
 
=== Rating.php ===
  
==== function __contruct() ====
+
==== __contruct() ====
==== function Change($sSection,$iRefId,$iNumRating) ====
+
==== Change($sSection,$iRefId,$iNumRating) ====
  
 
=== RequestForm.php ===
 
=== RequestForm.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
  
 
=== Rubricator.php ===
 
=== Rubricator.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function GetModels() ====
+
==== GetModels() ====
==== function GetModelDetails() ====
+
==== GetModelDetails() ====
==== function SetMake() ====
+
==== SetMake() ====
==== function SetModel() ====
+
==== SetModel() ====
==== function SetModelDetail() ====
+
==== SetModelDetail() ====
==== function SetAll() ====
+
==== SetAll() ====
==== function GetRubricatorUrl() ====
+
==== GetRubricatorUrl() ====
==== function GetRubricatorUrlForFilter() ====
+
==== GetRubricatorUrlForFilter() ====
==== function GetPart(<nowiki>$sUrlGroup=''</nowiki>,$iIdPriceGroup=0) ====
+
==== GetPart(<nowiki>$sUrlGroup=''</nowiki>,$iIdPriceGroup=0) ====
==== function CallParsePartRubricator(&$aItem) ====
+
==== CallParsePartRubricator(&$aItem) ====
==== function Index() ====
+
==== Index() ====
==== function Category() ====
+
==== Category() ====
==== function SubCategory() ====
+
==== SubCategory() ====
==== function GetMainMenu() ====
+
==== GetMainMenu() ====
==== function GetMain() ====
+
==== GetMain() ====
==== function SetBrandPriceOrderUrl($sUrlParamsInclude) ====
+
==== SetBrandPriceOrderUrl($sUrlParamsInclude) ====
==== function GetBrandsForFilter($sType,$source,$iIdPriceGroup,$aItemCodesUnique) ====
+
==== GetBrandsForFilter($sType,$source,$iIdPriceGroup,$aItemCodesUnique) ====
==== function cmp($a, $b) ====
+
==== cmp($a, $b) ====
==== function GetRubricForModelGroup($aModelGroup,$sCat) ====
+
==== GetRubricForModelGroup($aModelGroup,$sCat) ====
==== function CheckSelectedAuto() ====
+
==== CheckSelectedAuto() ====
==== function CheckSelectedAutoName() ====
+
==== CheckSelectedAutoName() ====
==== function ClearAutoUrl() ====
+
==== ClearAutoUrl() ====
  
 
=== Search.php ===
 
=== Search.php ===
Строка 1849: Строка 2185:
 
==== $sPrefix ====
 
==== $sPrefix ====
 
==== $sQuery ====
 
==== $sQuery ====
==== function __construct() ====
+
==== __construct() ====
==== function Index($bShowSearchForm=true) ====
+
==== Index($bShowSearchForm=true) ====
==== function AllPriceGrouped() ====
+
==== AllPriceGrouped() ====
==== function AllPriceGroup() ====
+
==== AllPriceGroup() ====
==== function SinglePriceGroup() ====
+
==== SinglePriceGroup() ====
==== function SetDefaultSetting(&$oSphinxClient,$iLimit=1000) ====
+
==== SetDefaultSetting(&$oSphinxClient,$iLimit=1000) ====
==== function GetSphinxKeyword($sQuery) ====
+
==== GetSphinxKeyword($sQuery) ====
==== function StripQuery($sQuery) ====
+
==== StripQuery($sQuery) ====
==== function AllSearch() ====
+
==== AllSearch() ====
  
 
=== Sound.php ===
 
=== Sound.php ===
Строка 1863: Строка 2199:
 
==== $aSound ====
 
==== $aSound ====
 
==== $iAudio ====
 
==== $iAudio ====
==== function GetSound($sKey, <nowiki>$sDefault = ""</nowiki>) ====
+
==== GetSound($sKey, <nowiki>$sDefault = ""</nowiki>) ====
==== function InsertIntoPage($sCode,<nowiki>$sDefault=""</nowiki>) ====
+
==== InsertIntoPage($sCode,<nowiki>$sDefault=""</nowiki>) ====
==== function InsertIntoPageCustomerByLogin($sLogin) ====
+
==== InsertIntoPageCustomerByLogin($sLogin) ====
==== function InsertIntoPageCustomerById($sId) ====
+
==== InsertIntoPageCustomerById($sId) ====
==== function UploadCustomerSound() ====
+
==== UploadCustomerSound() ====
==== function GetHtmlCode($sFilename) ====
+
==== GetHtmlCode($sFilename) ====
==== function GetHtmlCodeCustomer($aData) ====
+
==== GetHtmlCodeCustomer($aData) ====
==== function GetCustomerFileNamePath($sLogin,$bIsUrl=false) ====
+
==== GetCustomerFileNamePath($sLogin,$bIsUrl=false) ====
  
 
=== Store.php ===
 
=== Store.php ===
Строка 1876: Строка 2212:
 
==== $sPreffix ====
 
==== $sPreffix ====
 
==== $bTransferFlag ====
 
==== $bTransferFlag ====
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function AddToSale() ====
+
==== AddToSale() ====
==== function AddToTransfer() ====
+
==== AddToTransfer() ====
==== function InputInvoiceScanner() ====
+
==== InputInvoiceScanner() ====
==== function InputInvoiceManual() ====
+
==== InputInvoiceManual() ====
==== function InputInvoiceProcess() ====
+
==== InputInvoiceProcess() ====
==== function Sale() ====
+
==== Sale() ====
==== function SaleInvoice() ====
+
==== SaleInvoice() ====
==== function SaleInvoiceProcess() ====
+
==== SaleInvoiceProcess() ====
==== function ReturnStore() ====
+
==== ReturnStore() ====
==== function Log() ====
+
==== Log() ====
==== function LogHistory() ====
+
==== LogHistory() ====
==== function GetMd5($aValue) ====
+
==== GetMd5($aValue) ====
==== function UpdateNumber() ====
+
==== UpdateNumber() ====
==== function Transfer() ====
+
==== Transfer() ====
==== function TransferProcess() ====
+
==== TransferProcess() ====
==== function TransferProcessTry($aProductFromLog=array(), &$aValue=array(), $aData=array(), $iType='2') ====
+
==== TransferProcessTry($aProductFromLog=array(), &$aValue=array(), $aData=array(), $iType='2') ====
==== function Balance() ====
+
==== Balance() ====
==== function ExportToPrice() ====
+
==== ExportToPrice() ====
==== function Products() ====
+
==== Products() ====
  
 
=== TecdocDb.php ===
 
=== TecdocDb.php ===
  
==== function Execute($sSql,$aInput=false) ====
+
==== Execute($sSql,$aInput=false) ====
==== function GetAll($sSql) ====
+
==== GetAll($sSql) ====
==== function GetAssoc($sSql, $aData=array(), $bReturnSql=false) ====
+
==== GetAssoc($sSql, $aData=array(), $bReturnSql=false) ====
==== function GetRow($sSql) ====
+
==== GetRow($sSql) ====
==== function GetOne($sSql) ====
+
==== GetOne($sSql) ====
==== function AutoExecute($sTable, $aFieldValue, $sMode = 'INSERT', $sWhere = FALSE, $bForceUpdate=true, $bMagicQuote=false) ====
+
==== AutoExecute($sTable, $aFieldValue, $sMode = 'INSERT', $sWhere = FALSE, $bForceUpdate=true, $bMagicQuote=false) ====
==== function Debug() ====
+
==== Debug() ====
==== function LogSql($bEnable=true) ====
+
==== LogSql($bEnable=true) ====
==== function InsertId() ====
+
==== InsertId() ====
==== function AffectedRow() ====
+
==== AffectedRow() ====
==== function StartTrans() ====
+
==== StartTrans() ====
==== function FailTrans() ====
+
==== FailTrans() ====
==== function CompleteTrans() ====
+
==== CompleteTrans() ====
==== function Escape($aData) ====
+
==== Escape($aData) ====
==== function GetInsertSql($oSql, $aField, $bMagicq=true, $sForce=null) ====
+
==== GetInsertSql($oSql, $aField, $bMagicq=true, $sForce=null) ====
==== function SelectLimit($sSql, $iRow=-1, $iStart=-1, $inputarr=false,$secs2cache=0) ====
+
==== SelectLimit($sSql, $iRow=-1, $iStart=-1, $inputarr=false,$secs2cache=0) ====
==== function GetTableInfo(<nowiki>$sType=''</nowiki>) ====
+
==== GetTableInfo(<nowiki>$sType=''</nowiki>) ====
==== function SetWhere(&$sWhere, $aData, $sDataField, $sPrefix, <nowiki>$sTableField=""</nowiki>) ====
+
==== SetWhere(&$sWhere, $aData, $sDataField, $sPrefix, <nowiki>$sTableField=""</nowiki>) ====
==== function GetDateFormat($sNameField="post_date", <nowiki>$sFormat=""</nowiki>) ====
+
==== GetDateFormat($sNameField="post_date", <nowiki>$sFormat=""</nowiki>) ====
==== function GetStrToDate($sPostDate, $bReturnDate=false, <nowiki>$sFormat=""</nowiki>) ====
+
==== GetStrToDate($sPostDate, $bReturnDate=false, <nowiki>$sFormat=""</nowiki>) ====
==== function GetModels($aData) ====
+
==== GetModels($aData) ====
==== function GetModel($aData) ====
+
Выборка моделей по заданному авто
==== function GetModelAssoc($aData) ====
+
 
==== function GetModelPicAssoc($aData) ====
+
 
==== function GetModelInfo($aData) ====
+
Параметры:<br>
==== function GetModelDetails($aData,$aCat=false,$aCatTitles=false) ====
+
id_tof - идентификатор производителя<br>
==== function GetModelDetailAssoc($aData,$aCat=false) ====
+
 
==== function GetApplicability($aData) ====
+
==== GetModel($aData) ====
==== function GetModelDetail($aData,$aCat=false) ====
+
Выборка модели
==== function GetTree($aData) ====
+
 
==== function GetTreeAssoc() ====
+
Параметры:<br>
==== function GetTreeTruck($aData) ====
+
id_tof - идентификатор производителя<br>
==== function GetTreeParts($aData, $aCats=false, $bTruck=false) ====
+
id_model - идентификатор модели авто<br>
==== function GetTreePartsRubricator($aData, $aCats=false) ====
+
 
==== function GetPartCriterias($aData) ====
+
==== GetModelAssoc($aData) ====
==== function GetImages($aData, $aCats=false, $bAssoc=TRUE) ====
+
==== GetModelPicAssoc($aData) ====
==== function GetArt($aData) ====
+
==== GetModelInfo($aData) ====
==== function GetArtName($aData) ====
+
==== GetModelDetails($aData,$aCat=false,$aCatTitles=false) ====
==== function GetArts($aCodes) ====
+
Выборка модификаций по заданной модели
==== function GetPartInfo($aData,$aCats=false) ====
+
 
==== function GetCross($aData,$aCats=false) ====
+
Параметры:<br>
==== function GetCriterias($aData) ====
+
id_tof - идентификатор производителя<br>
==== function GetOriginals($aData,$aCats=false) ====
+
id_model - идентификатор модели<br>
==== function GetIdMakeByIdModel($iIdModel) ====
+
 
==== function AssocArtIdItemCode($aData) ====
+
==== GetModelDetailAssoc($aData,$aCat=false) ====
==== function GetCriteriasDBTOF($aData,$sLang='en') ====
+
==== GetApplicability($aData) ====
==== function GetModelDetailsDBTOF($aData,$aCat=false,$sLang='en') ====
+
Выборка применяемости по заданному артикулу
==== function GetApplicabilityDBTOF($aData,$sLang='en') ====
+
 
==== function GetModificationAssoc($aData) ====
+
Параметры:<br>
==== function GetSelectCar($aData) ====
+
art_id - идентификатор артикула<br>
==== function GetYears($sModel) ====
+
 
 +
==== GetModelDetail($aData,$aCat=false) ====
 +
Выборка модификации авто
 +
 
 +
Параметры:<br>
 +
id_model - идентификатор модели<br>
 +
id_model_detail - идентификатор модификации<br>
 +
 
 +
==== GetTree($aData) ====
 +
Выборка дерева запчастей
 +
 
 +
Параметры:<br>
 +
id_model_detail - идентификатор модификации<br>
 +
 
 +
==== GetTreeAssoc() ====
 +
==== GetTreeTruck($aData) ====
 +
==== GetTreeParts($aData, $aCats=false, $bTruck=false) ====
 +
Выборка деталей по заданной модификации и веткам дерева
 +
 
 +
Параметры:<br>
 +
id_part - идентификатор ветки дерева текдока<br>
 +
id_model_detail - идентификатор модификации<br>
 +
 
 +
==== GetTreePartsRubricator($aData, $aCats=false) ====
 +
==== GetPartCriterias($aData) ====
 +
==== GetImages($aData, $aCats=false, $bAssoc=TRUE) ====
 +
Выборка изображений по заданному артикулу
 +
 
 +
 
 +
Параметры:<br>
 +
aIdGraphic - массив идентификаторов артикулов<br>
 +
 
 +
==== GetArt($aData) ====
 +
==== GetArtName($aData) ====
 +
==== GetArts($aCodes) ====
 +
==== GetPartInfo($aData,$aCats=false) ====
 +
==== GetCross($aData,$aCats=false) ====
 +
Выборка аналогов запчастей(кроссов) по заданному артикулу
 +
 
 +
Параметры:<br>
 +
sCode - артикул<br>
 +
 
 +
==== GetCriterias($aData) ====
 +
Выборка характеристик по заданному артикулу
 +
 
 +
 
 +
Параметры:<br>
 +
sCode - артикул<br>
 +
 
 +
==== GetOriginals($aData,$aCats=false) ====
 +
Выборка оригинальных номеров по заданному артикулу
 +
==== GetIdMakeByIdModel($iIdModel) ====
 +
==== AssocArtIdItemCode($aData) ====
 +
Ассоциативный массив идентификаторов товаров по заданным артикулам
 +
==== GetCriteriasDBTOF($aData,$sLang='en') ====
 +
==== GetModelDetailsDBTOF($aData,$aCat=false,$sLang='en') ====
 +
==== GetApplicabilityDBTOF($aData,$sLang='en') ====
 +
==== GetModificationAssoc($aData) ====
 +
Ассоциативный массив модификаций по заданной модели
 +
==== GetSelectCar($aData) ====
 +
Получить информацию по выбранному авто.
 +
==== GetYears($sModel) ====
 +
Выборка годов по моделям. Используется в подборе по авто
  
 
=== Test.php ===
 
=== Test.php ===
  
==== function Index() ====
+
==== Index() ====
==== function SetElitParams() ====
+
==== SetElitParams() ====
==== function SetElitImage() ====
+
==== SetElitImage() ====
==== function GetElitImages() ====
+
==== GetElitImages() ====
==== function ProcessExcel($iTimer) ====
+
==== ProcessExcel($iTimer) ====
==== function GetPriceTableByCode() ====
+
==== GetPriceTableByCode() ====
==== function GetSessionID() ====
+
==== GetSessionID() ====
==== function GetCodePrice($sSID,$sCode,<nowiki>$sBrand=''</nowiki>) ====
+
==== GetCodePrice($sSID,$sCode,<nowiki>$sBrand=''</nowiki>) ====
==== function GetCodesByCode($sSID,$sCode) ====
+
==== GetCodesByCode($sSID,$sCode) ====
==== function GetPriceByCode($aCodes) ====
+
==== GetPriceByCode($aCodes) ====
  
 
=== User.php ===
 
=== User.php ===
  
 
==== $aErrorTr ====
 
==== $aErrorTr ====
==== function __construct() ====
+
==== __construct() ====
==== function Login() ====
+
==== Login() ====
==== function DoLogin() ====
+
==== DoLogin() ====
==== function UloginLogin() ====
+
==== UloginLogin() ====
==== function Logout() ====
+
==== Logout() ====
==== function NewAccount() ====
+
==== NewAccount() ====
==== function NewAccountError() ====
+
==== NewAccountError() ====
==== function DoNewAccount($bAutoCreate=false) ====
+
==== DoNewAccount($bAutoCreate=false) ====
==== function ConfirmRegistration() ====
+
==== ConfirmRegistration() ====
==== function RestorePassword() ====
+
==== RestorePassword() ====
==== function NotifyConfirmedProfileFill($iIdUser) ====
+
==== NotifyConfirmedProfileFill($iIdUser) ====
==== function ChangePassword() ====
+
==== ChangePassword() ====
==== function ChangeLogin() ====
+
==== ChangeLogin() ====
==== function NewPassword() ====
+
==== NewPassword() ====
==== function CheckLogin() ====
+
==== CheckLogin() ====
==== function ChangeLevelPrice() ====
+
==== ChangeLevelPrice() ====
==== function RecalcCart($iIdUser,$iIdUserNotManager = 0) ====
+
==== RecalcCart($iIdUser,$iIdUserNotManager = 0) ====
  
 
=== VinRequest.php ===
 
=== VinRequest.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function Index() ====
+
==== Index() ====
==== function Preview() ====
+
==== Preview() ====
==== function Manager() ====
+
==== Manager() ====
==== function ManagerSave($bRedirect=true) ====
+
==== ManagerSave($bRedirect=true) ====
==== function ManagerSend() ====
+
==== ManagerSend() ====
==== function ManagerRefuse() ====
+
==== ManagerRefuse() ====
==== function ManagerRelease($iId) ====
+
==== ManagerRelease($iId) ====
==== function ManagerMobileNotification($aVinRequest) ====
+
==== ManagerMobileNotification($aVinRequest) ====
==== function GetVinIdList($bReturnArray=false) ====
+
==== GetVinIdList($bReturnArray=false) ====
==== function ManagerRemember() ====
+
==== ManagerRemember() ====
==== function ManagerDelivery() ====
+
==== ManagerDelivery() ====
==== function ManagerSendPreview() ====
+
==== ManagerSendPreview() ====
==== function PackageCreate() ====
+
==== PackageCreate() ====
==== function Get_aTypeBody() ====
+
==== Get_aTypeBody() ====
==== function Get_aTypeKpp() ====
+
==== Get_aTypeKpp() ====
==== function Get_aTypeWheel() ====
+
==== Get_aTypeWheel() ====
==== function Get_Months() ====
+
==== Get_Months() ====
==== function GetMarka() ====
+
==== GetMarka() ====
==== function ChangeSelect() ====
+
==== ChangeSelect() ====
==== function ChangeSelectOwnAuto() ====
+
==== ChangeSelectOwnAuto() ====
  
 
== Каталог system ==
 
== Каталог system ==
Строка 2021: Строка 2419:
 
==== $disableSSLChecks ====
 
==== $disableSSLChecks ====
 
==== $debug ====
 
==== $debug ====
==== function __construct($key, $secret, $apiHost = null, $apiVersion = null, $apiFormat = null) ====
+
==== __construct($key, $secret, $apiHost = null, $apiVersion = null, $apiFormat = null) ====
==== function sendRequest($url, array $params) ====
+
==== sendRequest($url, array $params) ====
==== function handleBinotelCallback() ====
+
==== handleBinotelCallback() ====
==== function disableSSLChecks() ====
+
==== disableSSLChecks() ====
==== function getSingnatureByRequest(array $params) ====
+
==== getSingnatureByRequest(array $params) ====
  
 
=== Content.php ===
 
=== Content.php ===
Строка 2032: Строка 2430:
 
==== $aAccountMenu ====
 
==== $aAccountMenu ====
 
==== $aCrumbs ====
 
==== $aCrumbs ====
==== function __construct() ====
+
==== __construct() ====
==== function CreateMainMenu() ====
+
==== CreateMainMenu() ====
==== function DropdownGetCustom() ====
+
==== DropdownGetCustom() ====
==== function DropdownGetChilds($iIdParent) ====
+
==== DropdownGetChilds($iIdParent) ====
==== function AccountGetChilds($iIdParent) ====
+
==== AccountGetChilds($iIdParent) ====
==== function AddCrumb($sName,<nowiki>$sLink=''</nowiki>) ====
+
==== AddCrumb($sName,<nowiki>$sLink=''</nowiki>) ====
==== function AssignCrumb() ====
+
==== AssignCrumb() ====
==== function DelAllCrumbs() ====
+
==== DelAllCrumbs() ====
==== function ParseTemplate($bRefreshCartAjax=false) ====
+
==== ParseTemplate($bRefreshCartAjax=false) ====
==== function Init() ====
+
==== Init() ====
==== function IsChangeableLogin($sLogin) ====
+
==== IsChangeableLogin($sLogin) ====
==== function CallOldReplacer($sObject,$sOutput) ====
+
==== CallOldReplacer($sObject,$sOutput) ====
==== function FirstNwords($sString, $iWord) ====
+
==== FirstNwords($sString, $iWord) ====
==== function GetOrderStatus($sKey) ====
+
==== GetOrderStatus($sKey) ====
==== function PrintPartName($aRow) ====
+
==== PrintPartName($aRow) ====
==== function CorrectSeoUrl($sText,$sType) ====
+
==== CorrectSeoUrl($sText,$sType) ====
==== function LoadBanners() ====
+
==== LoadBanners() ====
==== function Translit($str) ====
+
==== Translit($str) ====
==== function CreateSeoUrl($sAction,$aData,$bAbsolute=0) ====
+
==== CreateSeoUrl($sAction,$aData,$bAbsolute=0) ====
==== function CustomizeTable ($oTable) ====
+
==== CustomizeTable ($oTable) ====
==== function RedirectOnSlash() ====
+
==== RedirectOnSlash() ====
==== function ClearTimer() ====
+
==== ClearTimer() ====
==== function ShowTimer(<nowiki>$sMessage=''</nowiki>) ====
+
==== ShowTimer(<nowiki>$sMessage=''</nowiki>) ====
==== function AddCrumbAndCaption() ====
+
==== AddCrumbAndCaption() ====
==== function GetMonthDay(<nowiki>$iTimestamp=''</nowiki>) ====
+
==== GetMonthDay(<nowiki>$iTimestamp=''</nowiki>) ====
==== function GetYear(<nowiki>$iTimestamp=''</nowiki>) ====
+
==== GetYear(<nowiki>$iTimestamp=''</nowiki>) ====
==== function FixChars($str) ====
+
==== FixChars($str) ====
==== function CheckMessageUrl() ====
+
==== CheckMessageUrl() ====
==== function ProcessDropDownAdditional() ====
+
==== ProcessDropDownAdditional() ====
==== function SetMetaTagsPage($sKey,$aData=array()) ====
+
==== SetMetaTagsPage($sKey,$aData=array()) ====
==== function SetH1($sKey, $aData=array(),<nowiki>$sName=''</nowiki>) ====
+
==== SetH1($sKey, $aData=array(),<nowiki>$sName=''</nowiki>) ====
  
 
=== Cron.php ===
 
=== Cron.php ===
  
==== function Cron() ====
+
==== Cron() ====
==== function CloseCartPackage($iId,$sOrderStatus='refused') ====
+
==== CloseCartPackage($iId,$sOrderStatus='refused') ====
==== function SendAutopayPackage($iIdUser) ====
+
==== SendAutopayPackage($iIdUser) ====
==== function ClearOldData() ====
+
==== ClearOldData() ====
==== function SendDbBackup() ====
+
==== SendDbBackup() ====
==== function NotifyPendingOrder() ====
+
==== NotifyPendingOrder() ====
==== function NotifyLastVisit() ====
+
==== NotifyLastVisit() ====
==== function DeleteTemporaryCustomer() ====
+
==== DeleteTemporaryCustomer() ====
==== function ClearCustomerData() ====
+
==== ClearCustomerData() ====
==== function MoveExpiredCart() ====
+
==== MoveExpiredCart() ====
==== function ClearOldPriceQueue() ====
+
==== ClearOldPriceQueue() ====
==== function ClearOldServiceLog() ====
+
==== ClearOldServiceLog() ====
==== function ClearOldMailDelayed() ====
+
==== ClearOldMailDelayed() ====
==== function ClearOldUserNotification() ====
+
==== ClearOldUserNotification() ====
==== function ClearOldAutoSearchLog() ====
+
==== ClearOldAutoSearchLog() ====
==== function ClearOldPriceSearchLog() ====
+
==== ClearOldPriceSearchLog() ====
==== function ClearAllOld() ====
+
==== ClearAllOld() ====
==== function AssociateDelayedPrices() ====
+
==== AssociateDelayedPrices() ====
==== function AssociateDelayedPricesMinutely() ====
+
==== AssociateDelayedPricesMinutely() ====
==== function UpdatePriceMargin() ====
+
==== UpdatePriceMargin() ====
  
 
=== Currency.php ===
 
=== Currency.php ===
Строка 2091: Строка 2489:
 
==== $aCurrencyAssoc ====
 
==== $aCurrencyAssoc ====
 
==== $aCurrency ====
 
==== $aCurrency ====
==== function __construct() ====
+
==== __construct() ====
==== function InitCurrency() ====
+
==== InitCurrency() ====
==== function BasePrice($dPrice=0,$iIdCurrency=1) ====
+
==== BasePrice($dPrice=0,$iIdCurrency=1) ====
==== function Price($dPrice=0,$iIdCurrency=1) ====
+
==== Price($dPrice=0,$iIdCurrency=1) ====
==== function PrintPrice($dPrice=0, $iIdCurrency=0, $iRoundDigit=2, <nowiki>$sOutputType=''</nowiki>) ====
+
==== PrintPrice($dPrice=0, $iIdCurrency=0, $iRoundDigit=2, <nowiki>$sOutputType=''</nowiki>) ====
==== function BillRound($dPrice=0) ====
+
==== BillRound($dPrice=0) ====
==== function GetPriceWithoutSymbol($dPrice=0) ====
+
==== GetPriceWithoutSymbol($dPrice=0) ====
==== function CurrecyConvert($L, $sType='RUB') ====
+
==== CurrecyConvert($L, $sType='RUB') ====
==== function SemanticUkr($i,&$words,&$fem,$f, $sType='RUB') ====
+
==== SemanticUkr($i,&$words,&$fem,$f, $sType='RUB') ====
==== function GetExchangeRate($iIdCurrencyFrom,$iIdCurrencyTo) ====
+
==== GetExchangeRate($iIdCurrencyFrom,$iIdCurrencyTo) ====
==== function PrintCurrencyPrice($dPrice=0,$sCurrency='USD') ====
+
==== PrintCurrencyPrice($dPrice=0,$sCurrency='USD') ====
==== function PriceContent($sCurrency,$sPrice) ====
+
==== PriceContent($sCurrency,$sPrice) ====
==== function PrintSymbol($dPrice=0,$iIdCurrency=0) ====
+
==== PrintSymbol($dPrice=0,$iIdCurrency=0) ====
  
 
=== Discount.php ===
 
=== Discount.php ===
  
 
==== $aDiscount ====
 
==== $aDiscount ====
==== function Refresh() ====
+
==== Refresh() ====
==== function GetDiscount($dAmount) ====
+
==== GetDiscount($dAmount) ====
==== function CustomerDiscount($aUser,<nowiki>$iProvider=''</nowiki>) ====
+
==== CustomerDiscount($aUser,<nowiki>$iProvider=''</nowiki>) ====
==== function Index() ====
+
==== Index() ====
  
 
=== Exchange.php ===
 
=== Exchange.php ===
Строка 2121: Строка 2519:
 
==== $bAutoImport ====
 
==== $bAutoImport ====
 
==== $aType ====
 
==== $aType ====
==== function Auth() ====
+
==== Auth() ====
==== function __construct() ====
+
==== __construct() ====
==== function PrintFlush($s) ====
+
==== PrintFlush($s) ====
==== function PrintFlush2($s) ====
+
==== PrintFlush2($s) ====
==== function Progress($i,$iMax,$bTimer=true) ====
+
==== Progress($i,$iMax,$bTimer=true) ====
==== function OnFileName() ====
+
==== OnFileName() ====
==== function Index() ====
+
==== Index() ====
==== function SendRequest($url, $params) ====
+
==== SendRequest($url, $params) ====
==== function SalePrice() ====
+
====  SalePrice() ====
==== function SaleBrands() ====
+
====  SaleBrands() ====
==== function SaleProviders() ====
+
====  SaleProviders() ====
==== function SaleCustomers() ====
+
====  SaleCustomers() ====
==== function SaleOrders () ====
+
====  SaleOrders () ====
==== function SaleSuccess() ====
+
==== SaleSuccess() ====
==== function CatalogFile() ====
+
====  CatalogFile() ====
==== function CatalogImport() ====
+
==== CatalogImport() ====
==== function CatalogImportBrands() ====
+
==== CatalogImportBrands() ====
==== function CatalogImportProviders() ====
+
==== CatalogImportProviders() ====
==== function CatalogImportCustomers() ====
+
==== CatalogImportCustomers() ====
==== function CatalogImportPrice() ====
+
==== CatalogImportPrice() ====
==== function CatalogImportOrders() ====
+
==== CatalogImportOrders() ====
==== function CatalogImportCrosses() ====
+
==== CatalogImportCrosses() ====
==== function CatalogImportAllCrosses($oXml) ====
+
==== CatalogImportAllCrosses($oXml) ====
  
 
=== Language.php ===
 
=== Language.php ===
Строка 2156: Строка 2554:
 
==== $sBaseLocale ====
 
==== $sBaseLocale ====
 
==== $aOldParser ====
 
==== $aOldParser ====
==== function __construct(<nowiki>$sBaseLocale = ''</nowiki>) ====
+
==== __construct(<nowiki>$sBaseLocale = ''</nowiki>) ====
==== function GetLocale() ====
+
==== GetLocale() ====
==== function GetMessage($sKey, <nowiki>$sPage = ""</nowiki>) ====
+
==== GetMessage($sKey, <nowiki>$sPage = ""</nowiki>) ====
==== function GetDMessage($sKey, <nowiki>$sPage = ""</nowiki>) ====
+
==== GetDMessage($sKey, <nowiki>$sPage = ""</nowiki>) ====
==== function GetText($sKey, <nowiki>$sPage = ""</nowiki>) ====
+
==== GetText($sKey, <nowiki>$sPage = ""</nowiki>) ====
==== function GetContextHint($sKey, $bUnique = false) ====
+
==== GetContextHint($sKey, $bUnique = false) ====
==== function GetOrderStatus($sKey) ====
+
==== GetOrderStatus($sKey) ====
==== function PrintPrice($dAmount, $bAbs=false, $bInvert=false, <nowiki>$sOutputType='', $sPriceType=''</nowiki>) ====
+
==== PrintPrice($dAmount, $bAbs=false, $bInvert=false, <nowiki>$sOutputType='', $sPriceType=''</nowiki>) ====
==== function PrintCurrencyPrice($dAmount,$sCurrency='USD') ====
+
==== PrintCurrencyPrice($dAmount,$sCurrency='USD') ====
==== function PrintPriceByType($dAmount,$sPriceType='USD') ====
+
==== PrintPriceByType($dAmount,$sPriceType='USD') ====
==== function Price($dAmount, $sPriceType='',$bAbs=false,$bInvert=false) ====
+
==== Price($dAmount, $sPriceType='',$bAbs=false,$bInvert=false) ====
==== function GetDate(<nowiki>$iTimestamp = '', $iTimeZone = '',$bCurrentForce=false</nowiki>) ====
+
==== GetDate(<nowiki>$iTimestamp = '', $iTimeZone = '',$bCurrentForce=false</nowiki>) ====
==== function GetDateTime($iTimestamp = '', $iTimeZone = '') ====
+
==== GetDateTime($iTimestamp = '', $iTimeZone = '') ====
==== function GetPostDate($sPostDate,<nowiki>$iTimeZone=''</nowiki>) ====
+
==== GetPostDate($sPostDate,<nowiki>$iTimeZone=''</nowiki>) ====
==== function GetPostDateTime($sPostDate,<nowiki>$iTimeZone=''</nowiki>) ====
+
==== GetPostDateTime($sPostDate,<nowiki>$iTimeZone=''</nowiki>) ====
==== function FormatDate($sSearchDate, $sFormat='Y-m-d H:i:s') ====
+
==== FormatDate($sSearchDate, $sFormat='Y-m-d H:i:s') ====
==== function GetLocalizedRow($aData) ====
+
==== GetLocalizedRow($aData) ====
==== function GetLocalizedAll($aData, $bReturnSql=false, <nowiki>$sAssocField = ''</nowiki>) ====
+
==== GetLocalizedAll($aData, $bReturnSql=false, <nowiki>$sAssocField = ''</nowiki>) ====
==== function Array2Hash($data, <nowiki>$key_array = ''</nowiki>) ====
+
==== Array2Hash($data, <nowiki>$key_array = ''</nowiki>) ====
==== function GetCommentLink($sSection, $sId, $sLink,$bHideUnapproved=false) ====
+
==== GetCommentLink($sSection, $sId, $sLink,$bHideUnapproved=false) ====
==== function GetConstant($sKey,<nowiki>$sDefaultValue=''</nowiki>) ====
+
==== GetConstant($sKey,<nowiki>$sDefaultValue=''</nowiki>) ====
==== function GetMessageArray($aArrayKey, <nowiki>$sPage = ""</nowiki>) ====
+
==== GetMessageArray($aArrayKey, <nowiki>$sPage = ""</nowiki>) ====
==== function IncludeLocaleMap($sMap) ====
+
==== IncludeLocaleMap($sMap) ====
==== function AddOldParser($sObject,$iId) ====
+
==== AddOldParser($sObject,$iId) ====
==== function ReplaceOldParser($sOutput) ====
+
==== ReplaceOldParser($sOutput) ====
==== function GetCatalogMessage($sKey, <nowiki>$sPage = ""</nowiki>) ====
+
==== GetCatalogMessage($sKey, <nowiki>$sPage = ""</nowiki>) ====
==== function GetTranslit($sString, $sCharset='utf-8') ====
+
==== GetTranslit($sString, $sCharset='utf-8') ====
==== function PrintPriceCalc($aPrice) ====
+
==== PrintPriceCalc($aPrice) ====
==== function SetText($sKey, <nowiki>$sContent = ""</nowiki>) ====
+
==== SetText($sKey, <nowiki>$sContent = ""</nowiki>) ====
==== function getContextHintProvider($iIdProvider = 0,$iId=0) ====
+
==== getContextHintProvider($iIdProvider = 0,$iId=0) ====
==== function GetMonthDayFromPostDate(<nowiki>$sPostDate='',$iTimeZone=''</nowiki>) ====
+
==== GetMonthDayFromPostDate(<nowiki>$sPostDate='',$iTimeZone=''</nowiki>) ====
==== function GetYearFromPostDate(<nowiki>$sPostDate='',$iTimeZone=''</nowiki>) ====
+
==== GetYearFromPostDate(<nowiki>$sPostDate='',$iTimeZone=''</nowiki>) ====
  
 
=== Webservice.php ===
 
=== Webservice.php ===
  
==== function __construct() ====
+
==== __construct() ====
==== function GetPricePartmaster($sCode,<nowiki>$sPref=''</nowiki>) ====
+
==== GetPricePartmaster($sCode,<nowiki>$sPref=''</nowiki>) ====
  
 
= Каталог cron =
 
= Каталог cron =

Текущая версия на 11:58, 20 декабря 2017

Содержание

Структура каталогов

cache Файловый кеш
class Основные классы обработчики
cron Скрипты создания backup
css Файлы css дизайна
image Картинки дизайна
imgbank Файлы выгрузок/загрузок
include Файлы SQL запросов
js Файлы js дизайна
lib Библиотеки php, общие для всех проектов
libp Библиотеки js, общие для всех проектов
mpanel Админ панель MPanel
single Дополнительные библиотеки подключаемые только в текущем проекте
spec Связь ссылок на сайте с обработчиками (Роутинг)
template Шаблоны внешнего вида(подключенный дизайн)
verstka Исходные файлы верстки


Файлы главной директории

.htaccess Настройки WEB сервера и дополнительные параметры перенаправления для ЧПУ страниц
action_includer.php Механизм связи ссылок на сайте(spec) и обработчиков(class)
connect.php Настройки подключения к базе данных, TecDoc, настройки языка и cookies
connect_sample.php Пример файла подключения
favicon.ico Иконка сайта для браузера
index.php Главный исполнительный файл.
init.php Инициализация библиотек и ядра.
xajax_request_parser.php Обработчик xajax



Каталог cache

Файловый кеш, может использоваться для кеширования главного меню, некоторых данных TecDoc и других данных с низкой частотой обновления, но долгим по времени выполнения запросом. Файлы разбиваются по директориям. Названия файлов и директорий указывается программистом в исходном коде. Файлы содержат сериализованные данные.

Пример использования:

$sCacheName='название_файла_кеша';
$sCacheDir='название_директории_кеша'

if(!($aBrands=FileCache::GetValue($sCacheDir, $sCacheName))) {
    $aBrands=Db::GetAll($sSql);
    FileCache::SetValue($sCacheDir, $sCacheName, $aBrands);
}

В данном примере мы получаем массив $aBrands из файлового кеша, а в случае отсутствия необходимого кеша - выполняется запрос получения $aBrands из базы данных и сохранение данных в кеш.

Каталог class

Каталог core

Каталог locale_map

  • directory_site_category.php
  • directory_site.php
  • manual.php
  • rating.php
  • translate_message.php
  • translate_text.php

Каталог mpanel

Каталог spec

  • admin.php
  • comment.php
  • config.php
  • constant.php
  • content_editor.php
  • currency.php
  • directory_site_category.php
  • directory_site_config.php
  • directory_site.php
  • drop_down_additional.php
  • drop_down_item.php
  • drop_down.php
  • language.php
  • locale_global.php
  • news.php
  • splash.php
  • template.php
  • translate_message.php
  • translate_text.php
  • trash.php

action_array.php

includer.php

xajax_request_parser.php

Каталог sql

Каталог init_database

  • Каталог update
  • capcha_hash.php
  • message.php
  • news.php
  • price_statistic.php
  • sms_delayed.php
  • vin_request.php

CoreAdminLanguageDenied.php

CoreAdmin.php

CoreAssocLanguage.php

CoreComment.php

CoreConfig.php

CoreConstant.php

CoreCurrency.php

CoreDirectorySiteCategory.php

CoreDirectorySite.php

CoreDropDownAdditional.php

CoreDropDown.php

CoreLanguage.php

CoreNews.php

CoreTemplate.php

CoreTranslateMessage.php

CoreTranslateText.php

CoreTrash.php

CoreUserManagerPrivilege.php

CoreUserManagerRolePrivilege.php

CoreUserRole.php

CoreVinRequest.php

Admin.php

$sTableName

$sAdditionalLink

$sTablePrefix

$sTableId

$aChildTable

$sAction

$sWinHead

$sPath

$sSubMenu

$aCheckField

$sBeforeAddMethod

$aFCKEditors

$sSqlPath

$sScriptForAdd

$bAlreadySetMessage

$sNumSql

$aSearch

$sSearchSQL

$sAddonPath

$aAdmin

hasAccessTo($sAction)

Admin()

AdminRedirect($sAction='', $aMessage=array())

PreIndex()

AfterIndex()

SetDefaultTable($oTable, $aWhereData = array())

ProcessTemplateForm($sPath)

Add($bEdit = false)

Edit()

Apply()

Search()

SearchForm()

BeforeApply()

AfterApply($aBeforeRow,$aAfterRow)

BeforeAddAssign(&$aData)

CheckField()

Delete()

Trash()

Archive()

UnArchive()

ActionToClass($sBaseAction)

Message($sType = '', $sMessage = '',$sOldObject='')

GetFilter()

ProcessFCKEditors()

initLocaleGlobal()

GetFCKEditor($sFieldName='description',$sFieldValue='',$iWidth=700,$iHeight=600,$sFCKEditorEnterMode='')

GetCKEditor($sFieldName='description',$sFieldValue='',$iWidth=700,$iHeight=600,$sFCKEditorEnterMode='')

DisplayChange()

OrderChange()

IsMpanelUser($sLogin,$sPassword)

SearchStrongChange()

Auth.php

$iRememberDays

Количество дней хранения cookies. По умолчанию имеет значение 90 дней.

$aUser

$sWhere

$bIgnoreCookie

Login($sLogin, $sPassword, $bIgnoreVisible=false, $bIgnoreEmailConfirmation=true, $bSalt=false, $bCheckPassword=true, $sOtherFieldAsLogin='')

Logout()

NeedAuth($sType='')

Проверка типа авторизованного пользователя. Если тип совпадает с параметром $sType, то функция возвращает true, если нет - вызывает LoginErrorRedirect(), где формируется сообщение об ошибке.

LoginErrorRedirect($bSaveReturn=true)

IsAuth()

Проверяет авторизован ли пользователь. Если да, возвращает true, если нет - false.

GetUserProfile($iId,$sType='customer')

Получение информации о пользователе с указанным id в параметре $iId.

IsUser($sLogin,$sPassword,$bIgnoreVisible=false,$bSalt=false,$sOtherFieldAsLogin='')

Проверка существования пользователя с указанным логином и паролем.

Параметры:

  • $sLogin - логин;
  • $sPassword - пароль;
  • $bIgnoreVisible - указывает учитывать или нет видимость пользователя. По умолчанию false, что означает учитывать видимость;
  • $bSalt - ...
  • $sOtherFieldAsLogin - ...

IsValidCookie($sCookie)

Проверка валидности cookie.

RefreshSession($aUser)

Обновить сессию пользователя, указанного в параметре $aUser.

RefreshCookie($sLogin,$sPassword,$iIdCustomer)

Обновить cookie пользователя с указанными логином, паролем и id.

FilterLetters($input)

GetIp()

AutoCreateUser()

Автоматическое создание пользователя с рандомным логином и паролем. Необходимо для не зарегистрированных пользователей в разделах сайта по продаже, где нужна регистрация. Возвращает массив стандартного аккаунта пользователя.

CheckLogin($sLogin)

Проверка существования пользователя с логином $sLogin. Если логин занят, возвращает false, логин свободный - true.

GenerateLogin()

Сгенерировать случайный логин.

GeneratePassword()

Сгенерировать случайный пароль.

UpdateLastVisit($aUser)

Обновить в базе время последнего посещения на текущее для пользователя $aUser.

UpdateCustomerReal($iUser)

Подтверждение пользователя с id указанным в параметре $iUser.

CheckPermissions($iIdAction)

Проверка прав доступа к action, id которого $iIdAction.

Base.php

$db

$oOracleDb

$oTecdocDb

$tpl

$language

$LC

$aGeneralConf

$aDbConf

$oResponse

$oCurrency

$oContent

$aConst

$aConstant

Массив переменных из таблицы констант.

$aRequest

$sText

$aData

Массив глобальных переменных для всех объектов, которые наследуют класс Base.

$sProjectName

$aMenuSection

$bRightSectionVisible

$sBaseTemplate

$bXajaxPresent

$aMessageJavascript

$sOuterJavascript

$sServerQueryString

$aTopPageTemplate

$sZirHtml

PreInit()

Init()

Инициализация базовых переменных.

ProcessAjax()

Process()

EscapeAll(&$aData)

UnescapeAll(&$aData)

FixParseStrBug(&$aArray)

Redirect($sUrl,$is_check_lower=1)

Стандартная функция перенаправления.

Параметры:

  • $sUrl - адрес перехода;
  • $is_check_lower - указывает нужно ли привести все буквы указанного URL в нижний регистр. По умолчанию заданно значение 1, что значит по умолчанию приводить в нижний регистр.

LocalLog($sText)

GetSql($sScript, $aData = array())

UpdateConstant($sKey, $sValue)

Обновление или создание констант, которые используются во всем проекте.

GetConstant($sKey,$sDefaultValue='')

Message($aMessage=array(),$bGetText=true)

Показывает уведомления (NOTICE), предупреждения (WARNING), ошибки (ERROR) для Index (MI), форм (MF) и таблиц (MT).

Параметры:

  • $aMessage - ассоциативный массив ключ (MI_NOTICE, MI_WARNING, MI_ERROR, MF_NOTICE ... , MT_WARNING, ...) - значение (текст сообщения);
  • $bGetText - указывает использовать ли функцию getText. По умолчанию true - использовать.

RemoveMessageFromUrl($sUrl)

Удалить массив сообщений aMessage из указанного в параметре URL.

SendSiteInfo()

MstarprojectBase()

BaseTemp.php

Класс для размещения общих функций, когда для них нет конкретного класса.

EnumToArray($sTable, $sField)

Функция конвертирования из DB enum/set в массив.

Параметры:

  • String $sTable - из какой таблицы;
  • String $sField - какие поля должны быть конвертированы.

Cache.php

Cache()

GetValue($sSection,$sKey)

SetValue($sSection,$sKey,$sValue,$iValidTill=false)

Capcha.php

$aMathematicOperator

Массив математических операторов для создания уравнения. По умолчанию заданны операторы "+" и "-".

__construct()

GetMathematic($sTemplate='addon/capcha/mathematic.tpl')

CheckMathematic()

Проверка введенного пользователем значения уравнения капчи.

GetRandomOperator()

Возвращает случайный математический оператор из массива $aMathematicOperator.

GetRandomOperand()

Возвращает случайное число.

GetValidationHash($sMathematicFormula)

ClearOldHash()

AddHash($sType='mathematic',$sHash)

IsFreeFromCapcha()

SaveLastCapcha()

Сохранить последнюю капчу, для исключения повторов.

GetGraphics()

CheckGraph()

Category.php

$iMaxSubCategorie

Максимально значение подкатегорий для родительского элемента.

__construct()

Index()

SetAddingColumn()

initLocaleGlobal()

BeforeAdd()

Move ()

Apply()

Delete()

Comment.php

__construct()

GetCommentList($sSection,$sId,$bXajaxResponse=false,$bHideUnapproved=false)

GetCommentListTree($sSection,$sId,$bXajaxResponse=false)

GetCommentLink($sSection,$sId,$sLink,$bHideUnapproved=false)

Post()

PopupPost()

GetCommentHash($sSection,$aId)

ContactForm.php

__construct()

OutputForm($sName)

ProcessForm($sName)

DateFormat.php

GetBaseDate($sFormat,$iTimestamp='',$iTimeZone='')

GetDate($iTimestamp='',$iTimeZone='')

GetTime($iTimestamp='',$iTimeZone='')

GetDateTime($iTimestamp='',$iTimeZone='')

FormatSearch($sSearchDate, $sFormat='Y-m-d H:i:s')

FormatSearchNow()

FormatSearchTomorrow()

GetFileDateTime($iTimestamp='',$iTimeZone='',$bShowSecond=true)

GetPostDate($sPostDate,$iTimeZone='')

GetPostDateTime($sPostDate,$iTimeZone='')

GetSqlDate($sNameField="post_date")

GetSqlStrToDate($sPostDate)

GetNextMonth($sPostDate)

Seconds2Times($seconds)

Преобразование секунд $seconds в секунды/минуты/часы/дни/года.

Возвращает массив $times:

  • $times[0] - секунды
  • $times[1] - минуты
  • $times[2] - часы
  • $times[3] - дни
  • $times[4] - года

NameIntervalDate($aDiffDate)

Db.php

Execute($sSql,$aInput=false)

Выполнить SQL запрос.

Параметры:

  • $sSql - SQL запрос для выполнения, или возможно массив, в котором содержится запрос ($sql[0] будет содержать SQL запрос);
  • $aInput - массив входных данных для связывания. Пустые элементы будут установлены в null.

Возвращает RecordSet или false.

GetAll($sSql)

Выполняет SQL запрос и возвращает результат в виде массива ([0]=>array(field=>value, ...),[1]=>array(....)).

GetAssoc($sSql, $aData=array(), $bReturnSql=false)

Выполняет SQL запрос и получает результат в виде ассоциативного массива array(id1=>array(f1,f2 ...),id2=>array(f1,f2 ...)).

GetRow($sSql)

Выполняет SQL запрос и получает строку таблицы в виде массива array (fild=>value, fild2=>value2 ...).

GetOne($sSql)

Выполняет SQL запрос и получает одно значение.

AutoExecute($sTable, $aFieldValue, $sMode = 'INSERT', $sWhere = FALSE, $bForceUpdate=true, $bMagicQuote=false)

Debug()

LogSql($bEnable=true)

InsertId()

AffectedRow()

StartTrans()

FailTrans()

CompleteTrans()

Escape($aData)

GetInsertSql($oSql, $aField, $bMagicq=true, $sForce=null)

SelectLimit($sSql, $iRow=-1, $iStart=-1, $inputarr=false,$secs2cache=0)

GetTableInfo($sType=)

SetWhere(&$sWhere,$aData,$sDataField,$sPrefix,$sTableField="")

GetDateFormat($sNameField="post_date", $sFormat="")

GetStrToDate($sPostDate, $bReturnDate=false, $sFormat="")

Dbtree.php

$ERRORS

$ERRORS_MES

$table

$table_id

$table_left

$table_right

$table_level

$res

Dbtree($table="", $prefix="")

Clear($data = array())

GetNodeInfo($section_id, $cache = FALSE)

GetParentInfo($section_id, $condition = '', $cache = FALSE)

Insert($section_id, $condition = '', $data = array())

Добавить новый элемент в дерево для элемента с номером $section_id.

Параметры:

  • $section_id - номер родительского элемента;
  • $condition- array('and' => array('id = 0', 'id2 >= 3'), 'or' => array('sec = \'www\, 'sec2 <> \'erere\)), и т.д., где ключ - (AND, OR, т.д.), значение - строка условия;
  • $data - содержит параметры дополнительных полей дерева (если есть): array('filed name' => 'importance', etc)

InsertNear($ID, $condition = '', $data = array())

Добавить новый элемент в дереве возле элемента с идентификационным номером $ID.

Параметры:

  • $ID - номер родительского элемента;
  • $condition- array('and' => array('id = 0', 'id2 >= 3'), 'or' => array('sec = \'www\, 'sec2 <> \'erere\)), и т.д., где ключ - (AND, OR, т.д.), значение - строка условия;
  • $data - содержит параметры дополнительных полей дерева (если есть): array('filed name' => 'importance', etc)

MoveAll($ID, $newParentId, $condition = '')

ChangePosition($id1, $id2)

Изменить позицию элемента.

Параметры:

  • $id1 - ID первого элемента;
  • $id2 - ID второго элемента.

Возвращает true если операция прошла успешно, иначе - false.

ChangePositionAll($id1, $id2, $position = 'after', $condition = '')

Перестановка узлов в пределе того же уровня и ограничение одного из родителей со всеми своими детьми: $id1 стоит перед или после $id2.

Параметры:

  • integer $id1 - ID первого элемента;
  • integer $id2 - ID второго элемента;
  • string $position - 'before' или 'after' $id2;
  • $condition - array('and' => array('id = 0', 'id2 >= 3'), 'or' => array('sec = \'www\, 'sec2 <> \'erere\)), и т.д., где ключ - (AND, OR, т.д.), значение - строка условия;

Возвращает true если операция прошла успешно, иначе - false.

Delete($ID, $condition = '')

Удалить элемент с номером $ID из дерева, не удаляя его потомков.

DeleteAll($ID, $condition = '')

Удалить элемент с номером $ID из дерева и всех его потомков.

Full($fields, $condition = '', $cache = FALSE)

Branch($ID, $fields, $condition = '', $cache = FALSE)

Возвращает все элементы ветви, начиная с элемента с номером $ID.

Parents($ID, $fields, $condition = '', $cache = FALSE)

Возвращает все родительские элементы элемента с номером $ID.

Ajar($ID, $fields, $condition = '', $cache = FALSE, $sOpenLevel='1')

AjarBranch($ID, $fields, $condition = '', $cache = FALSE, $sOpenLevel='1')

RecordCount()

NextRow()

_PrepareCondition($condition, $where = FALSE, $prefix = '')

GetAllData()

GetAssocData()

FullTree($with_space=false)

FullFoSelect($with_space=false)

MoveItem($id,$to=-1)

AddSpaceItem($a,$iSpace=6 )

GetData($sType, $id=1, $fields = '', $condition = '', $cache = false, $iSpace=0, $bAssoc=false, $sOpenLevel='1')

Debug.php

PrintPre($sVariable,$bDie=true,$bReturn=false)

PrintPreTpl($sVariable,$bDie=true)

GetMicrotime()

WriteToLog($sFile,$data)

DirectorySite.php

__construct()

Prepare()

CategoryChange()

ListCategory()

Index()

Preview()

ExcelOld.php

class ExcelOld

$oExcel
$aStyle
$aStyleBold
$aStyleRight
$aStyleLeft
$aStyleBorderThickLeft
$aStyleBorderThickRight
$aStyleFormatText
$oWriter
$oDrawing
Excel()
SetActiveSheetIndex($i=0)
GetActiveSheet()
SetShowSummaryBelow($sState=true)
SetRowOutlineLevel($iRow,$iLevel=1,$bVisible=false)
SetCellValue($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="")
SetCellValueExplicit($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="", $pType=PHPExcel_Cell_DataType::TYPE_STRING)
SetHeaderValue($aHeader=array(), $iRow, $bUtfEncode=true)
SetAutoSize($aHeader)
DuplicateStyleArray($sRange="", $sColor="", $aStyle=array())
SetTitle($sTitle="")
WriterExcel5($sFileNameFull,$bOutput=false)
WriterExcel7($sFileNameFull)
SetDefaultFont($sName, $iSize=0)
ReadExcel5($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true )
ReadExcel7($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true )
SetPrintBreak($sCordinate)
SetRowToRepeat($iRowStart,$iRowEnd)
MergeCell($sRange)
WriterPdf($sFileNameFull,$bOutput=false)
WriterCSV($sFileNameFull,$bOutput=false, $iSheet=0)
WriterHtml($sFileNameFull)
GetRowHeight($iRow)
SetRowHeight($iRow,$dSize)
SetColWidth($sCol,$dSize)
GetReadData()
GetSpreadsheetData()
GetMergeCell()
CreateSheet()
RemoveSheet($iSheet)
SetProtectionFile($sPassword="12345")
SetDrawing($sCordinate,$sFullPath,$iHeight=0)
freezePane($sCell)
RemoveRow($iRow)
CopyRange($sRangeFrom,$sCellTo,$bInsertRow=true)
SetWrapText($sRange)
GetNextColumn($sColumn="")
SetCreateReader()
CreateObjectExcel2007()

class chunkReadFilter

$_startRow
$_endRow
__construct()
readCell($column, $row, $worksheetName = '')
setRows($startRow, $chunkSize)

Excel.php

class Excel

$oExcel
$aStyle
$aStyleBold
$aStyleRight
$aStyleLeft
$aStyleBorderThickLeft
$aStyleBorderThickRight
$aStyleFormatText
$oWriter
$oDrawing
__destruct()
Excel()
SetActiveSheetIndex($i=0)
GetActiveSheet()
SetShowSummaryBelow($sState=true)
SetRowOutlineLevel($iRow,$iLevel=1,$bVisible=false)
SetCellValue($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="")
SetCellValueExplicit($sCordinate, $sValue, $sCharset="", $aStyle=array(), $iRound="", $pType=PHPExcel_Cell_DataType::TYPE_STRING)
SetHeaderValue($aHeader=array(), $iRow, $bUtfEncode=true)
SetAutoSize($aHeader)
DuplicateStyleArray($sRange="", $sColor="", $aStyle=array())
SetTitle($sTitle="")
WriterExcel5($sFileNameFull,$bOutput=false)
WriterExcel7($sFileNameFull,$bOutput=false)
SetDefaultFont($sName, $iSize=0)
ReadExcel5($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true )
ReadExcel7($sFileNameFull, $bReadDataOnly=false, $bCacheOnMemory=true )
SetPrintBreak($sCordinate)
SetRowToRepeat($iRowStart,$iRowEnd)
MergeCell($sRange)
WriterPdf($sFileNameFull,$bOutput=false)
WriterCSV($sFileNameFull,$bOutput=false, $iSheet=0)
WriterHtml($sFileNameFull)
GetRowHeight($iRow)
SetRowHeight($iRow,$dSize)
SetColWidth($sCol,$dSize)
GetReadData()
GetSpreadsheetData()
GetMergeCell()
CreateSheet()
RemoveSheet($iSheet)
SetProtectionFile($sPassword="12345")
SetDrawing($sCordinate,$sFullPath,$iHeight=0)
freezePane($sCell)
RemoveRow($iRow)
CopyRange($sRangeFrom,$sCellTo,$bInsertRow=true)
SetWrapText($sRange)
GetNextColumn($sColumn="")
SetCreateReader()
CreateObjectExcel2007()

class chunkReadFilter

$_startRow
$_endRow
__construct()
readCell($column, $row, $worksheetName = '')
setRows($startRow, $chunkSize)

FileCache.php

Cache()

GetValue($sSection,$sKey,$bAddIndexDB=false)

SetValue($sSection,$sKey,$sValue,$bAddIndexDb=false)

File.php

GetFromDir($sPathToDir, $bComparative=true)

Получить файлы из директории.

Параметры:

  • string $sPathToDir - путь к директории;
  • boolean $bComparative - путь к директории относительный (true) или полный (false).

RemoveToDir($aFile, $sPathToDir, $bComparative=true, $bAddTime=true, $bDeleteBefore=true)

Write($aFile,$sContent,$sMode="w")

Записать в файл.

Параметры:

  • array $aFile - array('name'=>'FileName', 'path'=>'FilePath');
  • string $sContent - данные, которые нужно записать;
  • string $sMode - модификатор доступа к файлу.

Extract($sPathToFile, $sPathToExtract)

Извлечь из архива.

Параметры:

  • $sPathToFile - путь к архиву;
  • $sPathToExtract - путь для распаковки.

Возвращает array(0=>array(name=>...,path=>...),...)

ExtractForPrice($sPathToFile, $sPathToExtract)

ExtractFirstFile($sPathToFile, $sPathToExtract)

Извлечь из архива первый файл.

Параметры:

  • $sPathToFile - путь к архиву;
  • $sPathToExtract - путь для распаковки.

Возвращает array(0=>array(name=>...,path=>...),...)

CheckFileUpload($aFile)

Form.php

$sHeader

$sAdditionalTitle

$sTitle

Заголовок формы.

$sContent

$sClass

$sSubmitButton

$sSubmitAction

$sReturnButton

$sReturnAction

$sError

$sErrorNT

$sHidden

$sConfirmText

$bIsPost

$sWidth

$bShowBottomForm

$bConfirmSubmit

$sButtonsPadding

$bAutoReturn

$sAdditionalButton

$sAdditionalButtonTemplate

$sReturn

$sRightTemplate

$bSetDefault

$sTemplatePath

$sBeforeContent

$sAfterContent

$sTitleDivHeader

$sReturnButtonClass

$sSubmitButtonClass

$bReturnAfterSubmit

$sButtonSpanClass

$sButtonDivClass

$aField

Массив полей для динамического создания формы.

$bType

Тип создания формы:

  • static - статически из шаблона;
  • generate - генерирование из заданных полей $aField.

__construct($aData=array())

GetForm($sContent='')

Получить шаблон формы.

ShowError($sError)

BeforeReturn($sAction,$sEditAction='')

AfterReturn($sAction,$sMessage='')

RedirectAuto($sMessage="")

Error404($bRedirectMissing=false)

HtmlDom.php

__construct()

AddCreateOption($sSelectId, $sOptionText, $sOptionValue)

Добавить значение (option) в список элемента select на стороне клиента.

Параметры:

  • int $sSelectId - id элемента select;
  • String $sOptionText - текст элемента списка;
  • String $sOptionValue - значение элемента списка.

AddCreateOptions($sSelectId, $aOptions)

Добавить в select несколько значений определенных в массиве $aOptions.

Параметры:

  • int $sSelectId - id элемента select;
  • array $aOptions - массив элементов списка options[key][value].

ImageProcess.php

$aDisallowedExtension

Массив недопустимых расширений. По умолчанию ".php".

$aAllowedExtension

Массив допустимых расширений. По умолчанию '.gif','.jpg','.jpeg','.png'.

GetUploadedImage($sFieldName, $iMaxUploaded=3, $sTargetPath='/imgbank/Image/' ,$iIdCustom=, $iBigWidth=600, $iSmallWidth=80, $bLeaveOriginal=false)

Загрузка и изменение размера изображений.

Параметры:

  • $sFieldName
  • $iMaxUploaded
  • $sTargetPath
  • $iIdCustom - ID of object of images for name creation
  • $iBigWidth
  • $iSmallWidth

Возвращает массив загруженных и измененных по размеру изображений.

ImageResize($sSource, $sDestination, $iNewWidth, $sExtension)

Изменение размера изображения.

CreateSubnail($sSource,$sTargetPath='/imgbank/Image/',$iIdCustom=,$iBigWidth=600,$iMiddleWidth=300,$iSmallWidth=100)

ParseExtension($sPath)

Language.php

$aTranslateMessage

$aTranslateText

$aContextHint

$sLocale

$iLocale

$aLanguageList

$aLanguageAssoc

$sBaseLocale

$aOldParser

__construct($sBaseLocale = '')

GetLocale()

GetMessage($sKey, $sPage = "")

Получить локализованное значение для надписи.

GetDMessage($sKey, $sPage = "")

GetText($sKey, $sPage = "")

Получить локализованное значение для HTML текстов.

GetContextHint($sKey, $bUnique = false)

GetOrderStatus($sKey)

PrintPrice($dAmount,$bAbs=false,$bInvert=false,$sOutputType='',$sPriceType='')

PrintCurrencyPrice($dAmount,$sCurrency='USD')

PrintPriceByType($dAmount,$sPriceType='USD')

Price($dAmount, $sPriceType='',$bAbs=false,$bInvert=false)

GetDate($iTimestamp = '', $iTimeZone = '',$bCurrentForce=false)

GetDateTime($iTimestamp = '', $iTimeZone = '')

GetPostDate($sPostDate,$iTimeZone='')

GetPostDateTime($sPostDate,$iTimeZone='')

FormatDate($sSearchDate, $sFormat='Y-m-d H:i:s')

GetLocalizedRow($aData)

GetLocalizedAll($aData, $bReturnSql=false, $sAssocField = '')

Array2Hash($data, $key_array = '')

GetCommentLink($sSection, $sId, $sLink,$bHideUnapproved=false)

GetConstant($sKey,$sDefaultValue='')

GetMessageArray($aArrayKey, $sPage = "")

IncludeLocaleMap($sMap)

AddOldParser($sObject,$iId)

ReplaceOldParser($sOutput)

GetCatalogMessage($sKey, $sPage = "")

GetTranslit($sString, $sCharset='utf-8')

Перевести текст в транслит.

PrintPriceCalc($aPrice)

SetText($sKey, $sContent = "")

LocaleGlobal.php

__construct()

GetLocaleMap($sTableName)

Edit()

Apply()

Log.php

__construct()

VisitAdd()

Добавить визит пользователя в логи посещений.

AdminAdd($sAction,$sTableName='',$sBeforeApply='',$sAfterApply='')

Записать логи запроса администратора в mpanel.

FinanceAdd($aData,$sSection,$iIdUser='',$sDescription,$sCreatedBy='')

GlobalAdd($aData,$sSection,$iIdUser='')

OrderAdd($aData,$sSection,$iIdUser='')

Mail.php

$bAddedNoRply

SendNow($sAddress,$sSubject,$sBody,$sFrom='',$sFromName='',$sCc='',$iLanguage=null, $bFromDelayed=false, $iPriority=5)

SendAttach($sAddress,$sSubject,$sBody,$aAttachment=array(),$sCc='',$sFrom='',$sFromName='',$sCharSet = 'cp1251')

AddDelayed($sAddress,$sSubject,$sBody,$sFromEmail='',$sFromName='',$bCheckEmail=true, $iPriority=5 ,$sAttachCode='',$sDescription='',$sSendAfterDate='')

SendDelayed($iLetter=1)

OpenAccount($sHost,$iPort,$sUsername,$sPassword,$sType="pop3",$sFolder="",$bSsl=false)

GetEmailCount($oAccount)

GetEmailHeader($oAccount,$iNumberEmail)

GetAttachment($oAccount,$iNumberEmail)

DecodeMimeString($sString)

DeleteEmail($oAccount,$iNumberEmail)

CloseAcount($oAccount)

GetSenderEmail($oAccount,$iNumberEmail)

Message.php

__construct()

Index()

Prepare()

MoveToFolder()

Reply()

Forward()

Send()

Draft()

Compose()

Delete()

Clear()

Preview()

ChangeCurrentFolder()

MessageNumber($iIdUser,$iIdMessageFolder)

CreateMessage($sTo,$sSubject,$iIdMessageFolder,$iIsRead,$sText,$iIdUser=,$sUserFrom=)

SendMessage($sTo,$sSubject,$sText,$iIdMessage='',$bSendEmail=true)

DeleteMessage($iId)

EraseMessage($iId)

MoveMessage($iId,$iIdMessageFolder)

getUserList($aLogin)

ReadMessage($iId)

CreateNotification($sTo,$sCode,$sType='customer',$aUserData=array(),$sToId=,$iPriority=3)

CreateDelayedNotification($iIdUser,$sCode,$aUserData=array(),$bSmartyTemplate=false,$iIdCart=0)

SendBulkUserNotification($sAdditionalWhere='')

PreviewUserNotification()

AddNote($iIdUser,$sName,$sDescription,$sUrl=,$sReplyTo=)

CheckNote()

NoteClose()

CreateCustomerIdExcel($aUserNotification)

Payment.php

$aWebmoneyPurse

$aMoneyBookersCurrency

__construct()

Index()

WebmoneyResult()

WebmoneySuccess()

WebmoneyFail()

Log($sMethod='webmoney', $sMessage='')

WebMoneyPayment()

MoneybookersResult()

MoneybookersSuccess()

MoneybookersFail()

MoneybookersPayment()

PaypalResult()

PaypalSuccess()

PaypalFail()

PaypalPayment()

decodeQouta( $str )

decodeGPC( $str )

LiqpayResult()

LiqpaySuccess()

LiqpayFail()

LiqpayPayment()

GetLiqpayOperationXml()

ParseTag($rs, $tag)

GetTransactionAccount($sAccountId,$sCurrencyCode='')

WebtopayResult()

WebtopaySuccess()

WebtopayFail()

WebtopayPayment()

QiwiResult()

QiwiPayment()

MonexyResult()

MonexySuccess()

MonexyFail()

MonexyPayment()

UnitellerResult()

UnitellerSuccess()

UnitellerFail()

UnitellerPayment()

Permission.php

$aAllowAction

Init()

AppendPermission()

CheckPermission()

PrintContent.php

Append($sContent)

Index()

Repository.php

$oInstance

$sPrefix

Get()

__construct()

InitDatabase($sModuleName,$bCoreSql=true)

CheckTableExist($sTableName)

CheckUpdate($sModuleName,$bCoreSql=true)

Resource.php

$oInstance

$sPrefix

$aLocation

$aHeaderResource

$aResourceVersion

Get()

__construct()

Add($sFilePath,$iFileVersion=0,$sLocation='header',$aData=array())

Добавляет файл в заголовок (header) или в нижний блок страницы (footer) html документа. Это могут быть js или css файлы.

Параметры:

  • $sFilePath - путь к файлу;
  • $iFileVersion - версия файла. Если указанная версия больше чем уже включенная, то будет включена эта, с версией выше;
  • $sLocation - определяет в какой части html документа произвести подключение. По умолчанию имеет значение header.

Пример использования:

Resource::Get->Add('/css/main.css',6,'header')

FillTemplate()

Вставить все добавленные файлы в выходной шаблон для размещения их в конечном html. Вызывается из функции Base::Process().

Sms.php

__construct()

FormatNumber($sPhoneNumber)

SendGT($sPhoneNumber, $sMessage, $iTimeout = 10)

SendTurbo($sPhoneNumber, $sMessage, $sSender = 'Partmaster')

SendTurboV2($sPhoneNumber, $sMessage, $sSender = 'Partmaster')

SendNow($sPhoneNumber, $sMessage)

AddDelayed($sPhoneNumber, $sMessage)

SendDelayed($iMessage = 1)

SendClickatell($sPhoneNumber, $sMessage, $sSender ='')

String.php

Serialize($aValue)

Произвести сериализацию массива $aValue.

Unserialize($sValue)

Произвести десериализацию значения $sValue.

FirstNwords($sString, $iWord)

CheckEmail($sEmail)

Валидация email адреса. Возвращает 1 если email соответствует заданному шаблону, 0 - если не соответствует.

FilterRequestData($aData,$aFieldArray=array())

Фильтрация всех пользовательских данных, которые записываются в базу данных и выводятся на страницы.

Параметры:

  • $aData - входящий запрос;
  • $aFieldArray - массив строк, которые должны быть добавлены в отфильтрованный результирующий массив

QuoteCommaString($sString)

CheckDomain($sHaystack, $sNeedle)

UtfEncode($sString)

Изменить кодировку строки $sString на utf-8.

GetSmartyTemplate($sKey,$aTemplateData=array(), $bOldStyleTemplate=true)

GetTemplateRow($sKey)

GetPage($sKey, $bShowInvisible=false)

ProcessDropDownAdditional()

ProcessStatic()

GetDecimal($sDouble)

Получить десятичное число из строки $sDouble.

Md5Salt($sPassword,$sSalt)

Шифрование пароля.

GenerateSalt()

GeneratePref($sPrefIn=)

GetUcfirst($sString)

GetUcword($sString)

FormatPhoneNumber($sString,$bNeedCat=TRUE)

CheckUaPhone($sString)

ParseSize($size)

Переводит размер в байты.

FormatSize($size)

Переводит значение количества байт в строковое представление (кб, Мб, Гб и т.д.).

FormatPlural($count, $singular, $plural)

Table.php

$sType

$aDataFoTable

$sSql

$sTableSql

$aItem

$aColumn

$iRowPerPage

$iRowPerFirstPage

$iRowPerPageGeneral

$iPage

$bShowRowsPerPage

$sActionRowPerPage

$bShowPerPageAll

$iStepNumber

$aOrderedColumn

$aOrdered

$sDefaultOrder

$sWidth

$sClass

$sStepperClass

$sStepperClassTd

$sStepperActiveItemClass

$sStepperInfoClass

$bStepperInfo

$bStepperOutTable

$bStepperHideNoPages

$sCellSpacing

$sDataTemplate

$sButtonTemplate

$sSubtotalTemplate

$sSubtotalTemplateTop

$sAddButton

$sAddAction

$aCallback

$aCallbackAfter

$bSetDefault

$bPearStepper

$bStepperVisible

$bAjaxStepper

$bHeaderVisible

$bHeaderVisibleGroup

$bHeaderNobr

$bCheckVisible

$bCheckRightVisible

$bCheckOnClick

$sCheckAction

$bCheckAllVisible

$sCheckAllAction

$bDefaultChecked

$sCheckAllClass

$bFormAvailable

$sFormAction

$sCheckField

$iAllRow

$bHideTr

$sIdiTr

$sIdForm

$sHeaderRight

$sTemplateName

$sFilterTemplateName

$sPrefix

$sQueryString

$sOrderAscImage

$sOrderDescImage

$sHeaderClassSelect

$bFilterVisible

$aFilter

$sFormHeader

$sStepperAlign

$iGallery

$bIsGallery

$sStepperType

$bStepperOnePageShow

$bCacheStepper

$bTopStepper

$sNoItem

$bCountStepper

$iStepLimit

$bStepperStyling

$bTableWithoytStyle

$iStartStep

$bHeaderType

$sMarkAllText

$sManualLimit

$sButtonSpanClass

$sPanelTemplateTop

$sLinkPrefix

$sLinkRewrite

$sIdTable

$iColspanFilter

$iColspanSearchStrong

__construct()

GetTable($sHeader = '', $sHint = '',$sStaticHeader='',$sHeaderNT = '')

getStepper($iRowNumber)

printPage($countPage, $actPage)

getStepperPear($iRowNumber)

getFilter()

Customize()

SetSql($sScript, $aData = array())

sortArrayCallback($sA, $sB)

setArray($aData)

GetFilteredProductEnding($iCount)

Tree.php

$sType

$aDataFoTable

$sSql

$sTableSql

$aItem

$aColumn

$iRowPerPage

$iPage

$iStepNumber

$aOrderedColumn

$aOrdered

$sDefaultOrder

$sWidth

$sClass

$sDataTemplate

$sButtonTemplate

$sSubtotalTemplate

$sAddButton

$sAddAction

$aCallback

$bPearStepper

$bStepperVisible

$bAjaxStepper

$bHeaderVisible

$bCheckVisible

$bCheckAllVisible

$bDefaultChecked

$bFormAvailable

$sCheckField

$iAllRow

$bHideTr

$sHeaderRight

$sTemplateName

$sFilterTemplateName

$sPrefix

$sQueryString

$sOrderAscImage

$sOrderDescImage

$bFilterVisible

$aFilter

$sFormHeader

$sStepperAlign

$iGallery

$bIsGallery

$sStepperType

$bCacheStepper

$bTopStepper

$sNoItem

$bCountStepper

__construct()

getTree($sHeader = '', $sHint = '')

getStepper($iRowNumber)

getStepperPear($iRowNumber)

getFilter()

Customize()

setSql($sScript, $aData = array())

sortArrayCallback($sA, $sB)

setArray($aData)

VinRequest.php

__construct($bNeedAuth=true)

Index()

Preview()

Manager()

ManagerSave($bRedirect=true)

ManagerSend()

ManagerRefuse()

ManagerRelease($iId)

ManagerMobileNotification($aVinRequest)

GetVinIdList($bReturnArray=false)

ManagerRemember()

XajaxParser.php

$xajax

$sXajaxJavascript

Каталог module

AdminRegulations.php

$sPrefix

__construct()

Index()

SinxroTranslate()

InsertIrbis()

GetFromIrbis()

Binotel.php

$oBinotel

__construct()

InputCalls()

OutputCalls()

LostCalls()

CallsByManager()

CallsByNumber()

CallsNow()

Managers()

UserAdd()

UserImport()

UserEdit()

Users()

Call()

Index()

GetCallFromStart()

GetCallRecord($sCallId)

GetCallsNow()

GetLostCalls()

GetCallsByNumber($sNumber)

GetCallsByUser($sUser)

GetCallInfo($sCallId)

GetMyLastCalls($sInternalNumber)

GetMyCallsByDate($sInternalNumber,$iDateStart,$iDateEnd)

GetCallsByDay()

GetCallsByDate($sDateStart,$sDateEnd)

GetInputCalls()

GetOutputputCalls()

GetAllUsers()

GetUserById($iIdUser)

GetUserByNameOrPhone($sNameOrPhone)

CreateBinotelUser($sName,$aPhones,$sDescription='',$sEmail='',$iManager='901',$aLabels=array())

EditBinotelUser($sId,$sName,$aPhones,$sDescription='',$sEmail='',$iManager='901',$aLabels=array())

RemoveBinotelUser($iIdUser)

GetClientLabels()

GetAllManagers()

MakeCallToExternal($iInternal,$iExternal)

CallTransfer($iCallId,$iInternalNumber)

KillCall($iCallId)

Buh.php

$sPrefix

$sCurrentPeriod

$sError

$sDateTo

$sDateFrom

$aActionException

$sCurrentPeriodLastDate

__construct()

Index()

SetNextPeriod()

GetLastDate($sDate)

Entry($aDoc, $iAccountD, $iAccountC, $dAmount, $sDescription="", $iAccountDSub1=0, $iAccountDSub2=0, $iAccountDSub3=0, $iAccountCSub1=0, $iAccountCSub2=0, $iAccountCSub3=0, $iCurrency=1, $dCurrencySum=0, $dNumber="", $id=0, $sPostDate=0)

EntrySingle($aDoc, $iAccountD, $iAccountC, $dAmount, $sDescription="", $iAccountDSub1=0, $iAccountDSub2=0, $iAccountDSub3=0, $iAccountCSub1=0, $iAccountCSub2=0, $iAccountCSub3=0, $iCurrency=1, $dCurrencySum=0, $dNumber="", $id=0, $sPostDate=0)

EntryMany($aEntry)

CheckParametr($aData)

EntryMonth($sDateMonth, $iAccount, $iAccountSub1=0, $iAccountSub2=0, $iAccountSub3=0, $dAmountDStart, $dAmountCStart, $dAmountD, $dAmountC, $dAmountDEnd, $dAmountCEnd)

EntryMonthSingle($dDateMonth, $iAccount, $iAccountSub1, $iAccountSub2=0, $iAccountSub3=0, $dAmountD, $dAmountC, $dAmountDEnd, $dAmountCEnd)

EntryMonthMany($aEntry)

EntryMonthStartSingle($dDateMonth, $iAccount, $iAccountSub1, $iAccountSub2=0, $iAccountSub3=0, $dAmountDStart, $dAmountCStart)

Changeling ()

CallParseSum(&$aItem)

CloseMonth()

AddAmount()

ChangeForm()

ChangelingPreview($bVisibleForm=true)

GetSubconto()

GetAmount($sBuhSection,$iBuhSection,$idBuh,$sBuhType='credit')

GetSaldoLast($iSubconto1,$iBuh='361')

CallMe.php

Send()

Обработка отправки заказа звонка.

ShowManager()

Страница "Заказ звонка" для менеджера, где отображаются все заказы звонков, оставленные пользователями.

Cart.php

$sExportSql

__construct($bNeedAuth=true)

Index()

CartList()

Содержимое корзины.

AssignDeliveryMethods()

Задать способы доставки товара в переменные шаблона.

CartOnePageOrder()

Обработка оформления заказа для зарегистрированных и незарегистрированных пользователей.

CartOnePageOrderManager()

Обработка оформления заказа менеджером.

CartPrint()

CallParseCart(&$aItem)

AddCartItemChecked()

AddCartItem($iNumber=1,$bRedirect=true,$sReference='')

CartUpdateNumber()

OrderList()

CallParseOrder(&$aItem)

ParseVinCode($sVinCode, $iCheckVinLen = 17)

PackageConfirm()

PackageDelete()

CheckAccount()

SelectAccount()

ShipmentDetail()

PaymentMethod()

PaymentEnd()

PaymentEndButton()

SendPendingWork($iIdCartPackage)

PackagePrint()

PackageList()

NewAccountError()

NewAccountManagerError()

PopUpGetOwnAuto()

RecalcCartUser($iIdUser,$iIdUserNew,$iIdCartPackage=0)

GetBoardExpiredCartUser($iIdUser)

CartExpiredCountPositions($iUserId = 0)

CartExpiredInfo($iUserId = 0)

OrderByPhone()

NewAccountDeliveryInfoFields()

Создание полей для форм, в которых указывается информация по доставке товара.

CartOnepageDeliveryFields()

Создание полей для выбора способа доставки.

CartOnepagePaymentFields()

Создание полей для выбора способа оплаты.

CatalogManager.php

$sPrefix

$sPrefixAction

$sPathToFile

Index()

EditName()

EditPic()

UploadManyPics()

UploadPic()

ViewPicList()

UploadMakeCodePic()

AddInfo($aData=array())

DeleteInfo($aData=array())

SetItemCodeImage()

ImportImage()

DeleteImportImage()

SetImportImage()

ModelType()

ModelTypeDelete($aData=array())

AddCatInfo($aData)

UpdateNumber()

Catalog.php

$sPrefix

$sPref

$aCode

$aCodeCross

$aItemCodeCross

$aExt

$sPathToFile

$bShowSeparator

$aCat

$aCats

$aModel

$aModelDetail

__construct()

Index()

ViewModel()

CallParseModel(&$aItem, $bSeparator=false)

ViewModelGroup()

GetModelPic($aData)

GetModelDescription($aData)

GetModelName($aData)

ViewModelDetail($bShow=false)

ModelFor()

CallParseModelDetail(&$aItem, $bSeparator=false)

ViewAssemblage()

GetBranch($id, $aData)

getAllParent($aTree, $iId, $iRootId, &$aCod)

CallParsePart(&$aItem)

GetNavigator($aData,$sCrumb = '')

StripCode($sCode)

StripLogin($sCode)

StripCodeSearch($sCode)

StripCodeSql($sField)

GetFormattedCode($sCode,$sPref)

ViewPrice()

GetPriceTableHead(&$oTable)

CallParseBrand(&$aItem)

CallParsePrice(&$aItem, $bSeparator=false)

ActualFilter(&$aItem)

PosPriceParse(&$aItem,$bHaveFirstSeparator=true,$bHaveAnalogs=true)

GetJson()

ViewInfoPart()

OriginalCross()

GetPriceForInfoPart($sCodeInput='',$sPrefInput='')

ExportPrice()

SetImageWidth()

UpdatePrice($sItemCode="",$idProvider="",$dPrice=0)

Cross()

CrossLoad()

CrossInstall()

InstallExcel($aCrossProfile, $aPref)

InstallExcel07($aCrossProfile, $aPref)

InstallCSV($aCrossProfile, $aPref)

CrossClearImport()

CrossImportAdvance()

CrossProfile()

InsertCross($aData)

InsertCrossStop($aData)

DeleteGroupCross()

DeleteCross($bRedirect=true)

DeleteGroupCrossStop()

DeleteCrossStop($bRedirect=true)

ImportCross()

SearchAdvance()

PrintPartName($aRow)

ChangeSelect()

LoadAutotechnics()

CrossStop()

ViewBrand()

ViewBrandShow()

CorrectBrandLink(&$aBrand)

ChangePartParam()

CallParseCross(&$aItem)

ViewOwnAuto()

MotoBrands()

MotoModels()

MotoDetails()

MotoAssemblage()

mb_ucfirst($str, $enc = 'utf-8')

outTree(&$category_arr=array(), $parent_id, $level)

SetSelectedPart(&$aTree=array(), $iPart)

GetArtId($sItemCode)

SortTable()

TruckIndex()

TruckModels()

TruckDetails()

TruckAssemblage()

ParseTruckPartsImages(&$aItem)

CommentTree.php

__construct()

GetCommentListTree($sSection,$sId,$bXajaxResponse=false)

Post()

convertArrayToTree($aSourceArray, $sParentId='0', $sKeyChildren='child', $aKeyId='id', $sKeyParentId='parent_id')

doConvertArrayToTree($aSourceArray, &$aThisTree, $sParentId, $sThisId, $sKeyChildren, $aKeyId, $sKeyParentId)

ContactForm.php

__construct()

Index()

Call()

Customer.php

__construct()

Index()

Profile()

Редактирование профиля клиента.

IsChangeableLogin($sLogin)

IsTempUser($sLogin=)

Если пользователь с логином $sLogin является временным, возвратит 1, если постоянный - 0.

ChangeRating()

Dashboard.php

Личный кабинет пользователя.

__construct()

Index()

Customer()

User()

PartnerRegionChange()

Delivery.php

__construct()

Index()

Set()

ElitRoma.php

$sPathToFile

Index()

Export($bPrice=false)

CronSecond()

CronLoad()

GetPrice()

Load()

LoadFromExcel($sFilePath,$sTable='')

Insert(&$aInsert=array(),$sTable='')

LoadPrice($aItem,$sTable='')

GetSessionID()

Error.php

GetError($iCode)

Finance.php

$aHaveMoney

$aUserAccountLogTypeAssoc

__construct()

Index()

CallParseLog(&$aItem)

ExportAll()

CreateFinanceExcel($sSql,$bShowCustomer=false)

BillforUser ()

Bill()

BillPrint($iIdBill='')

Deposit($iIdUser,$dAmount,$sDescription='',$iCustomId='',$sPayType='internal',$sSection='internal',$sData='',$iIdUserAccountLogType='')

TransactionError($aData, $iIdUser='', $sDescription='')

AccountAmount($iIdUser)

DebtAmount($iIdUser)

HaveMoney($dAmount,$iIdUser='',$bFullPayment=false)

PayForAccount()

GetGeneralAccountAmount()

GetUserAccountLogTypeAssoc()

GetSumAmount($sUserType='customer')

AssignAccount($aUser)

AssignSubtotal($sWhere)

GarageManager.php

$aTypeDrive

$aTypeFuel

$aTypeTransmission

$aTypeBody

$aTypeWheel

$aVinMonth

__construct()

Index()

Profile()

CallParseUserAuto(&$aItem)

AddComment()

Edit()

Delete()

GetInfoAuto($aData)

GetFormAddAuto($oObject, $sTitle = "Edit", $iSubmitNotPopUp = 1)

Get_aTypeFuel()

Get_aTypeDrive()

Home.php

Index()

GetPopularProducts()

GetLastViewedProducts()

ManagerCart.php

$sCustomerSql

__construct()

Index()

CallParseCart(&$aItem)

Archive()

Store()

Payment()

ManagerInvoiceCustomer.php

$aCartScan

LOG_PRICE_PLACE

LOG_ADDITIONAL_PAYMENT

CUSTOMER_TYPE_UKRAINE

CUSTOMER_TYPE_NOT_UKRAINE

CUSTOMER_TYPE_NOT_SET

$sPrefix

__construct()

Index()

CallParseCustomer(&$aItem)

Create($bPrint=false)

CallParseCreate(&$aItem)

ChangeRating()

Invoice()

PrintInvoice($iIdUser='',$bReturnContent=false)

GetFactureRight(&$aUserInvoice,&$aAdditionalItem,$aDeliveryCost=array(),$dTarifTax=0,$sCurrency='USD')

Recalculate($iIdInvoiceCustomer)

CreateOfficeTravelSheet()

IsTravelSheetAdd()

IsTravelSheetClear()

IsTravelSheetBrowse()

CreateInvoiceTravelSheet()

GetInvoiceExcel()

GetInvoiceExcelFitlered()

GetInvoiceExcelAll()

Send($iInvoiceCustomer)

End($iInvoiceCustomer)

GetInvoiceFactureExcel()

GetInvoiceFactureExcelFitlered()

GetInvoiceFactureExcelAll()

SendInvoiceFactureExcel($aInvoiceId)

GetInvoiceListExcel()

ChangeCustomerType()

DeliveryCalculator()

Delivery()

CallParseDelivery(&$aItem)

DeliveryEdit()

Manager.php

$sPrefix

$sPrefixAction

$sCustomerSql

$sExportSql

$sExportMegaSql

$aCustomerList

$sCurrentOrderStatus

__construct()

Index()

GetCustomerList()

Profile()

Customer()

CustomerEdit()

CustomerRedirect()

Order()

CallParseOrder(&$aItem)

ChangeStatus()

AgreeGrowth()

Reorder()

Bill()

ProcessOrderStatus($iId='', $sOrderStatus='', $sComment='', $sIdProviderOrder='', $dProviderPrice='', $sIdProviderInvoice='', $sCustomValue='')

ChangeCart($aCart,$sOrderStatus,$sCustomValue)

VinRequest()

CallParseVinRequest(&$aItem)

VinRequestSave($bRedirect=true)

VinRequestSend()

VinRequestRefuse()

VinRequestRelease($iId)

VinRequestMobileNotification($aVinRequest)

GetVinIdList($bReturnArray=false)

VinRequestRemember()

PackageAddOrderItem()

Package()

CallParsePackage(&$aItem)

DeletePackageEmpty()

ExportAll()

OrderReportExport()

ExportOrder()

ExportOrderAll()

Export($sType='row_check')

ExportMegaAll()

ExportMega($sType='row_check')

GetCartMake($aCart)

ImportStatus()

EditWeight()

ImportWeight()

AddWeightName($u)

AssignCustomers()

Finance()

CallParseLog(&$aItem)

ReturnFullPaymentDiscount($aCart)

FinanceExportAll()

ParentMarginDebet($aCart)

IsChangeableLogin($sLogin)

CountMoney()

PayCartPackage($iIdCartPackage,$aEntry=array())

NotifyDebitedMoney($aEntry=array())

PrintOrder()

RefusePending()

PrintPakage()

SetPriceTotalCartPackage($aCart)

MergePakage()

ChangeProvider ()

SetPackagePayed ()

Cat ()

SynonymBrandClear ($sBrand)

Synonym ()

CatPref ()

SetCheckedAuto ()

CustomerRecalcCart ()

JoinOrders()

GetUserSelect()

GetPopularProducts()

Manual.php

Manual()

Index()

Show()

ShowShort($sRequesCode)

CommentList($sManualId)

Map.php

$sPrefix

$aMap

__construct()

Index()

DropdownGetChilds($iIdParent)

Message.php

__construct()

Prepare()

MoveToFolder()

Reply()

Forward()

Send()

Draft()

Compose()

Delete()

Clear()

Preview()

ChangeCurrentFolder()

Browse()

CallParseMessage(&$aItem)

MessageNumber($iIdUser,$iIdMessageFolder)

CreateMessage($sTo,$sSubject,$iIdMessageFolder,$iIsRead,$sText,$iIdUser='',$sUserFrom='',$aAttachFiles=array())

SendMessage($sTo,$sSubject,$sText,$iIdMessage='',$bSendEmail=true, $aAttachFiles=array())

DeleteMessage($iId)

EraseMessage($iId)

MoveMessage($iId,$iIdMessageFolder)

getUserList($aLogin)

ReadMessage($iId)

CreateNotification($sTo,$sCode,$sType='customer',$aUserData=array(),$sToId='',$iPriority=3)

CreateDelayedNotification($iIdUser,$sCode,$aUserData=array(),$bSmartyTemplate=false,$iIdCart=0)

SendBulkUserNotification($sAdditionalWhere='')

PreviewUserNotification()

AddNote($iIdUser,$sName,$sDescription,$sUrl='',$sReplyTo='')

CheckNote()

NoteClose()

CreateCustomerIdExcel($aUserNotification)

ChangeStarred()

ChangeStarredMessage()

GetAttachFiles()

News.php

__construct()

Index()

Preview()

CommentList()

OwnAuto.php

$sPrefix

$aTypeDrive

$aTypeFuel

$aTypeTransmission

$aTypeBody

$aTypeWheel

$aVinMonth

__construct()

Index()

CallParseUserAuto(&$aItem)

CallParseLogUserAuto(&$aItem)

GetJson()

Del()

GetInfoAuto($aData)

Get_aTypeFuel()

Get_aTypeDrive()

GetFormAddAuto($oObject, $sTitle = "Edit", $iSubmitNotPopUp = 1, $aData)

AddJson()

GetAutoInfoTip($iOrderId)

GetListOwnAuto()

GetInfoById($iId = 0)

SearchLog()

AddSearchAuto()

DelFromAutoLog()

PaymentDeclarationManager.php

__construct() =

Index() =

Add() =

Delete() =

SelectUser() =

PaymentDeclaration.php

__construct()

Index()

Payment.php

__construct()

Index()

Log($sMethod='webmoney', $sMessage='')

LiqpayResult()

LiqpaySuccess()

LiqpayFail()

LiqpayPayment()

PaymentReportManager.php

__construct()

Index()

PaymentReport.php

__construct()

Index()

Add()

Delete()

PriceFtp.php

$sPrefix

$sPrefixAction

__construct()

Index()

PriceGroup.php

$sPrefix

__construct()

Index()

GetGroupNavi($iParent,&$aNavigator=array())

cmp($a, $b)

CallParse(&$aItem)

GetTabs()

GetMainGroups()

Filter()

SortTablePriceGroup()

Price.php

$sPrefix

$oCatalog

$rs

$exchange_facrot

$aPref

$aParserPatern

$aParserBefore

$aParserAfter

$aTrimLeft

$aTrimRight

$aPrefName

$aPriceGrp

$aValidateExtensions

__construct()

Index()

LoadFromFile()

InitLoader($aPrice_profile)

LoadFromExcel($files,$aPrice_profile,$iUser=0,$iPriceQueue=0)

LoadFromCsv($files,$aPrice_profile,$iUser=0,$iPriceQueue=0)

LoadFromText($files,$aPrice_profile,$iUser=0,$iPriceQueue=0)

LoadFromDbf($files,$aPrice_profile,$iUser=0,$iPriceQueue=0)

LoadPrice($data,$aPrice_profile,$aProvider,$iUser,$iPriceQueue)

Install($bRedirect=true)

ConformityApply()

AutoAssocCat()

Conformity()

ClearImport($sMessage='', $bRedirect=true, $sType = 'all', $iIdProvider=0)

ClearProvider($bRedirect=true, $iPriceQueueId = 0)

ClearPref()

AddItem($aCart,$dPrice)

Export()

ExportFile()

AddRequest()

AddCat()

ConvertToInteger($sNumber)

RefreshQueue()

getStoppedQueueFlag($id)

SaveToLog($aResult, $iAllStringsCurrentList, $iAllStringsTotal, $iAllStrings, &$iCountError, $iList, $iPriceQueue, $aData, $aPrice_profile)

CheckStoppedLoadPrice($iPriceQueue)

LoadFromXlsxAll($iPriceQueue, &$iMaxCountCol, $files, $aPrice_profile, $aProvider, $iUser)

LoadFromXlsxPartial($iPriceQueue, &$iMaxCountCol, $files, $aPrice_profile, $aProvider, $iUser)

GetArrayUnknownPref()

SaveFilesToQueue($aFileExtract, $sSource = 'upload', $iProfile_id = 0, $sSubject = '', $sFrom = '')

SaveFilesToQueueExtended($aFileExtract, $sSource = 'upload', $iProfile_id = 0, $sSubject = '', $sFrom = '')

SaveFilesToQueueExtendedInsert($aProfileInfo,$aData,$aValue,$sErrorProfile,$sPathToFile)

ClearOldQueueFiles()

ClearOldQueueImportRecords()

RemovePref()

AddAutoPref()

GetAssociate()

FindAssociate($aData)

BuildAssociateData()

GetPriceMarginId($aData)

dbg_last_error($iPriceQueue = 0)

PriceProfile.php

$sPrefix

__construct()

Index()

ReloadViewPrice()

ProviderAddFromFile()

PopUpProviderAdd()

CreateProvider()

GetDataFromFile($aData)

LoadFromCsvLimit($aFile,$iLimit=10)

LoadFromExcelLimit($aFile,$iLimit=10)

CreateProfileFromFile()

ProviderEdit()

ProviderMakroInfo($aData)

PriceQueue.php

$sPrefix

$sPrefixAction

$sPathToFile

PriceQueue()

Index()

GetMailAttachment()

LoadQueuePrice()

GetFtpFile()

GetQueueInfoTable()

CallParseQueue(&$aItem)

AsuncLoadQueuePrice($iRedirect = 1)

SendRequest($url, $params)

LoadMessageLog()

BuildMessage($iId = 0,$bIsMailMessage = false)

GetProfile($sType = 'mail', $sFileName = '', $sSubject = '', $sFrom = '')

PriceSearchLog.php

__construct()

Index()

AddSearch($sPref=false,$sCode=false)

PublicProvider.php

__construct()

Add()

Show()

CallParseProvider(&$aItem)

CreateExcel()

Rating.php

__contruct()

Change($sSection,$iRefId,$iNumRating)

RequestForm.php

__construct()

Index()

Rubricator.php

__construct()

GetModels()

GetModelDetails()

SetMake()

SetModel()

SetModelDetail()

SetAll()

GetRubricatorUrl()

GetRubricatorUrlForFilter()

GetPart($sUrlGroup='',$iIdPriceGroup=0)

CallParsePartRubricator(&$aItem)

Index()

Category()

SubCategory()

GetMainMenu()

GetMain()

SetBrandPriceOrderUrl($sUrlParamsInclude)

GetBrandsForFilter($sType,$source,$iIdPriceGroup,$aItemCodesUnique)

cmp($a, $b)

GetRubricForModelGroup($aModelGroup,$sCat)

CheckSelectedAuto()

CheckSelectedAutoName()

ClearAutoUrl()

Search.php

$sPrefix

$sQuery

__construct()

Index($bShowSearchForm=true)

AllPriceGrouped()

AllPriceGroup()

SinglePriceGroup()

SetDefaultSetting(&$oSphinxClient,$iLimit=1000)

GetSphinxKeyword($sQuery)

StripQuery($sQuery)

AllSearch()

Sound.php

$aSound

$iAudio

GetSound($sKey, $sDefault = "")

InsertIntoPage($sCode,$sDefault="")

InsertIntoPageCustomerByLogin($sLogin)

InsertIntoPageCustomerById($sId)

UploadCustomerSound()

GetHtmlCode($sFilename)

GetHtmlCodeCustomer($aData)

GetCustomerFileNamePath($sLogin,$bIsUrl=false)

Store.php

$sPreffix

$bTransferFlag

__construct()

Index()

AddToSale()

AddToTransfer()

InputInvoiceScanner()

InputInvoiceManual()

InputInvoiceProcess()

Sale()

SaleInvoice()

SaleInvoiceProcess()

ReturnStore()

Log()

LogHistory()

GetMd5($aValue)

UpdateNumber()

Transfer()

TransferProcess()

TransferProcessTry($aProductFromLog=array(), &$aValue=array(), $aData=array(), $iType='2')

Balance()

ExportToPrice()

Products()

TecdocDb.php

Execute($sSql,$aInput=false)

GetAll($sSql)

GetAssoc($sSql, $aData=array(), $bReturnSql=false)

GetRow($sSql)

GetOne($sSql)

AutoExecute($sTable, $aFieldValue, $sMode = 'INSERT', $sWhere = FALSE, $bForceUpdate=true, $bMagicQuote=false)

Debug()

LogSql($bEnable=true)

InsertId()

AffectedRow()

StartTrans()

FailTrans()

CompleteTrans()

Escape($aData)

GetInsertSql($oSql, $aField, $bMagicq=true, $sForce=null)

SelectLimit($sSql, $iRow=-1, $iStart=-1, $inputarr=false,$secs2cache=0)

GetTableInfo($sType='')

SetWhere(&$sWhere, $aData, $sDataField, $sPrefix, $sTableField="")

GetDateFormat($sNameField="post_date", $sFormat="")

GetStrToDate($sPostDate, $bReturnDate=false, $sFormat="")

GetModels($aData)

Выборка моделей по заданному авто


Параметры:
id_tof - идентификатор производителя

GetModel($aData)

Выборка модели

Параметры:
id_tof - идентификатор производителя
id_model - идентификатор модели авто

GetModelAssoc($aData)

GetModelPicAssoc($aData)

GetModelInfo($aData)

GetModelDetails($aData,$aCat=false,$aCatTitles=false)

Выборка модификаций по заданной модели

Параметры:
id_tof - идентификатор производителя
id_model - идентификатор модели

GetModelDetailAssoc($aData,$aCat=false)

GetApplicability($aData)

Выборка применяемости по заданному артикулу

Параметры:
art_id - идентификатор артикула

GetModelDetail($aData,$aCat=false)

Выборка модификации авто

Параметры:
id_model - идентификатор модели
id_model_detail - идентификатор модификации

GetTree($aData)

Выборка дерева запчастей

Параметры:
id_model_detail - идентификатор модификации

GetTreeAssoc()

GetTreeTruck($aData)

GetTreeParts($aData, $aCats=false, $bTruck=false)

Выборка деталей по заданной модификации и веткам дерева

Параметры:
id_part - идентификатор ветки дерева текдока
id_model_detail - идентификатор модификации

GetTreePartsRubricator($aData, $aCats=false)

GetPartCriterias($aData)

GetImages($aData, $aCats=false, $bAssoc=TRUE)

Выборка изображений по заданному артикулу


Параметры:
aIdGraphic - массив идентификаторов артикулов

GetArt($aData)

GetArtName($aData)

GetArts($aCodes)

GetPartInfo($aData,$aCats=false)

GetCross($aData,$aCats=false)

Выборка аналогов запчастей(кроссов) по заданному артикулу

Параметры:
sCode - артикул

GetCriterias($aData)

Выборка характеристик по заданному артикулу


Параметры:
sCode - артикул

GetOriginals($aData,$aCats=false)

Выборка оригинальных номеров по заданному артикулу

GetIdMakeByIdModel($iIdModel)

AssocArtIdItemCode($aData)

Ассоциативный массив идентификаторов товаров по заданным артикулам

GetCriteriasDBTOF($aData,$sLang='en')

GetModelDetailsDBTOF($aData,$aCat=false,$sLang='en')

GetApplicabilityDBTOF($aData,$sLang='en')

GetModificationAssoc($aData)

Ассоциативный массив модификаций по заданной модели

GetSelectCar($aData)

Получить информацию по выбранному авто.

GetYears($sModel)

Выборка годов по моделям. Используется в подборе по авто

Test.php

Index()

SetElitParams()

SetElitImage()

GetElitImages()

ProcessExcel($iTimer)

GetPriceTableByCode()

GetSessionID()

GetCodePrice($sSID,$sCode,$sBrand='')

GetCodesByCode($sSID,$sCode)

GetPriceByCode($aCodes)

User.php

$aErrorTr

__construct()

Login()

DoLogin()

UloginLogin()

Logout()

NewAccount()

NewAccountError()

DoNewAccount($bAutoCreate=false)

ConfirmRegistration()

RestorePassword()

NotifyConfirmedProfileFill($iIdUser)

ChangePassword()

ChangeLogin()

NewPassword()

CheckLogin()

ChangeLevelPrice()

RecalcCart($iIdUser,$iIdUserNotManager = 0)

VinRequest.php

__construct()

Index()

Preview()

Manager()

ManagerSave($bRedirect=true)

ManagerSend()

ManagerRefuse()

ManagerRelease($iId)

ManagerMobileNotification($aVinRequest)

GetVinIdList($bReturnArray=false)

ManagerRemember()

ManagerDelivery()

ManagerSendPreview()

PackageCreate()

Get_aTypeBody()

Get_aTypeKpp()

Get_aTypeWheel()

Get_Months()

GetMarka()

ChangeSelect()

ChangeSelectOwnAuto()

Каталог system

BinotelApi.php

$key

$secret

$apiHost

$apiVersion

$apiFormat

$disableSSLChecks

$debug

__construct($key, $secret, $apiHost = null, $apiVersion = null, $apiFormat = null)

sendRequest($url, array $params)

handleBinotelCallback()

disableSSLChecks()

getSingnatureByRequest(array $params)

Content.php

$aDropdownMenu

$aAccountMenu

$aCrumbs

__construct()

CreateMainMenu()

DropdownGetCustom()

DropdownGetChilds($iIdParent)

AccountGetChilds($iIdParent)

AddCrumb($sName,$sLink='')

AssignCrumb()

DelAllCrumbs()

ParseTemplate($bRefreshCartAjax=false)

Init()

IsChangeableLogin($sLogin)

CallOldReplacer($sObject,$sOutput)

FirstNwords($sString, $iWord)

GetOrderStatus($sKey)

PrintPartName($aRow)

CorrectSeoUrl($sText,$sType)

LoadBanners()

Translit($str)

CreateSeoUrl($sAction,$aData,$bAbsolute=0)

CustomizeTable ($oTable)

RedirectOnSlash()

ClearTimer()

ShowTimer($sMessage='')

AddCrumbAndCaption()

GetMonthDay($iTimestamp='')

GetYear($iTimestamp='')

FixChars($str)

CheckMessageUrl()

ProcessDropDownAdditional()

SetMetaTagsPage($sKey,$aData=array())

SetH1($sKey, $aData=array(),$sName='')

Cron.php

Cron()

CloseCartPackage($iId,$sOrderStatus='refused')

SendAutopayPackage($iIdUser)

ClearOldData()

SendDbBackup()

NotifyPendingOrder()

NotifyLastVisit()

DeleteTemporaryCustomer()

ClearCustomerData()

MoveExpiredCart()

ClearOldPriceQueue()

ClearOldServiceLog()

ClearOldMailDelayed()

ClearOldUserNotification()

ClearOldAutoSearchLog()

ClearOldPriceSearchLog()

ClearAllOld()

AssociateDelayedPrices()

AssociateDelayedPricesMinutely()

UpdatePriceMargin()

Currency.php

$aCurrencyAssoc

$aCurrency

__construct()

InitCurrency()

BasePrice($dPrice=0,$iIdCurrency=1)

Price($dPrice=0,$iIdCurrency=1)

PrintPrice($dPrice=0, $iIdCurrency=0, $iRoundDigit=2, $sOutputType='')

BillRound($dPrice=0)

GetPriceWithoutSymbol($dPrice=0)

CurrecyConvert($L, $sType='RUB')

SemanticUkr($i,&$words,&$fem,$f, $sType='RUB')

GetExchangeRate($iIdCurrencyFrom,$iIdCurrencyTo)

PrintCurrencyPrice($dPrice=0,$sCurrency='USD')

PriceContent($sCurrency,$sPrice)

PrintSymbol($dPrice=0,$iIdCurrency=0)

Discount.php

$aDiscount

Refresh()

GetDiscount($dAmount)

CustomerDiscount($aUser,$iProvider='')

Index()

Exchange.php

$sTempDir

$iTimer

$oXml

$iTimerMinute

$bAutoImport

$aType

Auth()

__construct()

PrintFlush($s)

PrintFlush2($s)

Progress($i,$iMax,$bTimer=true)

OnFileName()

Index()

SendRequest($url, $params)

SalePrice()

SaleBrands()

SaleProviders()

SaleCustomers()

SaleOrders ()

SaleSuccess()

CatalogFile()

CatalogImport()

CatalogImportBrands()

CatalogImportProviders()

CatalogImportCustomers()

CatalogImportPrice()

CatalogImportOrders()

CatalogImportCrosses()

CatalogImportAllCrosses($oXml)

Language.php

$aTranslateMessage

$aTranslateText

$aContextHint

$sLocale

$iLocale

$aLanguageList

$aLanguageAssoc

$sBaseLocale

$aOldParser

__construct($sBaseLocale = '')

GetLocale()

GetMessage($sKey, $sPage = "")

GetDMessage($sKey, $sPage = "")

GetText($sKey, $sPage = "")

GetContextHint($sKey, $bUnique = false)

GetOrderStatus($sKey)

PrintPrice($dAmount, $bAbs=false, $bInvert=false, $sOutputType='', $sPriceType='')

PrintCurrencyPrice($dAmount,$sCurrency='USD')

PrintPriceByType($dAmount,$sPriceType='USD')

Price($dAmount, $sPriceType=,$bAbs=false,$bInvert=false)

GetDate($iTimestamp = '', $iTimeZone = '',$bCurrentForce=false)

GetDateTime($iTimestamp = , $iTimeZone = )

GetPostDate($sPostDate,$iTimeZone='')

GetPostDateTime($sPostDate,$iTimeZone='')

FormatDate($sSearchDate, $sFormat='Y-m-d H:i:s')

GetLocalizedRow($aData)

GetLocalizedAll($aData, $bReturnSql=false, $sAssocField = '')

Array2Hash($data, $key_array = '')

GetCommentLink($sSection, $sId, $sLink,$bHideUnapproved=false)

GetConstant($sKey,$sDefaultValue='')

GetMessageArray($aArrayKey, $sPage = "")

IncludeLocaleMap($sMap)

AddOldParser($sObject,$iId)

ReplaceOldParser($sOutput)

GetCatalogMessage($sKey, $sPage = "")

GetTranslit($sString, $sCharset='utf-8')

PrintPriceCalc($aPrice)

SetText($sKey, $sContent = "")

getContextHintProvider($iIdProvider = 0,$iId=0)

GetMonthDayFromPostDate($sPostDate='',$iTimeZone='')

GetYearFromPostDate($sPostDate='',$iTimeZone='')

Webservice.php

__construct()

GetPricePartmaster($sCode,$sPref='')

Каталог cron

Содержит папку "local" в которой размещены файлы:

  • backup.sh - скрипт для сохранения дампа основной базы. Скрипт выполняется каждые сутки.
  • backup_weekly.sh - скрипт для сохранения таблиц cross и cross_stop. Скрипт выполняется 1 раз в неделю.

Каталог css

Содержит файлы css проекта, подключенные в данном дизайне. Также может содержать css от дополнительных библиотек.

Каталог image

Содержит изображения использующиеся в дизайне сайта.

Каталог imgbank

Содержит файлы и папки которые загружаются и выгружаются с сайта

  • Image - директория изображений загружаемых на сайт
  • price - директория загружаемых на сайт прайсов
  • temp_upload - директория используется для выгрузок с сайта и обмена с 1С
  • default_cross_import.xls - пример файла импорта кроссов
  • default_price.xls - пример файла импорта прайса
  • test_status_upload.xls - пример файла импорта статусов
  • test_weight_upload.xls - пример файла импорта веса запчастей

Каталог include

Содержит настройки и каталог SQL запросов:

  • locale_map - каталог настроек мультиязычности
  • sql - каталог SQL запросов
  • currency_convert_ru.php - настройки отображения валюты
  • order_status_config.php - настройки статусов заказа
  • user_notification.php - настройки уведомлений пользователей
  • vin_request.php - настройки данных формы VIN запроса


Подкаталог sql содержит запросы которые используются в обработчиках, например запрос "Cat.php" используется в обработчике MPanel для отображения брендов на сайте. Пример использования:

$sSql = Base::GetSql('Cat',array('id'=>'102'));

Функция Base::GetSql() имеет 2 параметра:

  • имя запроса, должно быть написано латиницей, начинаться с заглавной буквы и не содержать пробелов.
  • массив параметров(не обязательно)

В данном примере результатом выполнения функции будет текст SQL запроса в который подставиться условие where c.id='102'

Содержимое файла Cat.php:

<?
function SqlCatCall($aData) {

	$sWhere.=$aData['where'];
	
	Db::SetWhere($sWhere,$aData,'id','c');
	Db::SetWhere($sWhere,$aData,'pref','c');
	Db::SetWhere($sWhere,$aData,'is_main','c');
	Db::SetWhere($sWhere,$aData,'is_brand','c');
	Db::SetWhere($sWhere,$aData,'visible','c');
	Db::SetWhere($sWhere,$aData,'id_tof','c');
	Db::SetWhere($sWhere,$aData,'id_sync','c');

	if ($aData['join']) {
		$sJoin .= " ".$aData['join'];
	}

	if ($aData['order']) {
		$sOrder.=" order by ".$aData['order'];
	}
	
	if ($aData['where'])
		$sWhere .= $aData['where'];
	
	$sSql="select c.*
			from cat as c
			".$sJoin."
			where 1=1
			".$sWhere."
			group by c.id
			".$sOrder;

	return $sSql;
}
?>

В каждом файле должна быть объявлена функция по шаблону:

  • Sql
  • Название файла, если файл находится в поддиректории то имя директории должно быть с большой буквы
  • Call

и иметь обязательный параметр. Пример файла PartDetailRubricator.php в директории OptiCatalog, имя функции в файле должно быть следующим: SqlOptiCatalogPartDetailRubricatorCall.

Вызов функции Db::SetWhere() внутри таких файлов, устанавливает необходимый параметр "where" для формирующегося SQL запроса.

Каталог js

Содержит js скрипты использующиеся на сайте, в том числе и дополнительные библиотеки, например:

  • jquery
  • jquery.maskedinput
  • jquery.validate

Каталог lib

Содержит библиотеки php подключенные к проекту, например:

  • adodb - работа с базой
  • PHPExcel - работа с xls/xlsx файлами
  • smarty - работа с шаблонизатором smarty
  • sphinx - релевантный поиск
  • и другие
Данные библиотеки являются общими для всех проектов!

Каталог libp

Содержит библиотеки в основном js подключенные к проекту, например:

  • FCKeditor - визуальный html редактор
  • xajax - библиотека для работы с ajax
  • popcalendar - всплывающий элемент выбора даты
  • и другие
Данные библиотеки являются общими для всех проектов!

Каталог mpanel

Содержит обработчики админ панели MPanel. Также содержит 2 файла:

  • index.php - страница приветствия и входа в MPanel
  • login.php - механизм связи обработчиков и ссылок в MPanel

Все обработчики находятся в поддиректории "spec" и отличаются от файлов директории "spec" в корне сайта тем что более унифицированы и являются не промежуточным звеном, а именно содержат код самого обработчика.

Основные файлы:

  • admin_regulations.php - для регламентных работ
  • banner.php - управление баннерами
  • cat.php - бренды деталей на сайте
  • cat_model.php - модели авто
  • cat_model_group.php - группы моделей авто
  • cat_part.php - карточки товаров
  • cat_pref.php - префиксы брендов
  • complex_margin.php - сложные наценки
  • constant.php - константы
  • context_hint.php - подсказки на сайте
  • customer.php - заказчики
  • customer_group.php - группы заказчиков
  • delivery_type.php - типы доставки
  • drop_down_additional.php - настройка выдачи урлов
  • general_constant.php - основные настройки
  • handbook.php - параметры групп деталей
  • hbparams_editor.php - редактор параметров групп деталей
  • log_admin.php - лог посещений администратора
  • log_finance.php - лог финансов
  • log_mail.php - лог писем
  • log_sms.php - лог смс
  • log_visit.php - лог посещений пользователя
  • manager.php - менеджеры
  • news.php - новости
  • payment_type.php - типы оплат
  • popular_products.php - популярные продукты
  • price.php - прайсы
  • price_group.php - группы деталей
  • provider.php - поставщики
  • provider_group.php - группы поставщиков
  • rubricator.php - рубрикатор
  • translate_message.php - перевод сообщений
  • translate_text.php - перевод текстов
  • user.php - общий обработчик для пользователей

Каталог single

Каталог для подключения любых библиотек php/js использующихся индивидуально на данном проекте.

Каталог spec

Содержит файлы для связи ссылок на сайте и обработчиков в папке class.

Основные файлы директории:

  • call_me.php - заказ звонка
  • cart.php - корзина и оформление заказа
  • catalog.php - подбор по каталогу
  • catalog_manager.php - редактирование каталога
  • contact_form.php - страница контактной информации и форма обратной связи
  • cron.php - автоматический запуск периодичных событий
  • customer.php - редактирование информации пользователя
  • dashboard.php - личный кабинет пользователя
  • finance.php - управление счетами
  • garage_manager.php - просмотр и редактирование менеджерами гаража полььзователя
  • home.php - главная страница
  • manager.php - функционал менеджера
  • manager_cart.php - просмотр менеджером корзины пользователей
  • manager_invoice_customer.php - работа с накладными для менеджера
  • message.php - внутренние сообщения
  • news.php - новости
  • own_auto.php - гараж автомобилей
  • payment.php - модули оплаты
  • payment_declaration.php - декларации доставки пользователя
  • payment_declaration_manager.php - декларации доставки менеджера
  • payment_report.php - сообщение об оплате пользователя
  • payment_report_manager.php - сообщение об оплате менеджера
  • price.php - загрузка прайса
  • price_group.php - группы прайсов
  • price_profile.php - профили загрузки прайсов
  • price_queue.php - очередь загрузки прайсов
  • price_search_log.php - история поиска по коду
  • print_content.php - вывод на печать
  • rubricator.php - рубрикатор
  • search.php - релевантный поиск
  • test.php - тестовая страница, может использоваться для проверки функционала отдельных модулей
  • user.php - регистрация пользователя, вход на сайт, выход
  • vin_request.php - работа с VIN запросами


Все файлы в данной директории должны иметь название в нижнем регистре, латиницей, для разделения слов допускается только знак нижнего подчеркивания "_". Пример файла:

<?php
$sPrefix='customer_';
$oObject=new Customer();

switch (Base::$aRequest['action'])
{
	case $sPrefix.'profile':
		$oObject->Profile();
		break;

	case $sPrefix.'phone':
	case $sPrefix.'phone_edit':
		$oObject->Phone();
		break;

	case $sPrefix.'change_rating':
		$oObject->ChangeRating();
		break;

	default:
		$oObject->Index();
		break;
}
?>

В данном примере описана связь страниц:

с обработчиками в классе Customer (/class/module/Customer.php)

Каталог template

Содержит шаблоны "*.tpl" для работы с шаблонизатором Smarty и генерации HTML кода.

Основные файлы и директории:

  • addon - директория с общими для всех проектов шаблонами, содержит шаблоны форм, таблиц
  • ... - шаблоны от модулей
  • mpanel - директория с шаблонами админки
  • templates_c - файлы кеша Smarty, их не нужно редактировать
  • footer.tpl - шаблон футера
  • header.tpl - шаблон хедера
  • header_print.tpl - ???
  • index.tpl - основной шаблон, в него подключаются header.tpl и footer.tpl, также он выводит переменную Base::$sText в которую обработчики отправляют контент
  • message_input.tpl - перевод сообщений для js


В файлах "*.tpl" обычно используются:

Каталог verstka

Данный каталог содержит исходные файлы верстки сайта. Необходим для сохранения истории верстки.