Alliances
extends BaseController
in package
Alliances 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
- $_edit : mixed
- $_id : mixed
- $_moon : mixed
- $_planet : mixed
- $_user_query : mixed
- $ranks : Ranks
- Contains the alliance ranks
- __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
- buildPage() : void
- Build the page
- buildUsersCombo() : mixed
- method buildUsersCombo param $user_id return the list of users
- checkAlliance() : mixed
- method checkAlliance param $alliance return true if alliance exists, false if alliance doesn't exist
- getData() : mixed
- method getData param $type return the page for the current type
- getDataInfo() : mixed
- method getDataInfo param return the information page for the current alliance
- getDataMembers() : mixed
- method getDataMembers param return the research page for the current user
- getDataRanks() : mixed
- method getDataRanks param return the ranks page for the current alliance
- saveData() : mixed
- method saveData param $type return save data for the current type
- saveInfo() : mixed
- method saveInfo param return save information for the current user
- saveMembers() : mixed
- method save_research param return save research for the current user
- saveRanks() : mixed
- method saveRanks param return save ranks for the current alliance
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
$_edit
private
mixed
$_edit
$_id
private
mixed
$_id
$_moon
private
mixed
$_moon
$_planet
private
mixed
$_planet
$_user_query
private
mixed
$_user_query
$ranks
Contains the alliance ranks
private
Ranks
$ranks
= null
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> —buildPage()
Build the page
private
buildPage() : void
Return values
void —buildUsersCombo()
method buildUsersCombo param $user_id return the list of users
private
buildUsersCombo(mixed $user_id) : mixed
Parameters
- $user_id : mixed
Return values
mixed —checkAlliance()
method checkAlliance param $alliance return true if alliance exists, false if alliance doesn't exist
private
checkAlliance(mixed $alliance) : mixed
Parameters
- $alliance : mixed
Return values
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()
method getDataInfo param return the information page for the current alliance
private
getDataInfo() : mixed
Return values
mixed —getDataMembers()
method getDataMembers param return the research page for the current user
private
getDataMembers() : mixed
Return values
mixed —getDataRanks()
method getDataRanks param return the ranks page for the current alliance
private
getDataRanks() : mixed
Return values
mixed —saveData()
method saveData param $type return save data for the current type
private
saveData(mixed $type) : mixed
Parameters
- $type : mixed
Return values
mixed —saveInfo()
method saveInfo param return save information for the current user
private
saveInfo() : mixed
Return values
mixed —saveMembers()
method save_research param return save research for the current user
private
saveMembers() : mixed
Return values
mixed —saveRanks()
method saveRanks param return save ranks for the current alliance
private
saveRanks() : mixed