$element->
setStartRow((int) $data['__emotionElement_start_row'
]);
$element->
setEndRow((int) $data['__emotionElement_end_row'
]);
$element->
setStartCol((int) $data['__emotionElement_start_col'
]);
$element->
setEndCol((int) $data['__emotionElement_end_col'
]);
$element->
setCssClass($data['__emotionElement_css_class'
]);
return $element;
} private function assignComponent(Element
$element, array
$data) { $component =
new Component();
$component->
setId((int) $data['__emotionLibraryComponent_id'
]);
$component->
setName($data['__emotionLibraryComponent_name'
]);
$component->
setType($data['__emotionLibraryComponent_x_type'
]);
$component->
setConvertFunction($data['__emotionLibraryComponent_convert_function'
]);
$component->
setDescription($data['__emotionLibraryComponent_description'
]);
$component->
setTemplate($data['__emotionLibraryComponent_template'
]);
$component->
setCssClass($data['__emotionLibraryComponent_cls'
]);
$component->
setPluginId($data['__emotionLibraryComponent_plugin_id'
] !== null ?
(int) $data['__emotionLibraryComponent_plugin_id'
] : null
);
$element->
setComponent($component);
}