Users
extends BaseController
in package
Users Class
Table of Contents
- $objects : Objects
- Contains the whole set of objects by request
- $page : Page
- Contains the Page object
- $planet : array<string|int, mixed>
- Contains the current planet data
- $template : Template
- Contains the Template object
- $user : array<string|int, mixed>
- Contains the current user data
- $userLibrary : User
- Contains the User object
- $_alert_info : mixed
- $_alert_type : mixed
- $_authlevel : int
- $_edit : string
- $_id : int
- $_moon : int
- $_planet : int
- $_stats : mixed
- $_user_query : mixed
- __construct() : mixed
- Constructor
- index() : void
- Users land here
- loadLang() : void
- Load a language file using CI Library
- loadModel() : void
- Load the provided model, support a dir path
- getObjects() : array<string|int, mixed>
- Will be removed
- getPlanetData() : array<string|int, mixed>
- Will be removed
- getTemplate() : array<string|int, mixed>
- Will be removed
- getUserData() : array<string|int, mixed>
- Will be removed
- buildAllianceCombo() : mixed
- method buildAllianceCombo param $user_data return the list of alliances
- buildImageCombo() : mixed
- method buildImageCombo param $current_image return image combo
- buildPage() : void
- Build the page
- buildPercentCombo() : mixed
- method buildPercentCombo param $current_value return percent combo
- buildPlanetCombo() : mixed
- method buildPlanetCombo param $user_data param $id_field return the list of the user planets
- buildProcessQueue() : mixed
- method buildProcessQueue param $current_queue return process queue combo
- buildShortcutsCombo() : mixed
- method build_shortcuts_combo param $shortcuts return the list of shortcuts
- buildUsersCombo() : mixed
- method buildUsersCombo param $user_id return the list of users
- buildUsersRolesList() : void
- Build users roles list
- deleteData() : void
- deleteData
- deleteMoon() : void
- deleteMoon
- deletePlanet() : void
- deletePlanet
- editBuildings() : void
- Edit planet or moon buildings
- editDefenses() : array<string|int, mixed>
- return the edit main table
- editMain() : void
- Edit main planet or moon data
- editShips() : array<string|int, mixed>
- return the edit main table
- getData() : mixed
- method getData param $type return the page for the current type
- getDataInfo() : void
- return the information page for the current user
- getDataMoons() : mixed
- method getDataMoons param return the moons page for the current user
- getDataPlanets() : mixed
- method getDataPlanets param return the planets page for the current user
- getDataPremium() : mixed
- method getDataPremium param return the premium page for the current user
- getDataResearch() : mixed
- method get_research_info param return the research page for the current user
- getDataSettings() : string
- return the settings page for the current user
- lastActivity() : string
- Return an string with the online time formatted
- moonsTable() : array<string|int, mixed>
- return the builded moons table
- planetOrderCombo() : mixed
- method planetOrderCombo param return planet order combo
- planetSortCombo() : mixed
- method planetSortCombo param return planet sort combo
- planetsTable() : array<string|int, mixed>
- return the builded planets table
- premiumCombo() : mixed
- method premiumCombo param $expire_date return premium combo
- premiumTable() : array<string|int, mixed>
- return the builded premium table with respective officiers combo and expiration
- refreshPage() : mixed
- method refreshPage param return refresh the page
- researchTable() : array<string|int, mixed>
- return the builded technologies table with respective levels
- saveBuildings() : void
- saveBuildings
- saveData() : mixed
- method saveData param $type return save data for the current type
- saveDefenses() : mixed
- method saveDefenses param $type return save defenses for the current planet
- saveInfo() : mixed
- method saveInfo param return save information for the current user
- savePlanet() : void
- method savePlanet param $type return save planet for the current user
- savePremium() : void
- method savePremium param return save research for the current user
- saveResearch() : void
- method saveResearch param return save research for the current user
- saveSettings() : mixed
- method saveSettings param return save settings for the current user
- saveShips() : mixed
- method saveShips param $type return save ships for the current planet
- vacationSet() : string
- Format vacation end date
Properties
$objects
Contains the whole set of objects by request
protected
Objects
$objects
$page
Contains the Page object
protected
Page
$page
= null
$planet
Contains the current planet data
protected
array<string|int, mixed>
$planet
= []
$template
Contains the Template object
protected
Template
$template
= null
$user
Contains the current user data
protected
array<string|int, mixed>
$user
= []
$userLibrary
Contains the User object
protected
User
$userLibrary
= null
$_alert_info
private
mixed
$_alert_info
$_alert_type
private
mixed
$_alert_type
$_authlevel
private
int
$_authlevel
= 0
$_edit
private
string
$_edit
= ''
$_id
private
int
$_id
= 0
$_moon
private
int
$_moon
= 0
$_planet
private
int
$_planet
= 0
$_stats
private
mixed
$_stats
$_user_query
private
mixed
$_user_query
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —index()
Users land here
public
index() : void
Return values
void —loadLang()
Load a language file using CI Library
public
loadLang(string|array<string|int, mixed> $language_file) : void
Parameters
- $language_file : string|array<string|int, mixed>
Return values
void —loadModel()
Load the provided model, support a dir path
public
loadModel(string $class) : void
Parameters
- $class : string
-
Mandatory field, if not will throw an exception
Tags
Return values
void —getObjects()
Will be removed
protected
getObjects() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getPlanetData()
Will be removed
protected
getPlanetData() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getTemplate()
Will be removed
protected
getTemplate() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getUserData()
Will be removed
protected
getUserData() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —buildAllianceCombo()
method buildAllianceCombo param $user_data return the list of alliances
private
buildAllianceCombo(mixed $user_data) : mixed
Parameters
- $user_data : mixed
Return values
mixed —buildImageCombo()
method buildImageCombo param $current_image return image combo
private
buildImageCombo(mixed $current_image) : mixed
Parameters
- $current_image : mixed
Return values
mixed —buildPage()
Build the page
private
buildPage() : void
Return values
void —buildPercentCombo()
method buildPercentCombo param $current_value return percent combo
private
buildPercentCombo(mixed $current_value) : mixed
Parameters
- $current_value : mixed
Return values
mixed —buildPlanetCombo()
method buildPlanetCombo param $user_data param $id_field return the list of the user planets
private
buildPlanetCombo(mixed $user_data, mixed $id_field) : mixed
Parameters
- $user_data : mixed
- $id_field : mixed
Return values
mixed —buildProcessQueue()
method buildProcessQueue param $current_queue return process queue combo
private
buildProcessQueue(mixed $current_queue) : mixed
Parameters
- $current_queue : mixed
Return values
mixed —buildShortcutsCombo()
method build_shortcuts_combo param $shortcuts return the list of shortcuts
private
buildShortcutsCombo(mixed $shortcuts) : mixed
Parameters
- $shortcuts : mixed
Return values
mixed —buildUsersCombo()
method buildUsersCombo param $user_id return the list of users
private
buildUsersCombo(mixed $user_id) : mixed
Parameters
- $user_id : mixed
Return values
mixed —buildUsersRolesList()
Build users roles list
private
buildUsersRolesList() : void
Return values
void —deleteData()
deleteData
private
deleteData(type $type) : void
Parameters
- $type : type
-
Type
Return values
void —deleteMoon()
deleteMoon
private
deleteMoon(int $id_moon) : void
Parameters
- $id_moon : int
-
Moon ID
Return values
void —deletePlanet()
deletePlanet
private
deletePlanet(int $id_planet) : void
Parameters
- $id_planet : int
-
Planet ID
Return values
void —editBuildings()
Edit planet or moon buildings
private
editBuildings(array<string|int, mixed> $planets_data[, int $type = 1 ]) : void
Parameters
- $planets_data : array<string|int, mixed>
- $type : int = 1
Return values
void —editDefenses()
return the edit main table
private
editDefenses(array<string|int, mixed> $planets_data[, int $type = 1 ]) : array<string|int, mixed>
Parameters
- $planets_data : array<string|int, mixed>
- $type : int = 1
Return values
array<string|int, mixed> —editMain()
Edit main planet or moon data
private
editMain(array<string|int, mixed> $planets_data) : void
Parameters
- $planets_data : array<string|int, mixed>
Return values
void —editShips()
return the edit main table
private
editShips(array<string|int, mixed> $planets_data) : array<string|int, mixed>
Parameters
- $planets_data : array<string|int, mixed>
Return values
array<string|int, mixed> —getData()
method getData param $type return the page for the current type
private
getData(mixed $type) : mixed
Parameters
- $type : mixed
Return values
mixed —getDataInfo()
return the information page for the current user
private
getDataInfo() : void
Return values
void —getDataMoons()
method getDataMoons param return the moons page for the current user
private
getDataMoons() : mixed
Return values
mixed —getDataPlanets()
method getDataPlanets param return the planets page for the current user
private
getDataPlanets() : mixed
Return values
mixed —getDataPremium()
method getDataPremium param return the premium page for the current user
private
getDataPremium() : mixed
Return values
mixed —getDataResearch()
method get_research_info param return the research page for the current user
private
getDataResearch() : mixed
Return values
mixed —getDataSettings()
return the settings page for the current user
private
getDataSettings() : string
Return values
string —lastActivity()
Return an string with the online time formatted
private
lastActivity(int $time) : string
Parameters
- $time : int
Return values
string —moonsTable()
return the builded moons table
private
moonsTable(array<string|int, mixed> $moons_data) : array<string|int, mixed>
Parameters
- $moons_data : array<string|int, mixed>
Return values
array<string|int, mixed> —planetOrderCombo()
method planetOrderCombo param return planet order combo
private
planetOrderCombo() : mixed
Return values
mixed —planetSortCombo()
method planetSortCombo param return planet sort combo
private
planetSortCombo() : mixed
Return values
mixed —planetsTable()
return the builded planets table
private
planetsTable(array<string|int, mixed> $planets_data) : array<string|int, mixed>
Parameters
- $planets_data : array<string|int, mixed>
Return values
array<string|int, mixed> —premiumCombo()
method premiumCombo param $expire_date return premium combo
private
premiumCombo(mixed $expire_date) : mixed
Parameters
- $expire_date : mixed
Return values
mixed —premiumTable()
return the builded premium table with respective officiers combo and expiration
private
premiumTable() : array<string|int, mixed>
Return values
array<string|int, mixed> —refreshPage()
method refreshPage param return refresh the page
private
refreshPage() : mixed
Return values
mixed —researchTable()
return the builded technologies table with respective levels
private
researchTable() : array<string|int, mixed>
Return values
array<string|int, mixed> —saveBuildings()
saveBuildings
private
saveBuildings([int $type = 1 ]) : void
Parameters
- $type : int = 1
-
Type
Return values
void —saveData()
method saveData param $type return save data for the current type
private
saveData(mixed $type) : mixed
Parameters
- $type : mixed
Return values
mixed —saveDefenses()
method saveDefenses param $type return save defenses for the current planet
private
saveDefenses([mixed $type = 1 ]) : mixed
Parameters
- $type : mixed = 1
Return values
mixed —saveInfo()
method saveInfo param return save information for the current user
private
saveInfo() : mixed
Return values
mixed —savePlanet()
method savePlanet param $type return save planet for the current user
private
savePlanet([mixed $type = 1 ]) : void
Parameters
- $type : mixed = 1
Return values
void —savePremium()
method savePremium param return save research for the current user
private
savePremium() : void
Return values
void —saveResearch()
method saveResearch param return save research for the current user
private
saveResearch() : void
Return values
void —saveSettings()
method saveSettings param return save settings for the current user
private
saveSettings() : mixed
Return values
mixed —saveShips()
method saveShips param $type return save ships for the current planet
private
saveShips([mixed $type = 1 ]) : mixed
Parameters
- $type : mixed = 1
Return values
mixed —vacationSet()
Format vacation end date
private
vacationSet() : string