public function InstapageCmsPluginViewModel::__construct in Instapage plugin 7.3
Same name and namespace in other branches
- 8.3 core/models/InstapageCmsPluginViewModel.php \InstapageCmsPluginViewModel::__construct()
Class constructor.
Parameters
array $templates Templates to fetch.:
array $attributes Attributes to pass to the templates.:
File
- core/
models/ InstapageCmsPluginViewModel.php, line 41
Class
- InstapageCmsPluginViewModel
- Class responsible for displaying a template files.
Code
public function __construct($templates = null, $attributes = null) {
if ($attributes) {
foreach ($attributes as $key => $value) {
$this->templateData[$key] = $value;
}
}
$this->templates = $templates;
}