Properties

$internal_debugging

$internal_debugging : 

Type

Methods

__construct()

__construct() 

init_user()

init_user(  $id) 

Parameters

$id

__set()

__set(  $setting,   $value) 

Parameters

$setting
$value

__get()

__get(  $setting) 

Parameters

$setting

get_user_profile()

get_user_profile() 

Get user profile details for the logged in user.

get_user_role()

get_user_role() 

Get user role for the logged in user.

update_params()

update_params() 

check_currentproperty()

check_currentproperty() 

Get the manger's current property. If it is unset (the manager has just deleted a property) then resets the current property to the first property encountered in the propertys table.

set_currentproperty()

set_currentproperty(  $currentProperty) 

Sets the users current property to N. Used by the select property dropdown, typically.

Parameters

$currentProperty

setToAnyAuthorisedProperty()

setToAnyAuthorisedProperty() 

Typically called when a manager has deleted a property, finds another property that they are authorised to manage and makes this their current property.

is_super_property_manager()

is_super_property_manager() 

is_property_manager()

is_property_manager() 

is_receptionist()

is_receptionist() 

is_registered()

is_registered() 

reset_manager_to_non_manager()

reset_manager_to_non_manager() 

Reset manager to non manager.