Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
Tools
Model
Entity
Entity
PHP 클래스 Tools\Model\Entity\Entity
상속:
extends
Cake\ORM\Entity
파일 보기
프로젝트 열기: dereuromark/cakephp-tools
1 사용 예제들
공개 메소드들
메소드
설명
enum
(
string
|
array
|
null
$value
,
array
$options
,
string
|
null
$default
= null ) :
string
|
array
The main method for any enumeration, should be called statically Now also supports reordering/filtering
메소드 상세
enum()
공개
정적인
메소드
The main method for any enumeration, should be called statically Now also supports reordering/filtering
링크 보기:
http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/
public
static
enum
(
string
|
array
|
null
$value
,
array
$options
,
string
|
null
$default
= null ) :
string
|
array
$value
string
|
array
|
null
Integer or array of keys or NULL for complete array result
$options
array
Options
$default
string
|
null
Default value
리턴
string
|
array