- BC Break: _PHP_ namespaces changed (PSR-4 standard). The _root_ namespace for all _PF_ related scripts is Exodus4D\Pathfinder
- BC Break: Project folder structure changed. Removed `app/main` dir. - BC Break: Core _PHP_ framework + dependencies moved into `composer.json` and are no longer part of this repo
This commit is contained in:
65
app/Model/Pathfinder/MapScopeModel.php
Normal file
65
app/Model/Pathfinder/MapScopeModel.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: exodus4d
|
||||
* Date: 17.02.15
|
||||
* Time: 20:01
|
||||
*/
|
||||
|
||||
namespace Exodus4D\Pathfinder\Model\Pathfinder;
|
||||
|
||||
use DB\SQL\Schema;
|
||||
|
||||
class MapScopeModel extends AbstractPathfinderModel{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'map_scope';
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
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' => ''
|
||||
]
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
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'
|
||||
]
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user