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:
@@ -44,7 +44,14 @@ class Form
|
||||
*/
|
||||
private static function assambleOptions( $option )
|
||||
{
|
||||
self::$option .= $option;
|
||||
if($option == false)
|
||||
{
|
||||
self::$option = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
self::$option .= $option;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,6 +64,14 @@ class Form
|
||||
return str_replace( 'OPTIONS', self::$option, $select );
|
||||
}
|
||||
|
||||
/**
|
||||
* @desc clear all form data in order to build a new one
|
||||
*/
|
||||
public static function create()
|
||||
{
|
||||
self::$form = "";
|
||||
}
|
||||
|
||||
/**
|
||||
* @desc is used internally for assambly only
|
||||
* @param $element
|
||||
@@ -144,7 +159,7 @@ class Form
|
||||
{
|
||||
self::setDiv( $div );
|
||||
}
|
||||
self::setElement( new \Nibiru\Form\Form() );
|
||||
self::setElement( new \Sunrise\Form\Form() );
|
||||
return self::display( self::getElement()->loadElement( $attributes ) );
|
||||
}
|
||||
|
||||
@@ -429,7 +444,7 @@ class Form
|
||||
}
|
||||
self::setElement( new TypeSelect() );
|
||||
self::assamble( self::displaySelect( self::getElement()->loadElement( $attributes ) ) );
|
||||
|
||||
self::assambleOptions( false );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user