Update Version 0.4.0 beta 09.07.2018
- Bugfix on the form classes, now the select option is correctly set back. - Update for the database adapter - Improvement of the form elements, added onchange on the select boxes, the form tag now can have no element if needed. - Implementation of the Postgres and MySQL Adapter with propper Namespacing. - Minor bugfixing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
namespace Nibiru;
|
||||
namespace Nibiru\Adapter;
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: kasdorf
|
||||
|
||||
@@ -18,6 +18,7 @@ interface IForm
|
||||
const FORM_METHOD_TYPE = array('post', 'get');
|
||||
const FORM_ACTION = 'action';
|
||||
const FORM_TARGET = 'target';
|
||||
const FORM_ENCTYPE = 'enctype';
|
||||
const FORM_TARGET_TYPE = array('_blank', '_self', '_parent', '_top');
|
||||
const FORM_TYPE_TEXT = 'text';
|
||||
const FORM_TYPE_SUBMIT = 'submit';
|
||||
@@ -34,6 +35,10 @@ interface IForm
|
||||
const FORM_ATTRIBUTE_PLACEHOLDER = 'placeholder';
|
||||
const FORM_ATTRIBUTE_REQUIRED = 'required';
|
||||
const FORM_ATTRIBUTE_TYPE = 'type';
|
||||
const FORM_ATTRIBUTE_ONCHANGE = 'onchange';
|
||||
const FORM_ATTRIBUTE_ONSUBMIT = 'onsubmit';
|
||||
const FORM_ATTRIBUTE_SELECTED = 'selected';
|
||||
const FORM_ATTRIBUTE_CONTEXT = 'context';
|
||||
|
||||
/**
|
||||
* @desc loads the current Form element to the form
|
||||
|
||||
Reference in New Issue
Block a user