1 | <?php |
||
58 | class UserGroupObject extends EzPlatformObject |
||
59 | { |
||
60 | /** |
||
61 | * @var UserGroupMapper |
||
62 | */ |
||
63 | private $mapper; |
||
64 | |||
65 | /** |
||
66 | * UserGroupObject constructor. |
||
67 | * |
||
68 | * @param mixed $data |
||
69 | * @param array $properties |
||
70 | */ |
||
71 | 16 | public function __construct(array $data, array $properties = array()) |
|
72 | { |
||
73 | 16 | if (!isset($data['parent_id'])) { |
|
74 | 9 | $data['parent_id'] = 12; |
|
75 | 9 | } |
|
76 | 16 | if (!isset($data['main_language_code'])) { |
|
77 | 2 | $data['main_language_code'] = 'eng-GB'; |
|
78 | 2 | } |
|
79 | 16 | if (!isset($data['content_type_identifier'])) { |
|
80 | 2 | $data['content_type_identifier'] = 'user_group'; |
|
81 | 2 | } |
|
82 | 16 | parent::__construct($data, $properties); |
|
83 | 16 | } |
|
84 | |||
85 | /** |
||
86 | * @return UserGroupMapper |
||
87 | */ |
||
88 | 16 | public function getMapper() |
|
96 | } |
||
97 |