PHP Class Gitamin\Http\Controllers\Controller

Inheritance: extends Illuminate\Routing\Controller, use trait Illuminate\Foundation\Auth\Access\AuthorizesRequests, use trait Illuminate\Foundation\Auth\Access\AuthorizesResources, use trait Illuminate\Foundation\Bus\DispatchesJobs, use trait Illuminate\Foundation\Validation\ValidatesRequests
Afficher le fichier Open project: gitaminhq/gitamin Class Usage Examples

Protected Properties

Свойство Type Description
$repositories

Méthodes publiques

Méthode Description
__construct ( )
getPager ( $pageNumber, $totalCommits )

Méthodes protégées

Méthode Description
extractReference ( $repository, $commitishPath, $repo )
parseBranchTreeParam ( GitList\Git\Repository $repository, string $branch = '', string $tree = '' ) : array Returns an Array where the first value is the tree-ish and the second is the path.
parseCommitishPathParam ( $repository, $commitishPath, $repo ) * @brief Return $commitish, $path parsed from $commitishPath, based on what's in $repo. Raise a 404 if $branchpath does not represent a valid branch and path.

Method Details

__construct() public méthode

public __construct ( )

extractReference() protected méthode

protected extractReference ( $repository, $commitishPath, $repo )

getPager() public méthode

public getPager ( $pageNumber, $totalCommits )

parseBranchTreeParam() protected méthode

Returns an Array where the first value is the tree-ish and the second is the path.
protected parseBranchTreeParam ( GitList\Git\Repository $repository, string $branch = '', string $tree = '' ) : array
$repository GitList\Git\Repository
$branch string
$tree string
Résultat array

parseCommitishPathParam() protected méthode

A helper for parsing routes that use commit-ish names and paths separated by /, since route regexes are not enough to get that right.
protected parseCommitishPathParam ( $repository, $commitishPath, $repo )
$commitishPath
$repo

Property Details

$repositories protected_oe property

protected $repositories