Contactable\SWV
Rule::to_array
Converts the properties to an array.
Метод класса: Rule{}
Хуков нет.
Возвращает
Массив. Array of properties.
Использование
$Rule = new Rule(); $Rule->to_array();
Код Rule::to_array() Rule::to array CF7 6.1.5
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;
}