Changelog
extends BaseController
in package
Changelog 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
- __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
- addAction() : void
- Show add a new entry page
- buildListOfEntries() : array<string|int, mixed>
- Build the list of changelog entries
- buildPage() : void
- Build the page
- deleteAction() : void
- Delete an existing record
- editAction() : void
- Show edit an existing entry page
- getActionData() : array<string|int, mixed>
- Get data to build the action add or action edit pages
- getAlertMessage() : string
- Get the alert message
- getAllLanguages() : array<string|int, mixed>
- Build the list of languages
- isValidAction() : string|null
- Check if it is a valid action, add or edit
- isValidDate() : string|null
- Check if it is a valid date
- isValidVersion() : bool
- Performs a regular expression check to determine if a valid version was provided
- runAction() : void
- Run an action
- saveAction() : void
- Save action to add/edit a record
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
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> —addAction()
Show add a new entry page
private
addAction() : void
Return values
void —buildListOfEntries()
Build the list of changelog entries
private
buildListOfEntries() : array<string|int, mixed>
Return values
array<string|int, mixed> —buildPage()
Build the page
private
buildPage() : void
Return values
void —deleteAction()
Delete an existing record
private
deleteAction(int $changelog_id) : void
Parameters
- $changelog_id : int
Return values
void —editAction()
Show edit an existing entry page
private
editAction(int $changelog_id) : void
Parameters
- $changelog_id : int
Return values
void —getActionData()
Get data to build the action add or action edit pages
private
getActionData(string $action, int $changelog_id) : array<string|int, mixed>
Parameters
- $action : string
- $changelog_id : int
Return values
array<string|int, mixed> —getAlertMessage()
Get the alert message
private
getAlertMessage() : string
Return values
string —getAllLanguages()
Build the list of languages
private
getAllLanguages(int $default_language) : array<string|int, mixed>
Parameters
- $default_language : int
Return values
array<string|int, mixed> —isValidAction()
Check if it is a valid action, add or edit
private
isValidAction(string|null $action) : string|null
Parameters
- $action : string|null
Return values
string|null —isValidDate()
Check if it is a valid date
private
isValidDate(string|null $date) : string|null
Parameters
- $date : string|null
Return values
string|null —isValidVersion()
Performs a regular expression check to determine if a valid version was provided
private
isValidVersion(string|null $version) : bool
Parameters
- $version : string|null
Return values
bool —runAction()
Run an action
private
runAction() : void
Return values
void —saveAction()
Save action to add/edit a record
private
saveAction() : void