PHP Класс REBELinBLUE\Deployer\Project

Наследование: extends REBELinBLUE\Deployer\ProjectRelation, implements Robbo\Presenter\PresentableInterface, use trait Illuminate\Database\Eloquent\SoftDeletes, use trait REBELinBLUE\Deployer\Traits\BroadcastChanges
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$appends array Additional attributes to include in the JSON representation.
$casts array The attributes that should be casted to native types.
$checkurlStatus array The check url's status count.
$dates array The fields which should be treated as Carbon instances.
$fillable array The attributes that are mass assignable.
$heartbeatStatus array The heart beats status count.
$hidden array The attributes excluded from the model's JSON form.

Открытые методы

Метод Описание
accessDetails ( ) : array Parses the repository URL to get the user, domain, port and path parts.
applicationCheckUrlStatus ( ) : array Count the application url check status.
boot ( ) Override the boot method to bind model event listeners.
branches ( ) : array Gets the list of all branches for the project which are not the default.
checkUrls ( ) : CheckUrl Has many urls to check.
deployments ( ) : Deployment Has many relationship.
generateHash ( ) Generates a hash for use in the webhook URL.
getBranchUrlAttribute ( string $alternative = null ) : string | false Gets the HTTP URL to the branch.
getGroupNameAttribute ( ) : string Define a accessor for the group name.
getPresenter ( ) : ProjectPresenter Gets the view presenter.
getRepositoryPathAttribute ( ) : string | false Gets the repository path.
getRepositoryUrlAttribute ( ) : string | false Gets the HTTP URL to the repository.
getWebhookUrlAttribute ( ) : string Define an accessor for the webhook URL.
group ( ) : Group Belongs to relationship.
heartbeats ( ) : Heartbeat Has many relationship.
heartbeatsStatus ( ) : array Count the missed heartbeat.
isDeploying ( ) : boolean Determines whether the project is currently being deployed.
mirrorPath ( ) : string Generate a friendly path for the mirror of the repository.
notifications ( ) : Notification Has many relationship.
notifyEmails ( ) : SharedFile Has many relationship.
refs ( ) : Illuminate\Database\Eloquent\Relations\HasMany Has many relationship for git references.
servers ( ) : Server Has many relationship.
tags ( ) : Collection Gets the list of all tags for the project.

Защищенные методы

Метод Описание
generateSSHKey ( ) Generates an SSH key and sets the private/public key properties.
regeneratePublicKey ( ) Generates an SSH key and sets the private/public key properties.

Описание методов

accessDetails() публичный Метод

Parses the repository URL to get the user, domain, port and path parts.
public accessDetails ( ) : array
Результат array

applicationCheckUrlStatus() публичный Метод

Count the application url check status.
public applicationCheckUrlStatus ( ) : array
Результат array

boot() публичный статический Метод

Override the boot method to bind model event listeners.
public static boot ( )

branches() публичный Метод

Gets the list of all branches for the project which are not the default.
public branches ( ) : array
Результат array

checkUrls() публичный Метод

Has many urls to check.
public checkUrls ( ) : CheckUrl
Результат CheckUrl

deployments() публичный Метод

Has many relationship.
public deployments ( ) : Deployment
Результат Deployment

generateHash() публичный Метод

Generates a hash for use in the webhook URL.
public generateHash ( )

generateSSHKey() защищенный Метод

Generates an SSH key and sets the private/public key properties.
protected generateSSHKey ( )

getBranchUrlAttribute() публичный Метод

Gets the HTTP URL to the branch.
См. также: Project::accessDetails()
public getBranchUrlAttribute ( string $alternative = null ) : string | false
$alternative string
Результат string | false

getGroupNameAttribute() публичный Метод

Define a accessor for the group name.
public getGroupNameAttribute ( ) : string
Результат string

getPresenter() публичный Метод

Gets the view presenter.
public getPresenter ( ) : ProjectPresenter
Результат REBELinBLUE\Deployer\Presenters\ProjectPresenter

getRepositoryPathAttribute() публичный Метод

Gets the repository path.
См. также: Project::accessDetails()
public getRepositoryPathAttribute ( ) : string | false
Результат string | false

getRepositoryUrlAttribute() публичный Метод

Gets the HTTP URL to the repository.
См. также: Project::accessDetails()
public getRepositoryUrlAttribute ( ) : string | false
Результат string | false

getWebhookUrlAttribute() публичный Метод

Define an accessor for the webhook URL.
public getWebhookUrlAttribute ( ) : string
Результат string

group() публичный Метод

Belongs to relationship.
public group ( ) : Group
Результат Group

heartbeats() публичный Метод

Has many relationship.
public heartbeats ( ) : Heartbeat
Результат Heartbeat

heartbeatsStatus() публичный Метод

Count the missed heartbeat.
public heartbeatsStatus ( ) : array
Результат array

isDeploying() публичный Метод

Determines whether the project is currently being deployed.
public isDeploying ( ) : boolean
Результат boolean

mirrorPath() публичный Метод

Use the repository rather than the project ID, so if a single repo is used in multiple projects it is not duplicated.
public mirrorPath ( ) : string
Результат string

notifications() публичный Метод

Has many relationship.
public notifications ( ) : Notification
Результат Notification

notifyEmails() публичный Метод

Has many relationship.
public notifyEmails ( ) : SharedFile
Результат SharedFile

refs() публичный Метод

Has many relationship for git references.
См. также: Project::tags()
См. также: Project::branches()
public refs ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Результат Illuminate\Database\Eloquent\Relations\HasMany

regeneratePublicKey() защищенный Метод

Generates an SSH key and sets the private/public key properties.
protected regeneratePublicKey ( )

servers() публичный Метод

Has many relationship.
public servers ( ) : Server
Результат Server

tags() публичный Метод

Gets the list of all tags for the project.
public tags ( ) : Collection
Результат Illuminate\Support\Collection

Описание свойств

$appends защищенное свойство

Additional attributes to include in the JSON representation.
protected array $appends
Результат array

$casts защищенное свойство

The attributes that should be casted to native types.
protected array $casts
Результат array

$checkurlStatus защищенное свойство

The check url's status count.
protected array $checkurlStatus
Результат array

$dates защищенное свойство

The fields which should be treated as Carbon instances.
protected array $dates
Результат array

$fillable защищенное свойство

The attributes that are mass assignable.
protected array $fillable
Результат array

$heartbeatStatus защищенное свойство

The heart beats status count.
protected array $heartbeatStatus
Результат array

$hidden защищенное свойство

The attributes excluded from the model's JSON form.
protected array $hidden
Результат array