PHP Class app\models\Document

Inheritance: extends Illuminate\Database\Eloquent\Model
Show file Open project: hillelcoren/invoice-ninja Class Usage Examples

Public Properties

Property Type Description
$allowedMimes array
$extraExtensions array
$types array

Protected Properties

Property Type Description
$fillable array

Public Methods

Method Description
account ( ) : BelongsTo
cloneDocument ( ) : mixed
expense ( ) : mixed
fill ( array $attributes )
getClientUrl ( $invitation ) : Illuminate\Contracts\Routing\UrlGenerator | string
getClientVFSJSUrl ( ) : Illuminate\Contracts\Routing\UrlGenerator | null | string
getDirectFileUrl ( $path, $disk, boolean $prioritizeSpeed = false ) : null | string
getDirectPreviewUrl ( ) : null | string
getDirectUrl ( ) : null | string
getDisk ( ) : mixed
getEntityType ( ) : mixed
getPreviewUrl ( ) : Illuminate\Contracts\Routing\UrlGenerator | null | string
getRaw ( ) : mixed
getRawPreview ( ) : mixed
getStream ( ) : mixed
getUrl ( ) : Illuminate\Contracts\Routing\UrlGenerator | string
getVFSJSUrl ( ) : Illuminate\Contracts\Routing\UrlGenerator | null | string
invoice ( ) : mixed
isPDFEmbeddable ( ) : boolean
setDiskAttribute ( $value )
toArray ( ) : array
user ( ) : mixed

Method Details

account() public method

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

cloneDocument() public method

public cloneDocument ( ) : mixed
return mixed

expense() public method

public expense ( ) : mixed
return mixed

fill() public method

public fill ( array $attributes )
$attributes array

getClientUrl() public method

public getClientUrl ( $invitation ) : Illuminate\Contracts\Routing\UrlGenerator | string
$invitation
return Illuminate\Contracts\Routing\UrlGenerator | string

getClientVFSJSUrl() public method

public getClientVFSJSUrl ( ) : Illuminate\Contracts\Routing\UrlGenerator | null | string
return Illuminate\Contracts\Routing\UrlGenerator | null | string

getDirectFileUrl() public static method

public static getDirectFileUrl ( $path, $disk, boolean $prioritizeSpeed = false ) : null | string
$path
$disk
$prioritizeSpeed boolean
return null | string

getDirectPreviewUrl() public method

public getDirectPreviewUrl ( ) : null | string
return null | string

getDirectUrl() public method

public getDirectUrl ( ) : null | string
return null | string

getDisk() public method

public getDisk ( ) : mixed
return mixed

getEntityType() public method

public getEntityType ( ) : mixed
return mixed

getPreviewUrl() public method

public getPreviewUrl ( ) : Illuminate\Contracts\Routing\UrlGenerator | null | string
return Illuminate\Contracts\Routing\UrlGenerator | null | string

getRaw() public method

public getRaw ( ) : mixed
return mixed

getRawPreview() public method

public getRawPreview ( ) : mixed
return mixed

getStream() public method

public getStream ( ) : mixed
return mixed

getUrl() public method

public getUrl ( ) : Illuminate\Contracts\Routing\UrlGenerator | string
return Illuminate\Contracts\Routing\UrlGenerator | string

getVFSJSUrl() public method

public getVFSJSUrl ( ) : Illuminate\Contracts\Routing\UrlGenerator | null | string
return Illuminate\Contracts\Routing\UrlGenerator | null | string

invoice() public method

public invoice ( ) : mixed
return mixed

isPDFEmbeddable() public method

public isPDFEmbeddable ( ) : boolean
return boolean

setDiskAttribute() public method

public setDiskAttribute ( $value )
$value

toArray() public method

public toArray ( ) : array
return array

user() public method

public user ( ) : mixed
return mixed

Property Details

$allowedMimes public static property

public static array $allowedMimes
return array

$extraExtensions public static property

public static array $extraExtensions
return array

$fillable protected property

protected array $fillable
return array

$types public static property

public static array $types
return array