Files
pathfinder/app/main/model/mapscopemodel.php
Mark Friedrich ac36d5e074 - 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...
2018-02-16 17:02:10 +01:00

56 lines
1.1 KiB
PHP

<?php
/**
* Created by PhpStorm.
* User: exodus4d
* Date: 17.02.15
* Time: 20:01
*/
namespace Model;
use DB\SQL\Schema;
class MapScopeModel extends BasicModel{
protected $table = 'map_scope';
protected $fieldConf = [
'active' => [
'type' => Schema::DT_BOOL,
'nullable' => false,
'default' => 1,
'index' => true
],
'name' => [
'type' => Schema::DT_VARCHAR128,
'nullable' => false,
'default' => ''
],
'label' => [
'type' => Schema::DT_VARCHAR128,
'nullable' => false,
'default' => ''
]
];
protected static $tableData = [
[
'id' => 1,
'name' => 'wh',
'label' => 'wormholes'
],[
'id' => 2,
'name' => 'k-space',
'label' => 'stargates'
],[
'id' => 3,
'name' => 'none',
'label' => 'none'
],[
'id' => 4,
'name' => 'all',
'label' => 'all'
]
];
}