PHP 클래스 app\models\Task

상속: extends yii\db\ActiveRecord
파일 보기 프로젝트 열기: hillelcoren/invoice-ninja 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fillable array
$presenter string

공개 메소드들

메소드 설명
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

메소드 상세

account() 공개 메소드

public account ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

calcDuration() 공개 정적인 메소드

public static calcDuration ( $task ) : integer
$task
리턴 integer

calcStartTime() 공개 정적인 메소드

public static calcStartTime ( $task ) : string
$task
리턴 string

client() 공개 메소드

public client ( ) : mixed
리턴 mixed

getCurrentDuration() 공개 메소드

public getCurrentDuration ( ) : integer
리턴 integer

getDisplayName() 공개 메소드

public getDisplayName ( )

getDuration() 공개 메소드

public getDuration ( ) : integer
리턴 integer

getEntityType() 공개 메소드

public getEntityType ( ) : mixed
리턴 mixed

getHours() 공개 메소드

public getHours ( ) : float
리턴 float

getLastStartTime() 공개 메소드

public getLastStartTime ( )

getName() 공개 메소드

public getName ( )

getRoute() 공개 메소드

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

getStartTime() 공개 메소드

public getStartTime ( ) : string
리턴 string

hasPreviousDuration() 공개 메소드

public hasPreviousDuration ( ) : boolean
리턴 boolean

invoice() 공개 메소드

public invoice ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

scopeDateRange() 공개 메소드

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

user() 공개 메소드

public user ( ) : mixed
리턴 mixed

프로퍼티 상세

$fillable 보호되어 있는 프로퍼티

protected array $fillable
리턴 array

$presenter 보호되어 있는 프로퍼티

protected string $presenter
리턴 string