UploaderFile
extends Entity
in package
Class UploaderFile
Table of Contents
- $alt : string
- $created : FrozenTime
- $id : int
- $modified : FrozenTime
- $name : string
- $publish_begin : FrozenTime
- $publish_end : FrozenTime
- $uploader_category_id : int
- $user_id : int
- $_accessible : array<string|int, mixed>
- Accessible
- fileExists() : bool
- ファイルの存在チェックを行う
- filesExists() : array<string|int, mixed>
- 複数のファイルの存在チェックを行う
- isLimited() : bool
- 閲覧制限が設定されているかどうか
- _getLarge() : bool
- get large
- _getMidium() : bool
- get midium
- _getSmall() : bool
- get small
- getFileNameBySize() : string
- 各サイズのファイル名を取得する
Properties
$alt
public
string
$alt
$created
public
FrozenTime
$created
$id
public
int
$id
$modified
public
FrozenTime
$modified
$name
public
string
$name
$publish_begin
public
FrozenTime
$publish_begin
$publish_end
public
FrozenTime
$publish_end
$uploader_category_id
public
int
$uploader_category_id
$user_id
public
int
$user_id
$_accessible
Accessible
protected
array<string|int, mixed>
$_accessible
= ['*' => true, 'id' => false]
Methods
fileExists()
ファイルの存在チェックを行う
public
fileExists(string $fileName) : bool
Parameters
- $fileName : string
Tags
Return values
bool —filesExists()
複数のファイルの存在チェックを行う
public
filesExists() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —isLimited()
閲覧制限が設定されているかどうか
public
isLimited() : bool
Tags
Return values
bool —_getLarge()
get large
protected
_getLarge() : bool
Tags
Return values
bool —_getMidium()
get midium
protected
_getMidium() : bool
Tags
Return values
bool —_getSmall()
get small
protected
_getSmall() : bool
Tags
Return values
bool —getFileNameBySize()
各サイズのファイル名を取得する
private
getFileNameBySize(string $size) : string
Parameters
- $size : string