PHP Class Papi_Core_Conditional_Rule, papi

Afficher le fichier Open project: wp-papi/papi Class Usage Examples

Méthodes publiques

Свойство Type Description
$operator string The operator.
$slug string The slug.
$source mixed The source value.
$value mixed The value.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
setup ( array $rule ) Setup the rule and assign properties with values.

Method Details

__construct() public méthode

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

get_field_slug() public méthode

Get field slug.
public get_field_slug ( ) : string
Résultat string

get_source() public méthode

Get the source value.
public get_source ( ) : mixed
Résultat mixed

setup() protected méthode

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

setup_source() public méthode

Setup source callable.
public setup_source ( string $value ) : string
$value string
Résultat string

Property Details

$operator public_oe property

The operator.
public string $operator
Résultat string

$slug public_oe property

The slug.
public string $slug
Résultat string

$source public_oe property

The source value.
public mixed $source
Résultat mixed

$value public_oe property

The value.
public mixed $value
Résultat mixed