Contactable\SWV

Rule::to_array()publicCF7 1.0

Converts the properties to an array.

Метод класса: Rule{}

Хуков нет.

Возвращает

Массив. Array of properties.

Использование

$Rule = new Rule();
$Rule->to_array();

Код Rule::to_array() CF7 5.9.8

public function to_array() {
	$properties = (array) $this->properties;

	if ( defined( 'static::rule_name' ) and static::rule_name ) {
		$properties = array( 'rule' => static::rule_name ) + $properties;
	}

	return $properties;
}