/**
  * Constructor
  */
 function __construct($name)
 {
     //        $name = 'MediaDir';
     parent::__construct('.', $name);
     parent::getFrontendLanguages();
     parent::getSettings();
 }
 /**
  * Constructor
  */
 function __construct($name)
 {
     $this->imagePath = \Cx\Core\Core\Controller\Cx::instanciate()->getWebsiteImagesMediaDirPath() . '/';
     $this->imageWebPath = \Cx\Core\Core\Controller\Cx::instanciate()->getWebsiteImagesMediaDirWebPath() . '/';
     parent::__construct('.', $name);
     parent::getFrontendLanguages();
     parent::getSettings();
 }
 /**
  * Constructor
  */
 function __construct($name)
 {
     parent::__construct('.', $name);
 }
 /**
  * Constructor
  */
 function __construct($name)
 {
     parent::__construct('.', $name);
     parent::getFrontendLanguages();
     parent::getSettings();
 }
    function getJavascriptCheck()
    {
        parent::getSettings();
        $fieldName = $this->moduleNameLC . "Inputfield_";
        $strJavascriptCheck = <<<EOF

            case 'google_map':
                value_lon = document.getElementById('{$fieldName}' + field + '_lon').value;
                value_lat = document.getElementById('{$fieldName}' + field + '_lat').value;
                value_zoom = document.getElementById('{$fieldName}' + field + '_zoom').value;

                if ((value_lon == "" || value_lat == "" || value_zoom == "") && isRequiredGlobal(inputFields[field][1], value)) {
                    isOk = false;
                    if (value_lon == "" && isRequiredGlobal(inputFields[field][1], value)) {
                        document.getElementById('{$fieldName}' + field + '_lon').style.border = "#ff0000 1px solid";
                    }

                    if (value_lat == "" && isRequiredGlobal(inputFields[field][1], value)) {
                        document.getElementById('{$fieldName}' + field + '_lat').style.border = "#ff0000 1px solid";
                    }

                    if (value_zoom == "" && isRequiredGlobal(inputFields[field][1], value)) {
                        document.getElementById('{$fieldName}' + field + '_zoom').style.border = "#ff0000 1px solid";
                    }
                }  else {
                    document.getElementById('{$fieldName}' + field + '_lon').style.borderColor = '';
                    document.getElementById('{$fieldName}' + field + '_lat').style.borderColor = '';
                    document.getElementById('{$fieldName}' + field + '_zoom').style.borderColor = '';
                }

                break;

EOF;
        return $strJavascriptCheck;
    }
 /**
  * Constructor
  */
 function __construct($name)
 {
     parent::__construct('.', $name);
     parent::getSettings();
 }