\User_Data_Manager

SiteBill krascap admin class

Summary

Methods
Properties
Constants
SiteBill_Rent_Editor()
main()
getNotActiveAdvCount()
getRabotaAdminMenu()
getOrdersAdminMenu()
getShopAdminMenu()
getSitebillAdminMenu()
compile_menu()
getAdminMenu()
getSimpleAdminMenu()
getAdminMenuArray()
massDelete()
deleteRecord()
hasChilds()
getGridFrame()
getAdditionalMenu()
getSearchByIDForm()
grid()
newRecord()
editRecord()
checkData()
getDeleteJsFunction()
getSubTypeFlatList()
getChildList()
getDistrictList()
getStreetList()
loadRecord()
SiteBill_Krascap_Admin()
clearItems()
importData()
getDistrictIdByName()
getTypeByNameForRent()
getRentRoomCount()
addRentRecord()
checkRentFormat()
checkSalesFormat()
getTypeByName()
getTypeIDByRoomCount()
addRecord()
loadData()
getLoadForm()
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()
__construct()
init_more_fields()
checkUniquety()
delete_data()
check_access_to_data()
check_access_to_aggregated_data()
get_data_grid()
getOfferList()
add_data()
edit_data()
setStatusDate()
setUpdatedAtDate()
check_data()
getTopMenu()
get_form()
getSteps()
_get_form_step_divided()
_get_form_standart()
$image_number
$lock_title
$error_message
$uploadify_dir
$storage_dir
$_grid_constructor_local
$_grid_viewer_local
$table_name
$primary_key
MEDIA_SAVE_FOLDER
FrontAction_isunderconstruct()
FrontAction_yandexrealty_export()
grid_data()
setGridViewType()
getServerFullUrl()
initLocalComponents()
parseLocalSettings()
_setGridConstructor()
restoreFavorites()
_before_edit_done_action()
_before_add_done_action()
_before_check_action()
_upAction()
_edit_doneAction()
_editAction()
_new_doneAction()
_deleteAction()
_newAction()
_defaultAction()
removeTemporaryFields()
createTranslitAliasByFields()
makeUniqueAlias()
saveTranslitAlias()
$_grid_constructor
$config_loaded
$config_array
$storage
$Heaps
$localSettings
N/A
xssProtect()
getSafeValue()
notifyAboutModerationNeed()
notifyUserAboutAdding()
$external_uploadify_image_array
N/A

Constants

MEDIA_SAVE_FOLDER

MEDIA_SAVE_FOLDER

Properties

$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

$table_name

$table_name : 

Type

$primary_key

$primary_key : 

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

$external_uploadify_image_array

$external_uploadify_image_array : 

Type

Methods

SiteBill_Rent_Editor()

SiteBill_Rent_Editor() 

Constructor

main()

main() : string

Main

Returns

string

getNotActiveAdvCount()

getNotActiveAdvCount() : string

Get not active adv count

Returns

string

getRabotaAdminMenu()

getRabotaAdminMenu() : array

Return array with menu items for rabota.sitebill.ru

Returns

array

getOrdersAdminMenu()

getOrdersAdminMenu() : array

Return array with menu items for orders.sitebill.ru

Returns

array

getShopAdminMenu()

getShopAdminMenu() : array

Return array with menu items for shop.sitebill.ru

Returns

array

getSitebillAdminMenu()

getSitebillAdminMenu() : array

Return array with menu items for shop.sitebill.ru

Returns

array

compile_menu()

compile_menu(array  $menu) : string

Compile dropdown menu from array

Parameters

array $menu

Returns

string

getAdminMenu()

getAdminMenu() : string

Get admin menu

Returns

string

getSimpleAdminMenu()

getSimpleAdminMenu() : string

Get admin menu

Returns

string

getAdminMenuArray()

getAdminMenuArray() 

massDelete()

massDelete(array  $rows) : boolean

Mass delete

Parameters

array $rows

rows

Returns

boolean

deleteRecord()

deleteRecord(integer  $record_id) : boolean

Delete record

Parameters

integer $record_id

record ID

Returns

boolean

hasChilds()

hasChilds(integer  $tid) : boolean

Has childs?

Parameters

integer $tid

tid

Returns

boolean

getGridFrame()

getGridFrame() : string

Get grid frame

Returns

string

getAdditionalMenu()

getAdditionalMenu() : string

Get additional menu

Returns

string

getSearchByIDForm()

getSearchByIDForm() : string

Get search by ID form

Returns

string

grid()

grid(integer  $user_id, integer  $current_category_id) : string

Return grid

Parameters

integer $user_id

user id

integer $current_category_id

current category id

Returns

string

newRecord()

newRecord(array  $data_array) : string

New record

Parameters

array $data_array

data array

Returns

string

editRecord()

editRecord(array  $data_array) : string

Edit record

Parameters

array $data_array

data array

Returns

string

checkData()

checkData(array  $data_array) : boolean

Check data

Parameters

array $data_array

data array

Returns

boolean

getDeleteJsFunction()

getDeleteJsFunction() : string

Get delete JS function

Returns

string

getSubTypeFlatList()

getSubTypeFlatList(integer  $type_id, integer  $parent_id) : string

Get flat subtype list

Parameters

integer $type_id

type ID

integer $parent_id

parent ID

Returns

string

getChildList()

getChildList(integer  $id) : string

Get child list

Parameters

integer $id

id

Returns

string

getDistrictList()

getDistrictList(integer  $district_id) : string

Get district list

Parameters

integer $district_id

district ID

Returns

string

getStreetList()

getStreetList(string  $street) : string

Get street list

Parameters

string $street

street

Returns

string

loadRecord()

loadRecord(integer  $record_id) : array

Load record

Parameters

integer $record_id

record ID

Returns

array

SiteBill_Krascap_Admin()

SiteBill_Krascap_Admin() 

Constructor

clearItems()

clearItems(integer  $topic_id) : boolean

Clear items

Parameters

integer $topic_id

topic id

Returns

boolean

importData()

importData(  $csv_string) : boolean

Import data

Parameters

$csv_string

Returns

boolean

getDistrictIdByName()

getDistrictIdByName(string  $name) : integer

Get disrtict ID by name

Parameters

string $name

name

Returns

integer

getTypeByNameForRent()

getTypeByNameForRent(string  $name) : integer

Get type by name for rent

Parameters

string $name

name

Returns

integer

getRentRoomCount()

getRentRoomCount(string  $name) : integer

Get rent room count

Parameters

string $name

name

Returns

integer

addRentRecord()

addRentRecord(array  $items, integer  $record_number) : boolean

Add rent record

Parameters

array $items

items

integer $record_number

record number

Returns

boolean

checkRentFormat()

checkRentFormat(array  $items) : boolean

Check rent format

Parameters

array $items

items

Returns

boolean

checkSalesFormat()

checkSalesFormat(array  $items) : boolean

Check sales format

Parameters

array $items

items

Returns

boolean

getTypeByName()

getTypeByName(string  $name) : integer

Get type by name

Parameters

string $name

name

Returns

integer

getTypeIDByRoomCount()

getTypeIDByRoomCount(integer  $topic_id, integer  $room_count) : integer

Get type_id by room count

Parameters

integer $topic_id

topic ID

integer $room_count

room count

Returns

integer

addRecord()

addRecord(array  $items, integer  $record_number) : boolean

Add record

Parameters

array $items

items

integer $record_number

record number

Returns

boolean

loadData()

loadData() : boolean

Check data

Returns

boolean

getLoadForm()

getLoadForm() : string

Get load form

Returns

string

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

__construct()

__construct() 

Constructor

init_more_fields()

init_more_fields(  $form_data) 

Parameters

$form_data

checkUniquety()

checkUniquety(  $form_data) 

Parameters

$form_data

delete_data()

delete_data(string  $table_name, string  $primary_key, integer  $primary_key_value) 

Delete data

Parameters

string $table_name
string $primary_key
integer $primary_key_value

check_access_to_data()

check_access_to_data(integer  $user_id, integer  $data_id) : boolean

Check access to data

Parameters

integer $user_id
integer $data_id

Returns

boolean

check_access_to_aggregated_data()

check_access_to_aggregated_data(integer  $user_id, integer  $data_id) : boolean

Check access to data

Parameters

integer $user_id
integer $data_id

Returns

boolean

get_data_grid()

get_data_grid(integer  $user_id,   $current_category_id = false) : string

Get data grid

Parameters

integer $user_id
$current_category_id

Returns

string

getOfferList()

getOfferList(integer  $user_id, mixed  $current_category_id = false) : mixed

Get offer list

Parameters

integer $user_id
mixed $current_category_id

Returns

mixed

add_data()

add_data(array  $form_data) : boolean

Add data

Parameters

array $form_data

form data

Returns

boolean

edit_data()

edit_data(array  $form_data) : boolean

Edit data

Parameters

array $form_data

form data

Returns

boolean

setStatusDate()

setStatusDate(  $id,   $date = '') 

Parameters

$id
$date

setUpdatedAtDate()

setUpdatedAtDate(  $id) 

Parameters

$id

check_data()

check_data(array  $form_data) : boolean

Check data

Parameters

array $form_data

Returns

boolean

getTopMenu()

getTopMenu() : string

Get top menu

Returns

string

get_form()

get_form(  $form_data = array(),   $do = 'new') 

Parameters

$form_data
$do

getSteps()

getSteps(  $form_data,   $step) 

Parameters

$form_data
$step

_get_form_step_divided()

_get_form_step_divided(  $form_data = array(),   $do = 'new',   $language_id,   $button_title = '') 

Parameters

$form_data
$do
$language_id
$button_title

_get_form_standart()

_get_form_standart(  $form_data = array(),   $do = 'new',   $language_id,   $button_title = '') 

Parameters

$form_data
$do
$language_id
$button_title

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

_before_edit_done_action()

_before_edit_done_action(  $form_data) 

Parameters

$form_data

_before_add_done_action()

_before_add_done_action(  $form_data) 

Parameters

$form_data

_before_check_action()

_before_check_action(  $form_data,   $type = 'new') 

Parameters

$form_data
$type

_upAction()

_upAction() 

_edit_doneAction()

_edit_doneAction() 

_editAction()

_editAction() 

_new_doneAction()

_new_doneAction() 

_deleteAction()

_deleteAction() 

_newAction()

_newAction() 

_defaultAction()

_defaultAction() 

removeTemporaryFields()

removeTemporaryFields(  $model,   $remove_this_names = array()) 

Parameters

$model
$remove_this_names

createTranslitAliasByFields()

createTranslitAliasByFields(  $id,   $fields_for_alias) 

Parameters

$id
$fields_for_alias

makeUniqueAlias()

makeUniqueAlias(  $alias,   $id) 

Parameters

$alias
$id

saveTranslitAlias()

saveTranslitAlias(  $id) 

Parameters

$id

xssProtect()

xssProtect(  $value) 

Parameters

$value

getSafeValue()

getSafeValue(  $value) 

Parameters

$value

notifyAboutModerationNeed()

notifyAboutModerationNeed(  $id,   $action = 'new') 

Parameters

$id
$action

notifyUserAboutAdding()

notifyUserAboutAdding(  $user_id,   $id,   $topic_id) 

Parameters

$user_id
$id
$topic_id