PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/jairosvt/public_html/publicidadaf/lib/OX/Admin/UI/Install/ |
| Server: Linux server2.noticiasdecolima.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64 IP: 107.161.180.42 |
| Dir : /home/jairosvt/public_html/publicidadaf/lib/OX/Admin/UI/Install/BaseForm.php |
<?php
/*
+---------------------------------------------------------------------------+
| Revive Adserver |
| http://www.revive-adserver.com |
| |
| Copyright: See the COPYRIGHT.txt file. |
| License: GPLv2 or later, see the LICENSE.txt file. |
+---------------------------------------------------------------------------+
*/
require_once MAX_PATH .'/lib/OA/Admin/UI/component/Form.php';
/**
* @package OX_Admin_UI
* @subpackage Install
*/
class OX_Admin_UI_Install_BaseForm
extends OA_Admin_UI_Component_Form
{
/**
* OX translation class
*
* @var OX_Translation
*/
protected $oTranslation;
/**
* Builds Database details form.
* @param OX_Translation $oTranslation instance
*/
public function __construct($formName='', $method='POST', $action='', $attributes=null, $oTranslation=null)
{
parent::__construct($formName, $method, $action, '', $attributes, true);
$this->forceClientValidation(true);
$this->oTranslation = $oTranslation;
}
protected function getRequiredFieldMessage($fieldLabel)
{
return $this->oTranslation->translate('XRequiredField', array($fieldLabel));
}
protected function addRequiredRule($fieldName, $fieldLabel)
{
$this->addRule($fieldName, $this->getRequiredFieldMessage($fieldLabel), 'required');
}
}
?>