Files
crm.e5.pl/include/ECM/EcmDropdownEditor/EcmDropdownEditorController.php

19 lines
658 B
PHP
Raw Permalink Normal View History

2024-04-27 09:23:34 +02:00
<?php
require_once 'include/ECM/EcmDropdownEditor/EcmDropdownEditor.inc';
class EcmDropdownEditorController {
public function getOptionTemplate() {
return array (EcmDropdownEditor::getOptionTemplate());
}
public function saveDom($name, $normal, $ext) {
return array (EcmDropdownEditor::saveDom($name, $normal, $ext));
}
public function getEditView($module, $fieldName) {
$dpe = new EcmDropdownEditor($module, $fieldName);
return array ($dpe->DrawEditView());
}
public function refreshField($module, $fieldName) {
$dpe = new EcmDropdownEditor($module, $fieldName);
return array ($dpe->getOptionsHTML());
}
}