External changes from #6158
This commit is contained in:
parent
e43e9f1239
commit
6ea19ac5fa
|
@ -31,9 +31,6 @@ global $config;
|
|||
|
||||
require_once $config['homedir'].'/vendor/autoload.php';
|
||||
require_once $config['homedir'].'/include/class/HTML.class.php';
|
||||
|
||||
use \HTML;
|
||||
|
||||
/**
|
||||
* Global Wizard generic class. Needs to be inherited.
|
||||
*
|
||||
|
|
|
@ -61,12 +61,12 @@ abstract class Entity
|
|||
/**
|
||||
* Instances a new object using array definition.
|
||||
*
|
||||
* @param string $class_str Class name.
|
||||
* @param array $data Fields data.
|
||||
* @param string $class_str Class name.
|
||||
*
|
||||
* @return object With current definition.
|
||||
*/
|
||||
public static function build(string $class_str, array $data=[])
|
||||
public static function build(array $data=[], string $class_str=__CLASS__)
|
||||
{
|
||||
$obj = new $class_str();
|
||||
// Set values.
|
||||
|
|
Loading…
Reference in New Issue