PHP Class app\models\Task

Inheritance: extends yii\db\ActiveRecord
Afficher le fichier Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Свойство Type Description
$fillable array
$presenter string

Méthodes publiques

Méthode Description
account ( ) : BelongsTo
calcDuration ( $task ) : integer
calcStartTime ( $task ) : string
client ( ) : mixed
getCurrentDuration ( ) : integer
getDisplayName ( )
getDuration ( ) : integer
getEntityType ( ) : mixed
getHours ( ) : float
getLastStartTime ( )
getName ( )
getRoute ( ) : string Gets the route to the tasks edit action
getStartTime ( ) : string
hasPreviousDuration ( ) : boolean
invoice ( ) : BelongsTo
scopeDateRange ( $query, $startDate, $endDate )
user ( ) : mixed

Method Details

account() public méthode

public account ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

calcDuration() public static méthode

public static calcDuration ( $task ) : integer
$task
Résultat integer

calcStartTime() public static méthode

public static calcStartTime ( $task ) : string
$task
Résultat string

client() public méthode

public client ( ) : mixed
Résultat mixed

getCurrentDuration() public méthode

public getCurrentDuration ( ) : integer
Résultat integer

getDisplayName() public méthode

public getDisplayName ( )

getDuration() public méthode

public getDuration ( ) : integer
Résultat integer

getEntityType() public méthode

public getEntityType ( ) : mixed
Résultat mixed

getHours() public méthode

public getHours ( ) : float
Résultat float

getLastStartTime() public méthode

public getLastStartTime ( )

getName() public méthode

public getName ( )

getRoute() public méthode

Gets the route to the tasks edit action
public getRoute ( ) : string
Résultat string

getStartTime() public méthode

public getStartTime ( ) : string
Résultat string

hasPreviousDuration() public méthode

public hasPreviousDuration ( ) : boolean
Résultat boolean

invoice() public méthode

public invoice ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

scopeDateRange() public méthode

public scopeDateRange ( $query, $startDate, $endDate )

user() public méthode

public user ( ) : mixed
Résultat mixed

Property Details

$fillable protected_oe property

protected array $fillable
Résultat array

$presenter protected_oe property

protected string $presenter
Résultat string