49 public function __construct() {
51 foreach ( $fields as $t_field ) {
52 $this->mProperty[ $t_field[
'name'] ] = [
53 'type' => $t_field[
'type'],
65 public function toArray() {
68 foreach ( $this->mProperty as $t_key => $t_value ) {
69 $retArray[ $t_key ] = $t_value[
'value'];
75 public function loadByArray( $vars ) {
76 foreach ( $vars as $t_key => $t_value ) {
77 if ( isset( $this->mProperty[ $t_key ] ) ) {
78 $this->mProperty[ $t_key ][
'value'] = $t_value;