\Onelevel_Menu

Onelevel menu class

Summary

Methods
Properties
Constants
__construct()
add_topic_url()
get_content_drop_menu()
upgrade()
main()
edit_data()
add_data()
get_app_title_bar()
saveAssociations()
get_operation_type_name_by_id()
get_operation_type_select_box()
deleteRecord()
deleteTopicItem()
get_form()
getForm()
load()
checkData()
getTopMenu()
loadCategoriesUrls()
createCatalogChains()
findParent()
loadCategoryStructure()
get_all_childs()
load_data_structure()
load_data_structure_shop()
load_data_structure_price()
getCategorySelectBox()
getLevel()
getCategorySelectBoxLeveled()
getCategorySelectBoxWithName()
getCategoryCheckboxes()
getChildNodesCheckboxes()
getShopCategorySelectBoxWithName()
load_mark_structure()
load_coachwork_structure()
load_model_structure()
load_modification_structure()
getMarkSelectBox()
get_flat_mark_select_box()
get_flat_coachwork_select_box()
get_flat_model_select_box()
get_flat_modification_select_box()
getModelSelectBox()
get_mark_option_items()
get_mark_and_model_option_items()
get_model_option_items()
getCategoryTreeModern()
getCategoryTree()
get_category_tree_control()
get_category_tree_control_shop()
get_category_tree_control_price()
getChildsItemsCount()
get_row()
get_row_control()
getChildNodesRow()
get_child_nodes_row_control()
load_operation_type_list()
getChildNodes()
getShopChildNodes()
getServiceTypesTree_selectBox()
getServiceTypesTree_optionItems()
getServiceTypeTree_array()
grid()
findCurrent()
getCategoryTreeAssoc()
saveLinkerAssociations()
update_topic_links()
load_topic_links()
getCategoryTreeLinker()
getRowAssoc()
getRowLinker()
getChildNodesRowLinker()
getChildNodesRowAssoc()
has_child()
SiteBill_Krascap()
finalizer()
getPreviewImage()
processGetRentForm()
getExtendedSearchFormParams()
get_breadcrumbs()
getIDfromURI()
processAdvancedForm()
checkAdvData()
initDataFromRequest()
topicUrlFind()
cityTopicUrlFind()
isTopicExists()
grid_adv_favorites()
_detectUrlParams()
grid_adv()
gatherRequestParams()
map()
map2()
grid_special()
grid_special_right()
getUpdateDate()
getTopicTitle()
getTopicFullInfo()
validPage()
recordHasPhoto()
getLast()
getRealtyWrap()
getBannerWrap()
getCityListTr()
getTopicListTr()
urlAnalizer()
safeRequestParams()
isRealtyDetected()
SiteBill()
getCurrentLang()
getRealtyHREF()
_getGridConstructor()
getAttachments()
appendAttachments()
escape()
getAdminTplFolder()
get_ajax_functions()
get_apps_template_full_path()
getPageByURI()
get_session_key()
delete_session_key()
getSessionUserId()
load_uploadify_images()
editImageMulti()
setExternalUploadifyImageArray()
getExternalUploadifyImageArray()
appendDocUploads()
appendUploads()
editFileMulti()
clear_uploadify_table()
clear_captcha_session_table()
clear_session_table()
delete_uploadify_images()
delete_uploadify_image()
get_ajax_auth_form()
get_simple_auth_form()
add_image_records()
add_table_image_record()
getPluploaderPlugin()
getUploadifyPlugin()
getDropzonePlugin()
getUploadifyFilePlugin()
isDemo()
demo_function_disabled()
loadConfig()
deleteImage()
makeImageMain()
rotateImage2()
rotateImage()
reorderImage()
reorderTopics()
deleteImageFiles()
getConfigValue()
getAllConfigArray()
getDebugMode()
setDebugMode()
htmlspecialchars()
htmlspecialchars_decode()
getRequestValue()
setRequestValue()
riseError()
clearError()
getError()
GetErrorMessage()
writeLog()
getImageListAdmin()
getFileListAdmin()
get_page_links_list()
get_image_array()
get_category_breadcrumbs()
get_category_breadcrumbs_string()
set_breadcrumbs_array()
get_breadcrumbs_array()
go301()
makePreview()
makeMove()
getAdminUserId()
getVendorInfoById()
getUnregisteredUserId()
growCounter()
validateEmailFormat()
validateMobilePhoneNumberFormat()
getAttachmentsBlock()
modelSimplification()
iconv()
removeDirectory()
transliteMe()
setLangSession()
getClearRequestURI()
sendFirmMail()
check_access()
need_check_access()
get_check_access_user_id()
get_menu()
$operation_type_array
$image_number
$lock_title
$error_message
$uploadify_dir
$storage_dir
$_grid_constructor_local
$_grid_viewer_local
MEDIA_SAVE_FOLDER
getStrModel()
FrontAction_isunderconstruct()
FrontAction_yandexrealty_export()
grid_data()
setGridViewType()
getServerFullUrl()
initLocalComponents()
parseLocalSettings()
_setGridConstructor()
restoreFavorites()
$_grid_constructor
$config_loaded
$config_array
$storage
$Heaps
$localSettings
N/A
updateAssociations()
createCategoriesUrls()
appendParent()
getRealtyTypeSelectbox()
getOperationTypeSelectbox()
xssProtect()
getSafeValue()
$_category_structure
$_category_structure_published
$_category_urls
$external_uploadify_image_array
N/A

Constants

MEDIA_SAVE_FOLDER

MEDIA_SAVE_FOLDER

Properties

$operation_type_array

$operation_type_array : 

Type

$image_number

$image_number : 

Type

$lock_title

$lock_title : 

Type

$error_message

$error_message : 

Error message

Type

$uploadify_dir

$uploadify_dir : 

Type

$storage_dir

$storage_dir : 

Type

$_grid_constructor_local

$_grid_constructor_local : 

Type

$_grid_viewer_local

$_grid_viewer_local : 

Type

$_grid_constructor

$_grid_constructor : 

Type

$config_loaded

$config_loaded : 

Type

$config_array

$config_array : 

Type

$storage

$storage : 

Type

$Heaps

$Heaps : 

Type

$localSettings

$localSettings : 

Type

$_category_structure

$_category_structure : 

Type

$_category_structure_published

$_category_structure_published : 

Type

$_category_urls

$_category_urls : 

Type

$external_uploadify_image_array

$external_uploadify_image_array : 

Type

Methods

__construct()

__construct() 

Constructor

add_topic_url()

add_topic_url() 

get_content_drop_menu()

get_content_drop_menu() 

upgrade()

upgrade() 

main()

main() : string

Main

Returns

string

edit_data()

edit_data(  $form_data,   $language_id,   $primary_key_value = false) 

Parameters

$form_data
$language_id
$primary_key_value

add_data()

add_data(  $form_data,   $language_id) 

Parameters

$form_data
$language_id

get_app_title_bar()

get_app_title_bar() 

saveAssociations()

saveAssociations(  $rules) 

Parameters

$rules

get_operation_type_name_by_id()

get_operation_type_name_by_id(integer  $operation_type_id) : string

Get operation type name by ID

Parameters

integer $operation_type_id

operation type id

Returns

string

get_operation_type_select_box()

get_operation_type_select_box(integer  $operation_type_id) : string

Get operation type select box

Parameters

integer $operation_type_id

operation type id

Returns

string

deleteRecord()

deleteRecord(integer  $id) : boolean

Delete record

Parameters

integer $id

topic ID

Returns

boolean

deleteTopicItem()

deleteTopicItem(  $id,   $delete_option,   $childs_delete_option) 

Parameters

$id
$delete_option
$childs_delete_option

get_form()

get_form(  $form_data = array(),   $do = 'new',   $language_id,   $button_title = '',   $action = 'index.php') 

Parameters

$form_data
$do
$language_id
$button_title
$action

getForm()

getForm(string  $action = 'new') : string

Get form

Parameters

string $action

action

Returns

string

load()

load(integer  $record_id) : boolean

Load

Parameters

integer $record_id

record ID

Returns

boolean

checkData()

checkData() : boolean

Check data

Returns

boolean

getTopMenu()

getTopMenu() : string

Get top menu

Returns

string

loadCategoriesUrls()

loadCategoriesUrls() : array

Возвращает ассоциативный массив соответствий id категорий и составным иерархическим урлам

Returns

array

createCatalogChains()

createCatalogChains() 

findParent()

findParent(  $child_id,   $items,   $chain,   $chain_num,   $categories) 

Parameters

$child_id
$items
$chain
$chain_num
$categories

loadCategoryStructure()

loadCategoryStructure(  $load_published = false) : array

Load category structure

Parameters

$load_published

true/false - параметр определяет загружать ли категории по статусу активности. Если true - то будут загружены только активные. Если false - то будут загружены все категории

Returns

array

get_all_childs()

get_all_childs(  $category_id, array  $category_structure) 

Get all childs

Parameters

$category_id
array $category_structure

load_data_structure()

load_data_structure(integer  $user_id,   $params = array(),   $search_params = array()) : array

Load data structure

Parameters

integer $user_id
$params
$search_params

Returns

array

load_data_structure_shop()

load_data_structure_shop(integer  $user_id,   $params = array()) : array

Load data structure for shop

Parameters

integer $user_id
$params

Returns

array

load_data_structure_price()

load_data_structure_price(integer  $user_id,   $params = array()) : array

Load data structure for price

Parameters

integer $user_id
$params

Returns

array

getCategorySelectBox()

getCategorySelectBox(integer  $current_category_id, mixed  $ajax_function = false) : string

Get category select box

Parameters

integer $current_category_id

category ID

mixed $ajax_function

Returns

string

getLevel()

getLevel(  $category_structure,   $pid,   $level,   $leveled,   $selected_id,   $now_selected,   $find_more) 

Parameters

$category_structure
$pid
$level
$leveled
$selected_id
$now_selected
$find_more

getCategorySelectBoxLeveled()

getCategorySelectBoxLeveled(  $name,   $selected) 

Parameters

$name
$selected

getCategorySelectBoxWithName()

getCategorySelectBoxWithName(string  $name, integer  $current_category_id, mixed  $ajax_function = false,   $parameters = array(),   $zero_title = '') : string

Get category select box

Parameters

string $name

name

integer $current_category_id

category ID

mixed $ajax_function
$parameters
$zero_title

Returns

string

getCategoryCheckboxes()

getCategoryCheckboxes(  $name,   $current_category_id,   $ajax_function = false) 

Parameters

$name
$current_category_id
$ajax_function

getChildNodesCheckboxes()

getChildNodesCheckboxes(  $name,   $categoryID,   $category_structure,   $current_category_id) 

Parameters

$name
$categoryID
$category_structure
$current_category_id

getShopCategorySelectBoxWithName()

getShopCategorySelectBoxWithName(  $name,   $current_category_id,   $ajax_function = false) 

Parameters

$name
$current_category_id
$ajax_function

load_mark_structure()

load_mark_structure() : array

Load mark structure

Returns

array

load_coachwork_structure()

load_coachwork_structure() : array

Load coachwork structure

Returns

array

load_model_structure()

load_model_structure() : array

Load model structure

Returns

array

load_modification_structure()

load_modification_structure() : array

Load modification structure

Returns

array

getMarkSelectBox()

getMarkSelectBox(integer  $current_mark_id, mixed  $ajax_function = false) : string

Get mark select box

Parameters

integer $current_mark_id

mark ID

mixed $ajax_function

ajax function

Returns

string

get_flat_mark_select_box()

get_flat_mark_select_box(integer  $categoryID, integer  $current_mark_id) : string

Get flat mark select box

Parameters

integer $categoryID

category ID

integer $current_mark_id

selected mark_id

Returns

string

get_flat_coachwork_select_box()

get_flat_coachwork_select_box(integer  $categoryID, integer  $current_coachwork_id) : string

Get flat coachwork select box

Parameters

integer $categoryID

category ID

integer $current_coachwork_id

selected coachwork_id

Returns

string

get_flat_model_select_box()

get_flat_model_select_box(integer  $mark_id, integer  $current_model_id) : string

Get flat model select box

Parameters

integer $mark_id

mark ID

integer $current_model_id

selected model_id

Returns

string

get_flat_modification_select_box()

get_flat_modification_select_box(integer  $model_id, integer  $current_modification_id) : string

Get flat modification select box

Parameters

integer $model_id

model ID

integer $current_modification_id

selected modification_id

Returns

string

getModelSelectBox()

getModelSelectBox(integer  $current_mark_id) : string

Get mark select box

Parameters

integer $current_mark_id

mark ID

Returns

string

get_mark_option_items()

get_mark_option_items(integer  $categoryID, array  $mark_structure, integer  $level, integer  $current_mark_id) : string

Get mark option items

Parameters

integer $categoryID

category ID

array $mark_structure

mark structure

integer $level
integer $current_mark_id

selected mark_id

Returns

string

get_mark_and_model_option_items()

get_mark_and_model_option_items(integer  $categoryID, array  $mark_structure, integer  $level, integer  $current_model_id, array  $model_structure) : string

Get mark and model option items

Parameters

integer $categoryID

category ID

array $mark_structure

mark structure

integer $level
integer $current_model_id

selected model_id

array $model_structure

Returns

string

get_model_option_items()

get_model_option_items(array  $model_structure, integer  $current_model_id, integer  $mark_id, integer  $level) : string

Get model option items

Parameters

array $model_structure

model structure

integer $current_model_id

current model id

integer $mark_id
integer $level

level

Returns

string

getCategoryTreeModern()

getCategoryTreeModern(  $current_category_id) 

Parameters

$current_category_id

getCategoryTree()

getCategoryTree(integer  $current_category_id) : string

Get category tree

Parameters

integer $current_category_id

category ID

Returns

string

get_category_tree_control()

get_category_tree_control(integer  $current_category_id, integer  $user_id, boolean  $control = false, array  $params = array(),   $search_params = array()) : string

Get category tree control

Parameters

integer $current_category_id

category ID

integer $user_id
boolean $control
array $params
$search_params

Returns

string

get_category_tree_control_shop()

get_category_tree_control_shop(integer  $current_category_id, integer  $user_id, boolean  $control = false, array  $params = array()) : string

Get category tree control for shop

Parameters

integer $current_category_id

category ID

integer $user_id
boolean $control
array $params

Returns

string

get_category_tree_control_price()

get_category_tree_control_price(integer  $current_category_id, integer  $user_id, boolean  $control = false, array  $params = array()) : string

Get category tree control for price

Parameters

integer $current_category_id

category ID

integer $user_id
boolean $control
array $params

Returns

string

getChildsItemsCount()

getChildsItemsCount(  $id,   $category_structure_childs,   $data_structure,   $ret) 

Parameters

$id
$category_structure_childs
$data_structure
$ret

get_row()

get_row(integer  $categoryID, array  $category_structure, integer  $level, string  $row_class) 

Get row

Parameters

integer $categoryID
array $category_structure
integer $level
string $row_class

get_row_control()

get_row_control(integer  $categoryID, array  $category_structure, integer  $level, string  $row_class, integer  $user_id, boolean  $control = false, array  $data_structure, integer  $current_category_id, array  $params = array()) : string

Get row control

Parameters

integer $categoryID
array $category_structure
integer $level
string $row_class
integer $user_id
boolean $control
array $data_structure
integer $current_category_id
array $params

Returns

string

getChildNodesRow()

getChildNodesRow(  $categoryID,   $category_structure,   $level,   $current_category_id) 

Get child nodes

Parameters

$categoryID
$category_structure
$level
$current_category_id

get_child_nodes_row_control()

get_child_nodes_row_control(  $categoryID,   $category_structure,   $level,   $current_category_id,   $user_id,   $control = false,   $data_structure,   $params = array()) 

Get child nodes control

Parameters

$categoryID
$category_structure
$level
$current_category_id
$user_id
$control
$data_structure
$params

load_operation_type_list()

load_operation_type_list() : array

Load operation type list

Returns

array

getChildNodes()

getChildNodes(  $categoryID,   $category_structure,   $level,   $current_category_id) 

Get child nodes

Parameters

$categoryID
$category_structure
$level
$current_category_id

getShopChildNodes()

getShopChildNodes(  $categoryID,   $category_structure,   $level,   $current_category_id) 

Parameters

$categoryID
$category_structure
$level
$current_category_id

getServiceTypesTree_selectBox()

getServiceTypesTree_selectBox(  $select_name, integer  $current_servicetype_id) : string

Get service type select box

Parameters

$select_name
integer $current_servicetype_id

service type ID

Returns

string

getServiceTypesTree_optionItems()

getServiceTypesTree_optionItems(array  $array, integer  $current_servicetype_id) : string

Get service type 'option' items for select box

Parameters

array $array
  • items
integer $current_servicetype_id
  • current service type ID

Returns

string

getServiceTypeTree_array()

getServiceTypeTree_array(  $level,   $parent_id) : array

Get service type tree in array with field 'level', which specify the nesting level, and 'child' containing child array with the same structure as parent

Parameters

$level
$parent_id

Returns

array

grid()

grid() : string

Grid

Returns

string

findCurrent()

findCurrent(  $structure,   $active) 

Parameters

$structure
$active

getCategoryTreeAssoc()

getCategoryTreeAssoc() 

saveLinkerAssociations()

saveLinkerAssociations(  $rules) 

Parameters

$rules

update_topic_links()

update_topic_links(  $topic_id,   $link_topic_id,   $params) 

Parameters

$topic_id
$link_topic_id
$params

load_topic_links()

load_topic_links() 

getCategoryTreeLinker()

getCategoryTreeLinker() 

getRowAssoc()

getRowAssoc(  $categoryID,   $category_structure,   $level,   $row_class) 

Parameters

$categoryID
$category_structure
$level
$row_class

getRowLinker()

getRowLinker(  $categoryID,   $category_structure,   $level,   $row_class,   $topic_links_hash) 

Parameters

$categoryID
$category_structure
$level
$row_class
$topic_links_hash

getChildNodesRowLinker()

getChildNodesRowLinker(  $categoryID,   $category_structure,   $level,   $current_category_id,   $topic_links_hash) 

Parameters

$categoryID
$category_structure
$level
$current_category_id
$topic_links_hash

getChildNodesRowAssoc()

getChildNodesRowAssoc(  $categoryID,   $category_structure,   $level,   $current_category_id) 

Parameters

$categoryID
$category_structure
$level
$current_category_id

has_child()

has_child(  $id) 

Parameters

$id

SiteBill_Krascap()

SiteBill_Krascap() : void

Constructor

finalizer()

finalizer() 

Method for final operations

getPreviewImage()

getPreviewImage(integer  $record_id, integer  $index) : string

Get preview image

Parameters

integer $record_id

record ID

integer $index

image index

Returns

string

processGetRentForm()

processGetRentForm() : string

Process get form

Returns

string

getExtendedSearchFormParams()

getExtendedSearchFormParams() 

get_breadcrumbs()

get_breadcrumbs(array  $items) : string

Get breadcrumbs

Parameters

array $items

Returns

string

getIDfromURI()

getIDfromURI(string  $uri) : integer

Get ID from URI

Parameters

string $uri

uri

Returns

integer

processAdvancedForm()

processAdvancedForm() : string

Process advanced form

Returns

string

checkAdvData()

checkAdvData(array  $data) : boolean

Check adv data

Parameters

array $data

data

Returns

boolean

initDataFromRequest()

initDataFromRequest() : array

Init data from request

Returns

array

topicUrlFind()

topicUrlFind(  $request_uri) 

Parameters

$request_uri

cityTopicUrlFind()

cityTopicUrlFind(  $request_uri) 

Parameters

$request_uri

isTopicExists()

isTopicExists(  $topic_id) 

Parameters

$topic_id

grid_adv_favorites()

grid_adv_favorites() 

_detectUrlParams()

_detectUrlParams(  $server_request_uri) 

Parameters

$server_request_uri

grid_adv()

grid_adv(  $params = array()) : string

Grid adv

Parameters

$params

Returns

string

gatherRequestParams()

gatherRequestParams() 

map()

map(  $only_data = false) 

Parameters

$only_data

map2()

map2(  $only_data = false) 

Parameters

$only_data

grid_special()

grid_special() : 

Get special grid

Returns

grid_special_right()

grid_special_right() : 

Get special right grid

Returns

getUpdateDate()

getUpdateDate() : string

Get update date

Returns

string

getTopicTitle()

getTopicTitle(integer  $topic_id) : string

Get topic title

Parameters

integer $topic_id

topic ID

Returns

string

getTopicFullInfo()

getTopicFullInfo(integer  $topic_id) : array

Get topic full info

Parameters

integer $topic_id

topic ID

Returns

array

validPage()

validPage(integer  $array_count, integer  $counter, integer  $page = 1) : boolean

Valid page

Parameters

integer $array_count

array count

integer $counter

counter

integer $page

page

Returns

boolean

recordHasPhoto()

recordHasPhoto(integer  $record_id) : boolean

If record has photo then return true else false

Parameters

integer $record_id

record ID

Returns

boolean

getLast()

getLast(  $count = 10) 

Parameters

$count

getRealtyWrap()

getRealtyWrap(  $data) 

Parameters

$data

getBannerWrap()

getBannerWrap(  $data) 

Parameters

$data

getCityListTr()

getCityListTr() 

getTopicListTr()

getTopicListTr() 

urlAnalizer()

urlAnalizer() 

safeRequestParams()

safeRequestParams(  $params) 

Parameters

$params

isRealtyDetected()

isRealtyDetected(  $requesturi) 

Parameters

$requesturi

SiteBill()

SiteBill() 

Constructor

getCurrentLang()

getCurrentLang() 

getRealtyHREF()

getRealtyHREF(  $rid,   $external = false,   $params = array()) 

Parameters

$rid
$external
$params

_getGridConstructor()

_getGridConstructor() 

getAttachments()

getAttachments(  $object_type,   $object_id) 

Parameters

$object_type
$object_id

appendAttachments()

appendAttachments(  $object_type,   $object_id,   $attachments) 

Parameters

$object_type
$object_id
$attachments

escape()

escape(  $text) 

Parameters

$text

getAdminTplFolder()

getAdminTplFolder() 

get_ajax_functions()

get_ajax_functions() 

get_apps_template_full_path()

get_apps_template_full_path(string  $apps_name, string  $theme, string  $template_value) : boolean

Get apps template full path

Parameters

string $apps_name
string $theme
string $template_value

Returns

boolean

getPageByURI()

getPageByURI(string  $uri) : array

Get page by URI

Parameters

string $uri

uri

Returns

array

get_session_key()

get_session_key() : string

Get session key

Returns

string

delete_session_key()

delete_session_key(string  $session_key) : void

Delete session by key

Parameters

string $session_key

getSessionUserId()

getSessionUserId() : integer

Get session user ID

Returns

integer

load_uploadify_images()

load_uploadify_images(string  $session_code = '',   $element_name = '') : array

Load uploadify images

Parameters

string $session_code

session code

$element_name

Returns

array

editImageMulti()

editImageMulti(string  $action, string  $table_name, string  $key, integer  $record_id,   $name_template = '') : boolean

Edit image

Parameters

string $action

action

string $table_name

table name

string $key

key

integer $record_id

record ID

$name_template

Returns

boolean

setExternalUploadifyImageArray()

setExternalUploadifyImageArray(  $_image_array) : void

Эта функция устанавливает массив с картинками для эмитации загрузки картинок в UPLOADIFY Используется в APPS.API для загрузки картинок из мобильного приложения

Parameters

$_image_array
  • массив с картинками

getExternalUploadifyImageArray()

getExternalUploadifyImageArray() 

appendDocUploads()

appendDocUploads(  $table,   $field,   $pk_field,   $record_id) 

Parameters

$table
$field
$pk_field
$record_id

appendUploads()

appendUploads(  $table,   $field,   $pk_field,   $record_id,   $name_template = '') 

Parameters

$table
$field
$pk_field
$record_id
$name_template

editFileMulti()

editFileMulti(string  $action, string  $table_name, string  $key, integer  $record_id) : boolean

Edit file

Parameters

string $action

action

string $table_name

table name

string $key

key

integer $record_id

record ID

Returns

boolean

clear_uploadify_table()

clear_uploadify_table(  $session_code = '',   $anyway = false) 

Parameters

$session_code
$anyway

clear_captcha_session_table()

clear_captcha_session_table() 

clear_session_table()

clear_session_table() 

delete_uploadify_images()

delete_uploadify_images(string  $session_code,   $element = '') : array

Delete uploadify images

Parameters

string $session_code

session code

$element

Returns

array

delete_uploadify_image()

delete_uploadify_image(string  $image_name) : array

Delete uploadify image

Parameters

string $image_name

image_name

Returns

array

get_ajax_auth_form()

get_ajax_auth_form() 

get_simple_auth_form()

get_simple_auth_form(string  $action = '/login/', boolean  $register = true, boolean  $remind = true) : string

Get simple auth form

Parameters

string $action
boolean $register
boolean $remind

Returns

string

add_image_records()

add_image_records(array  $images, string  $table_name, string  $key, integer  $record_id) : boolean

Add image data records

Parameters

array $images

images

string $table_name

table name

string $key

key

integer $record_id

record id

Returns

boolean

add_table_image_record()

add_table_image_record(  $table_name,   $key, integer  $record_id, integer  $image_id) : boolean

Add table_image record

Parameters

$table_name
$key
integer $record_id

record id

integer $image_id

image id

Returns

boolean

getPluploaderPlugin()

getPluploaderPlugin(string  $session_code) : string

Get Plupload plugin (http://www.plupload.com/) Only html4 version available (not attached files for others)

Parameters

string $session_code

session code

Returns

string

getUploadifyPlugin()

getUploadifyPlugin(string  $session_code,   $params = array()) : string

Get uploadify plugin

Parameters

string $session_code

session code

$params

Returns

string

getDropzonePlugin()

getDropzonePlugin(  $session_code,   $params = array()) 

Parameters

$session_code
$params

getUploadifyFilePlugin()

getUploadifyFilePlugin(string  $session_code,   $params = array()) : string

Get uploadify plugin

Parameters

string $session_code

session code

$params

Returns

string

isDemo()

isDemo() : boolean

Is demo

Returns

boolean

demo_function_disabled()

demo_function_disabled() : string

Demo function disabled

Returns

string

loadConfig()

loadConfig() : 

Load config

Returns

deleteImage()

deleteImage(string  $table_name, integer  $image_id) : boolean

Delete image

Parameters

string $table_name

table name

integer $image_id

image id

Returns

boolean

makeImageMain()

makeImageMain(  $action,   $image_id,   $key,   $key_value) 

Parameters

$action
$image_id
$key
$key_value

rotateImage2()

rotateImage2(  $thisimage,   $isWatermark,   $degree,   $parameters) 

Parameters

$thisimage
$isWatermark
$degree
$parameters

rotateImage()

rotateImage(  $action,   $image_id,   $key,   $key_value,   $rot_dir) 

Parameters

$action
$image_id
$key
$key_value
$rot_dir

reorderImage()

reorderImage(  $action,   $image_id,   $key,   $key_value,   $direction) 

Parameters

$action
$image_id
$key
$key_value
$direction

reorderTopics()

reorderTopics(  $orderArray) 

Parameters

$orderArray

deleteImageFiles()

deleteImageFiles(  $image_id) : boolean

Delete image files

Parameters

$image_id

image id

Returns

boolean

getConfigValue()

getConfigValue(string  $key) : string

Get config value

Parameters

string $key

key

Returns

string

getAllConfigArray()

getAllConfigArray() 

getDebugMode()

getDebugMode() : boolean

Get debug mode

Returns

boolean

setDebugMode()

setDebugMode(  $debug_mode) : void

Set debug mode

Parameters

$debug_mode

htmlspecialchars()

htmlspecialchars(  $value,   $flags = '') 

Parameters

$value
$flags

htmlspecialchars_decode()

htmlspecialchars_decode(  $value,   $flags = '') 

Parameters

$value
$flags

getRequestValue()

getRequestValue(string  $key,   $type = '',   $from = '') : string

Get value

Parameters

string $key

key

$type
$from

Returns

string

setRequestValue()

setRequestValue(string  $key, string  $value) : void

Set request value

Parameters

string $key

key

string $value

value

riseError()

riseError(  $error_message) : void

Rise error

Parameters

$error_message

clearError()

clearError() 

getError()

getError() : boolean

Get error

Returns

boolean

GetErrorMessage()

GetErrorMessage() : string

Get error message

Returns

string

writeLog()

writeLog(string  $message) : void

Write log message

Parameters

string $message

message

getImageListAdmin()

getImageListAdmin(string  $action, string  $table_name, string  $key, integer  $record_id,   $callback_count = NULL,   $no_controls = false) : string

Get image list admin

Parameters

string $action

action

string $table_name

table name

string $key

key

integer $record_id

record id

$callback_count
$no_controls

Returns

string

getFileListAdmin()

getFileListAdmin(string  $action, string  $table_name, string  $key, integer  $record_id) : string

Get file list admin

Parameters

string $action

action

string $table_name

table name

string $key

key

integer $record_id

record id

Returns

string

get_page_links_list()

get_page_links_list(  $page, integer  $total, integer  $per_page, array  $params) : array

Get page links list

Parameters

$page
integer $total
integer $per_page
array $params

Returns

array

get_image_array()

get_image_array(string  $action, string  $table_name, string  $key, integer  $record_id, integer  $limit) : string

Get image list admin

Parameters

string $action

action

string $table_name

table name

string $key

key

integer $record_id

record id

integer $limit

limit value

Returns

string

get_category_breadcrumbs()

get_category_breadcrumbs(array  $params, array  $category_structure, string  $url = '') : string

Get category breadcrumbs

Parameters

array $params
array $category_structure
string $url

Returns

string

get_category_breadcrumbs_string()

get_category_breadcrumbs_string(array  $params, array  $category_structure, string  $url = '') : string

Get category breadcrumbs

Parameters

array $params
array $category_structure
string $url

Returns

string

set_breadcrumbs_array()

set_breadcrumbs_array(  $breadcrumbs_array = array()) 

Parameters

$breadcrumbs_array

get_breadcrumbs_array()

get_breadcrumbs_array() 

go301()

go301(  $new_location) 

Parameters

$new_location

makePreview()

makePreview(  $src,   $dst,   $width,   $height,   $ext = 'jpg',   $md) : 

Make preview

Parameters

$src
$dst
$width
$height
$ext
$md

Returns

makeMove()

makeMove(  $src,   $dst) : 

Make move

Parameters

$src
$dst

Returns

getAdminUserId()

getAdminUserId() : integer

return id of Admininstrator

Returns

integer

getVendorInfoById()

getVendorInfoById(  $id) : string

return Vendor info

Parameters

$id

Returns

string

getUnregisteredUserId()

getUnregisteredUserId() 

growCounter()

growCounter(  $table_name,   $primary_key_name,   $primary_key_value,   $user_id) 

Parameters

$table_name
$primary_key_name
$primary_key_value
$user_id

validateEmailFormat()

validateEmailFormat(  $email) 

Parameters

$email

validateMobilePhoneNumberFormat()

validateMobilePhoneNumberFormat(  $phone_number,   $mask = '') 

Parameters

$phone_number
$mask

getAttachmentsBlock()

getAttachmentsBlock() 

modelSimplification()

modelSimplification(  $model) 

Parameters

$model

iconv()

iconv(  $in_charset,   $out_charset,   $string) 

Parameters

$in_charset
$out_charset
$string

removeDirectory()

removeDirectory(  $dir,   $msg = array()) 

Parameters

$dir
$msg

transliteMe()

transliteMe(  $str) 

Parameters

$str

setLangSession()

setLangSession() 

getClearRequestURI()

getClearRequestURI() 

sendFirmMail()

sendFirmMail(  $to,   $from,   $subject,   $body) 

Parameters

$to
$from
$subject
$body

check_access()

check_access(\type  $table_name, \type  $user_id, \type  $control_name, \type  $primary_key_name, \type  $primary_key_value) : boolean

Проверка владельца записи в таблице по USER_ID, если владелец совпадает с $table_name.user_id тогда возвращаем TRUE иначе FALSE

Parameters

\type $table_name
  • название таблицы
\type $user_id
  • идентификатор пользователя для проверки
\type $control_name
  • тип действия (edit, delete...)
\type $primary_key_name
  • название PRIMARY KEY в таблице
\type $primary_key_value
  • значение PRIMARY KEY

Returns

boolean

need_check_access()

need_check_access(  $table_name) 

Parameters

$table_name

get_check_access_user_id()

get_check_access_user_id(  $table_name) 

Parameters

$table_name

get_menu()

get_menu() : 

Get menu

Returns

getStrModel()

getStrModel() 

FrontAction_isunderconstruct()

FrontAction_isunderconstruct() 

FrontAction_yandexrealty_export()

FrontAction_yandexrealty_export() 

grid_data()

grid_data() 

setGridViewType()

setGridViewType() 

getServerFullUrl()

getServerFullUrl(  $domain_only = false) 

Parameters

$domain_only

initLocalComponents()

initLocalComponents() 

parseLocalSettings()

parseLocalSettings() 

_setGridConstructor()

_setGridConstructor(  $newGridConstructor) 

Parameters

$newGridConstructor

restoreFavorites()

restoreFavorites(  $user_id) 

Parameters

$user_id

updateAssociations()

updateAssociations(  $items = array(),   $rules = array()) 

Parameters

$items
$rules

createCategoriesUrls()

createCategoriesUrls() : array

Создает ассоциативный массив соответствий id категорий и составным иерархическим урлам

Returns

array

appendParent()

appendParent(  $child_id,   $items,   $chain,   $categories) 

Ищет транслитерированный урл предка для конкретного элемента

Parameters

$child_id
$items
$chain
$categories

getRealtyTypeSelectbox()

getRealtyTypeSelectbox(  $realty_type,   $topic_id) 

Parameters

$realty_type
$topic_id

getOperationTypeSelectbox()

getOperationTypeSelectbox(  $operation_type,   $topic_id) 

Parameters

$operation_type
$topic_id

xssProtect()

xssProtect(  $value) 

Parameters

$value

getSafeValue()

getSafeValue(  $value) 

Parameters

$value