PHP Class Traq\Controllers\AppController

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

Protected Properties

Свойство 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

Méthodes publiques

Méthode Description
__construct ( ) Always call this when defining __construct() in sub-classes.

Méthodes protégées

Méthode 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 méthode

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

addCrumb() protected méthode

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

hasPermission() protected méthode

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

removeNullValues() protected méthode

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

Property Details

$breadcrumbs protected_oe property

protected array $breadcrumbs
Résultat array

$currentProject protected_oe property

protected Project,Traq\Models $currentProject
Résultat Traq\Models\Project

$currentUser protected_oe property

protected User,Traq\Models $currentUser
Résultat Traq\Models\User

$isModal protected_oe property

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

$layout protected_oe property

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

$pageTitle protected_oe property

protected array $pageTitle
Résultat array