Files
pathfinder/app/main/model/connectionscopemodel.php
Mark Friedrich d59fe133e2 - New "Into The Abyss" support added, #631
- Updated Manual with new "Abyss" information, #631
- Fixed a bug with JSON DB columns after _Cortex_ ORM plugin update
2018-06-03 22:13:47 +02:00

69 lines
1.7 KiB
PHP

<?php
/**
* Created by PhpStorm.
* User: exodus4d
* Date: 17.02.15
* Time: 20:01
*/
namespace Model;
use DB\SQL\Schema;
class ConnectionScopeModel extends BasicModel{
protected $table = 'connection_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' => ''
],
'connectorDefinition' => [
'type' => Schema::DT_VARCHAR256,
'nullable' => false,
'default' => ''
]
];
protected static $tableData = [
[
'id' => 1,
'name' => 'wh',
'label' => 'wormhole',
'connectorDefinition' => '[ "Bezier", { "curviness": 40 } ]'
],
[
'id' => 2,
'name' => 'stargate',
'label' => 'stargate',
'connectorDefinition' => '[ "Flowchart", { "stub": [20, 20], "gap": 0, "cornerRadius": 5, "alwaysRespectStubs": false } ]'
],
[
'id' => 3,
'name' => 'jumpbridge',
'label' => 'jumpbridge',
'connectorDefinition' => '[ "Straight", { "stub": [5, 5], "gap": 0 } ]'
],
[
'id' => 4,
'name' => 'abyssal',
'label' => 'abyssal',
'connectorDefinition' => '[ "Straight", { "stub": [5, 5], "gap": 0 } ]'
]
];
}