PHP Class Traq\Controllers\AppController

Since: 3.0.0
Author: Jack P.
Inheritance: extends Avalon\Http\Controller
Mostra file Open project: nirix/traq Class Usage Examples

Protected Properties

Property Type Description
$breadcrumbs array
$currentProject Traq\Models\Project
$currentUser Traq\Models\User
$isModal boolean Whether or not the request is for an modal view.
$layout Disable layouts since we're using the PhpExtended engine.
$pageTitle array

Public Methods

Method Description
__construct ( ) Always call this when defining __construct() in sub-classes.

Protected Methods

Method Description
addCrumb ( string $text, string $url ) Add breadcrumb.
hasPermission ( string $action, Project $project = null ) : boolean Check users permission.
removeNullValues ( array $array ) Remove null values from an array.

Method Details

__construct() public method

Always call this when defining __construct() in sub-classes.
public __construct ( )

addCrumb() protected method

Add breadcrumb.
protected addCrumb ( string $text, string $url )
$text string
$url string

hasPermission() protected method

Check users permission.
protected hasPermission ( string $action, Project $project = null ) : boolean
$action string
$project Traq\Models\Project
return boolean

removeNullValues() protected method

Remove null values from an array.
protected removeNullValues ( array $array )
$array array return array

Property Details

$breadcrumbs protected_oe property

protected array $breadcrumbs
return array

$currentProject protected_oe property

protected Project,Traq\Models $currentProject
return Traq\Models\Project

$currentUser protected_oe property

protected User,Traq\Models $currentUser
return Traq\Models\User

$isModal protected_oe property

Whether or not the request is for an modal view.
protected bool $isModal
return boolean

$layout protected_oe property

Disable layouts since we're using the PhpExtended engine.
protected $layout

$pageTitle protected_oe property

protected array $pageTitle
return array