Overview
extends BaseController
in package
Overview Class
Table of Contents
- MODULE_ID = 1
- $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
- $_noob : 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
- buildPage() : void
- Build the page
- getCurrentWork() : mixed
- method getPlanets param $user_planet param $is_current_planet return building in progress or free text
- getFleetMovements() : mixed
- method getFleetMovements param return fleets movements rows
- getMessages() : mixed
- method getMessages param return messages row
- getPlanetMoon() : mixed
- method getPlanetMoon param return the moon image and data for the current planet
- getPlanets() : mixed
- method getPlanets param return all the user planets
- getUserRank() : mixed
- method getUserRank param return the current user rank
Constants
MODULE_ID
public
mixed
MODULE_ID
= 1
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
$_noob
private
mixed
$_noob
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 —getCurrentWork()
method getPlanets param $user_planet param $is_current_planet return building in progress or free text
private
getCurrentWork(mixed $user_planet[, mixed $is_current_planet = true ]) : mixed
Parameters
- $user_planet : mixed
- $is_current_planet : mixed = true
Return values
mixed —getFleetMovements()
method getFleetMovements param return fleets movements rows
private
getFleetMovements() : mixed
Return values
mixed —getMessages()
method getMessages param return messages row
private
getMessages() : mixed
Return values
mixed —getPlanetMoon()
method getPlanetMoon param return the moon image and data for the current planet
private
getPlanetMoon() : mixed
Return values
mixed —getPlanets()
method getPlanets param return all the user planets
private
getPlanets() : mixed
Return values
mixed —getUserRank()
method getUserRank param return the current user rank
private
getUserRank() : mixed