PHP Class app\models\Task

Inheritance: extends yii\db\ActiveRecord
Show file Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$fillable array
$presenter string

Public Methods

Method 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 method

public account ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

calcDuration() public static method

public static calcDuration ( $task ) : integer
$task
return integer

calcStartTime() public static method

public static calcStartTime ( $task ) : string
$task
return string

client() public method

public client ( ) : mixed
return mixed

getCurrentDuration() public method

public getCurrentDuration ( ) : integer
return integer

getDisplayName() public method

public getDisplayName ( )

getDuration() public method

public getDuration ( ) : integer
return integer

getEntityType() public method

public getEntityType ( ) : mixed
return mixed

getHours() public method

public getHours ( ) : float
return float

getLastStartTime() public method

public getLastStartTime ( )

getName() public method

public getName ( )

getRoute() public method

Gets the route to the tasks edit action
public getRoute ( ) : string
return string

getStartTime() public method

public getStartTime ( ) : string
return string

hasPreviousDuration() public method

public hasPreviousDuration ( ) : boolean
return boolean

invoice() public method

public invoice ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

scopeDateRange() public method

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

user() public method

public user ( ) : mixed
return mixed

Property Details

$fillable protected property

protected array $fillable
return array

$presenter protected property

protected string $presenter
return string