Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
think
File
rule
think\File::rule PHP Method
File Class Documentation
Mostra file
Open project: top-think/framework
rule()
public
method
设置文件的命名规则
public
rule
(
string
$rule
)
$rule
string
文件命名规则
public function rule($rule) { $this->rule = $rule; return $this; }
File
__call
__construct
buildSaveName
check
checkExt
checkImg
checkMime
checkPath
checkSize
error
getError
getImageType
getInfo
getMime
getSaveName
hash
isTest
isValid
move
rule
setSaveName
setUploadInfo
validate