XG Proyect

Fleet1 extends BaseController
in package

Fleet1 Class

Table of Contents

MODULE_ID  = 8
$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
$_fleets  : Fleets
$_premium  : Premium
$_research  : Research
$_ship_count  : int
__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
buildActionsBlock()  : string
Build the actions block
buildContinueBlock()  : string
Build the continue button block
buildListOfShips()  : array<string|int, mixed>
Build the list of ships
buildMaxShipsLink()  : string
Build the ship max link
buildNoShipsBlock()  : string
Build the no ships block
buildNoSlotBlock()  : type
Build the not slot block
buildPage()  : void
Build the page
buildShipAmount()  : string
Build the ship amount block
buildShipName()  : type
Build the ship name block
buildShipsInput()  : string
Build the ship input field
checkAvailableSlot()  : bool
Check if we can send the fleet
setInputsData()  : array<string|int, mixed>
Set inputs data
setUpFleets()  : void
Creates a new ships object that will handle all the ships creation methods and actions

Constants

MODULE_ID

public mixed MODULE_ID = 8

Properties

$planet

Contains the current planet data

protected array<string|int, mixed> $planet = []

$user

Contains the current user data

protected array<string|int, mixed> $user = []

$userLibrary

Contains the User object

protected User $userLibrary = null

$_fleets

private Fleets $_fleets = null

$_premium

private Premium $_premium = null

$_research

private Research $_research = null

$_ship_count

private int $_ship_count = 0

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
throws
Exception
Return values
void

getObjects()

Will be removed

protected getObjects() : array<string|int, mixed>
Tags
deprecated

since 3.2.0 will be removed on 4.0.0

Return values
array<string|int, mixed>

getPlanetData()

Will be removed

protected getPlanetData() : array<string|int, mixed>
Tags
deprecated

since 3.2.0 will be removed on 4.0.0

Return values
array<string|int, mixed>

getTemplate()

Will be removed

protected getTemplate() : array<string|int, mixed>
Tags
deprecated

since 3.2.0 will be removed on 4.0.0

Return values
array<string|int, mixed>

getUserData()

Will be removed

protected getUserData() : array<string|int, mixed>
Tags
deprecated

since 3.2.0 will be removed on 4.0.0

Return values
array<string|int, mixed>

buildActionsBlock()

Build the actions block

private buildActionsBlock() : string
Return values
string

buildContinueBlock()

Build the continue button block

private buildContinueBlock() : string
Return values
string

buildListOfShips()

Build the list of ships

private buildListOfShips() : array<string|int, mixed>
Return values
array<string|int, mixed>

Build the ship max link

private buildMaxShipsLink(int $ship_id) : string
Parameters
$ship_id : int

Ship ID

Return values
string

buildNoShipsBlock()

Build the no ships block

private buildNoShipsBlock() : string
Return values
string

buildNoSlotBlock()

Build the not slot block

private buildNoSlotBlock() : type
Return values
type

buildPage()

Build the page

private buildPage() : void
Return values
void

buildShipAmount()

Build the ship amount block

private buildShipAmount(int $ship_amount) : string
Parameters
$ship_amount : int

Ship Amount

Return values
string

buildShipName()

Build the ship name block

private buildShipName(string $ship_name, int $ship_id) : type
Parameters
$ship_name : string

Ship Name

$ship_id : int

Ship ID

Return values
type

buildShipsInput()

Build the ship input field

private buildShipsInput(int $ship_id) : string
Parameters
$ship_id : int

Ship ID

Return values
string

checkAvailableSlot()

Check if we can send the fleet

private checkAvailableSlot() : bool
Return values
bool

setInputsData()

Set inputs data

private setInputsData() : array<string|int, mixed>
Return values
array<string|int, mixed>

setUpFleets()

Creates a new ships object that will handle all the ships creation methods and actions

private setUpFleets() : void
Return values
void

Search results