PHP 클래스 Papi_Core_Box, papi

파일 보기 프로젝트 열기: wp-papi/papi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$capabilities array Capabilities list.
$context string Context.
$display boolean Display box.
$id string The core type identifier.
$layout string Possible values are: - horizontal - vertical
$priority string Priority.
$properties array Box properties.
$site_id integer Site id.
$sort_order integer The sort order of the core box.
$title string The title of the box.

보호된 프로퍼티들

프로퍼티 타입 설명
$options array Custom box options.

공개 메소드들

메소드 설명
__construct ( array $args = [], array $properties = [] ) The constructor.
__toString ( ) : string Get a string representation of the object.
get_option ( string $key ) : mixed Get box option.
set_option ( string $key, mixed $value ) Set box option.

보호된 메소드들

메소드 설명
setup_args ( array $args ) Setup arguments.
setup_properties ( array $properties ) Setup properties.

메소드 상세

__construct() 공개 메소드

The constructor.
public __construct ( array $args = [], array $properties = [] )
$args array
$properties array

__toString() 공개 메소드

Get a string representation of the object.
public __toString ( ) : string
리턴 string

get_option() 공개 메소드

Get box option.
public get_option ( string $key ) : mixed
$key string
리턴 mixed

set_option() 공개 메소드

Set box option.
public set_option ( string $key, mixed $value )
$key string
$value mixed

setup_args() 보호된 메소드

Setup arguments.
protected setup_args ( array $args )
$args array

setup_properties() 보호된 메소드

Setup properties.
protected setup_properties ( array $properties )
$properties array

프로퍼티 상세

$capabilities 공개적으로 프로퍼티

Capabilities list.
public array $capabilities
리턴 array

$context 공개적으로 프로퍼티

Context.
public string $context
리턴 string

$display 공개적으로 프로퍼티

Display box.
public bool $display
리턴 boolean

$id 공개적으로 프로퍼티

The core type identifier.
public string $id
리턴 string

$layout 공개적으로 프로퍼티

Possible values are: - horizontal - vertical
public string $layout
리턴 string

$options 보호되어 있는 프로퍼티

Custom box options.
protected array $options
리턴 array

$priority 공개적으로 프로퍼티

Priority.
public string $priority
리턴 string

$properties 공개적으로 프로퍼티

Box properties.
public array $properties
리턴 array

$site_id 공개적으로 프로퍼티

Site id.
public int $site_id
리턴 integer

$sort_order 공개적으로 프로퍼티

The sort order of the core box.
public int $sort_order
리턴 integer

$title 공개적으로 프로퍼티

The title of the box.
public string $title
리턴 string