PHP Class Papi_Core_Conditional_Rule, papi

Show file Open project: wp-papi/papi Class Usage Examples

Public Properties

Property Type Description
$operator string The operator.
$slug string The slug.
$source mixed The source value.
$value mixed The value.

Public Methods

Method Description
__construct ( array $rule ) The constructor.
get_field_slug ( ) : string Get field slug.
get_source ( ) : mixed Get the source value.
setup_source ( string $value ) : string Setup source callable.

Protected Methods

Method Description
setup ( array $rule ) Setup the rule and assign properties with values.

Method Details

__construct() public method

The constructor.
public __construct ( array $rule )
$rule array

get_field_slug() public method

Get field slug.
public get_field_slug ( ) : string
return string

get_source() public method

Get the source value.
public get_source ( ) : mixed
return mixed

setup() protected method

Setup the rule and assign properties with values.
protected setup ( array $rule )
$rule array

setup_source() public method

Setup source callable.
public setup_source ( string $value ) : string
$value string
return string

Property Details

$operator public property

The operator.
public string $operator
return string

$slug public property

The slug.
public string $slug
return string

$source public property

The source value.
public mixed $source
return mixed

$value public property

The value.
public mixed $value
return mixed