- new role management for Corporation maps, closed #164
- new role management section for corporations admins - added column "nullable" detection within /setup page for DB diff - added new map icon options options to the map add/edit dialog - refactored setup() method for all tables with static data - fixed broken map icons - fixed broken "drag/select" for systems on map - fixed new "map resize" event for non Chrome browsers - multiple minor improvements and fixes...
This commit is contained in:
@@ -881,4 +881,24 @@ abstract class BasicModel extends \DB\Cortex {
|
||||
return $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* overwrites parent
|
||||
* @param null $db
|
||||
* @param null $table
|
||||
* @param null $fields
|
||||
* @return bool
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function setup($db=null, $table=null, $fields=null){
|
||||
$status = parent::setup($db,$table,$fields);
|
||||
|
||||
// set static default data
|
||||
if($status === true && property_exists(static::class, 'tableData')){
|
||||
$model = self::getNew(self::getClassName(), 0);
|
||||
$model->importStaticData(static::$tableData);
|
||||
}
|
||||
|
||||
return $status;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user