AbstractToggleMenu
abstract class AbstractToggleMenu implements ComponentInterface
Xpressengine plugin 의 toggle menu base class 정의
Traits
Constants
MENUTYPE_EXEC |
|
MENUTYPE_LINK |
|
MENUTYPE_RAW |
|
Properties
static private array | $id | Component id, 만약 이 trait을 사용한 클래스를 상속한 클래스가 id를 지정하지 않았다면, 그 클래스의 id는 이 trait에서 가지고 있는 id에 저장된다. | from ComponentTrait |
static private array | $componentInfo | Component Informations, 만약 이 trait을 사용한 클래스를 상속한 클래스가 componentInfo를 지정하지 않았다면, 그 클래스의 infomation은 이 trait에서 가지고 있는 componentInfo에 저장된다. | from ComponentTrait |
protected string | $componentType | ||
protected string | $instanceId | ||
protected string | $identifier |
Methods
information을 추가하거나 수정한다.
boot
getTitle
getDescription
getScreenshot
Set basic arguments
메뉴에서 보여질 문자열
메뉴의 타입 'exec' or 'link' or 'raw' 중에 하나
실행되기 위한 js 문자열 타입이 'raw' 인 경우에는 html
별도의 js 파일을 load 해야 하는 경우 해당 파일의 경로 없는 경우 null 반환
아이콘을 표시하기 위한 문자 todo: class 명, 이미지 경로 등을 지원 할 예정
메뉴에 표시여부 반환 표실 할 경우 true 반환
Details
in ComponentTrait at line 51
static string
getId()
component의 id를 반환한다.
in ComponentTrait at line 67
static void
setId(string $id)
component의 id를 지정한다.
in ComponentTrait at line 83
static mixed
getComponentInfo(string $key = null)
information을 검색한다.
in ComponentTrait at line 99
static void
setComponentInfo(string $key, mixed $value = null)
information을 추가하거나 수정한다.
at line 105
static void
boot()
boot
in ComponentTrait at line 129
static null|string
getSettingsURI()
return settings manage uri
at line 60
static mixed
getTitle()
getTitle
at line 70
static mixed
getDescription()
getDescription
at line 80
static mixed
getScreenshot()
getScreenshot
at line 93
void
setArguments(string $componentType, string $instanceId, string $identifier)
Set basic arguments
at line 115
abstract string
getText()
메뉴에서 보여질 문자열
at line 123
abstract string
getType()
메뉴의 타입 'exec' or 'link' or 'raw' 중에 하나
at line 131
abstract string
getAction()
실행되기 위한 js 문자열 타입이 'raw' 인 경우에는 html
at line 139
abstract string|null
getScript()
별도의 js 파일을 load 해야 하는 경우 해당 파일의 경로 없는 경우 null 반환
at line 147
string|null
getIcon()
아이콘을 표시하기 위한 문자 todo: class 명, 이미지 경로 등을 지원 할 예정
at line 158
bool
allows()
메뉴에 표시여부 반환 표실 할 경우 true 반환