Properties

$id

$id : 

Type

$id_profile

$id_profile : string

Type

string — Determine employee profile

$id_lang

$id_lang : string

Type

string — employee language

$lastname

$lastname : string

Type

string — Lastname

$firstname

$firstname : string

Type

string — Firstname

$email

$email : string

Type

string — e-mail

$passwd

$passwd : string

Type

string — Password

$last_passwd_gen

$last_passwd_gen : \datetime

Type

\datetime — Password

$stats_date_from

$stats_date_from : 

Type

$stats_date_to

$stats_date_to : 

Type

$stats_compare_from

$stats_compare_from : 

Type

$stats_compare_to

$stats_compare_to : 

Type

$stats_compare_option

$stats_compare_option : 

Type

$preselect_date_range

$preselect_date_range : 

Type

$bo_color

$bo_color : string

Type

string — Display back office background in the specified color

$default_tab

$default_tab : 

Type

$bo_theme

$bo_theme : string

Type

string — employee's chosen theme

$bo_css

$bo_css : string

Type

string — employee's chosen css file

$bo_width

$bo_width : integer

Type

integer — employee desired screen width

$bo_menu

$bo_menu : \bool,

Type

\bool, — false

$bo_show_screencast

$bo_show_screencast : 

Type

$active

$active : boolean

Type

boolean — Status

$optin

$optin : boolean

Type

boolean — Optin status

$remote_addr

$remote_addr : 

Type

$id_last_order

$id_last_order : 

Type

$id_last_customer_message

$id_last_customer_message : 

Type

$id_last_customer

$id_last_customer : 

Type

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

$associated_shops

$associated_shops : 

Type

Methods

__construct()

__construct(  $id = null,   $id_lang = null,   $id_shop = null) 

Parameters

$id
$id_lang
$id_shop

getFields()

getFields() : array

Returns

array

add()

add(  $autodate = true,   $null_values = true) 

Parameters

$autodate
$null_values

update()

update(  $null_values = false) 

Parameters

$null_values

getEmployees()

getEmployees() 

Return list of employees

getByEmail()

getByEmail(string  $email, string  $passwd = null) : \Employee

Return employee instance from its e-mail (optionnaly check password)

Parameters

string $email

e-mail

string $passwd

Password is also checked if specified

Returns

\Employee —

instance

employeeExists()

employeeExists(  $email) 

Parameters

$email

checkPassword()

checkPassword(  $id_employee, string  $passwd) : boolean

Check if employee password is the right one

Parameters

$id_employee
string $passwd

Password

Returns

boolean —

result

countProfile()

countProfile(  $id_profile,   $active_only = false) 

Parameters

$id_profile
$active_only

isLastAdmin()

isLastAdmin() 

setWsPasswd()

setWsPasswd(  $passwd) 

Parameters

$passwd

isLoggedBack()

isLoggedBack() : boolean

Check employee informations saved into cookie and return employee validity

Returns

boolean —

employee validity

logout()

logout() 

Logout

favoriteModulesList()

favoriteModulesList() 

hasAuthOnShop()

hasAuthOnShop(integer  $id_shop) : boolean

Check if the employee is associated to a specific shop

Parameters

integer $id_shop

Returns

boolean

hasAuthOnShopGroup()

hasAuthOnShopGroup(  $id_shop_group) : boolean

Check if the employee is associated to a specific shop group

Parameters

$id_shop_group

Returns

boolean

getDefaultShopID()

getDefaultShopID() : integer

Get default id_shop with auth for current employee

Returns

integer

getEmployeesByProfile()

getEmployeesByProfile(  $id_profile,   $active_only = false) 

Parameters

$id_profile
$active_only

isSuperAdmin()

isSuperAdmin() : boolean

Check if current employee is super administrator

Returns

boolean

getImage()

getImage() 

getLastElementsForNotify()

getLastElementsForNotify(  $element) 

Parameters

$element

setLastConnectionDate()

setLastConnectionDate(  $id_employee) 

Parameters

$id_employee

updateTextDirection()

updateTextDirection() 

saveOptin()

saveOptin()