PHP Class Papi_Core_Tab, papi

Show file Open project: wp-papi/papi

Public Properties

Property Type Description
$background string Possible values are: white or grey. By default if empty the background will be automatic, if first property has no sidebar it'll be white and if it has a sidebar it'll be grey.
$capabilities array Capabilities list.
$icon string Tab icon.
$id string The core tab identifier.
$properties array Box properties.
$sort_order integer The sort order of the core box.
$tab boolean Because of old code for tabs this property is required to exists on core tab class.
$title string The title of the box.

Public Methods

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

Protected Methods

Method Description
setup_args ( array $args ) Setup arguments.
setup_properties ( array $properties ) Setup properties.

Method Details

__construct() public method

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

setup_args() protected method

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

setup_properties() protected method

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

Property Details

$background public property

Possible values are: white or grey. By default if empty the background will be automatic, if first property has no sidebar it'll be white and if it has a sidebar it'll be grey.
public string $background
return string

$capabilities public property

Capabilities list.
public array $capabilities
return array

$icon public property

Tab icon.
public string $icon
return string

$id public property

The core tab identifier.
public string $id
return string

$properties public property

Box properties.
public array $properties
return array

$sort_order public property

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

$tab public property

Because of old code for tabs this property is required to exists on core tab class.
public bool $tab
return boolean

$title public property

The title of the box.
public string $title
return string