Exemplo n.º 1
0
 function __construct(&$c)
 {
     parent::__construct($c);
     $this->setRequired(array('ftp_username', 'ftp_password'));
 }
Exemplo n.º 2
0
 function __construct(&$c)
 {
     parent::__construct($c);
     $this->setDef(null, array('dbhost' => array('name' => _('DB Host'), 'type' => VAR_TYPE_STRING, 'form_type' => FORM_TYPE_TEXT, 'required' => true), 'dbname' => array('name' => _('DB name'), 'type' => VAR_TYPE_STRING, 'form_type' => FORM_TYPE_TEXT, 'required' => true), 'dbuname' => array('name' => _('DB Username'), 'type' => VAR_TYPE_STRING, 'form_type' => FORM_TYPE_PASSWORD, 'required' => true), 'dbpass' => array('name' => _('DB Password'), 'type' => VAR_TYPE_STRING, 'form_type' => FORM_TYPE_TEXT, 'required' => true), 'prefix' => array('name' => _('Database table prefix'), 'type' => VAR_TYPE_STRING, 'form_type' => FORM_TYPE_RADIO, 'required' => true)));
 }
Exemplo n.º 3
0
 function __construct(&$c)
 {
     parent::__construct($c);
     $this->setRequired(array('repository_url'));
 }
Exemplo n.º 4
0
 function __construct(&$c)
 {
     parent::__construct($c);
     $this->setRequired();
 }
Exemplo n.º 5
0
 function __construct(&$c)
 {
     parent::__construct($c);
     $this->form['root_path'] = array('type' => VAR_TYPE_STRING);
     $this->setRequired(array('ftp_username', 'ftp_password', 'root_path'));
 }
Exemplo n.º 6
0
 function __construct(&$c)
 {
     parent::__construct($c);
     $this->setRequired(array('target_package'));
 }