2017 © Pedro Peláez
 

library yii2-gui-acyclic-graphs

Yii 2 model management GUI interface

image

bscheshirwork/yii2-gui-acyclic-graphs

Yii 2 model management GUI interface

  • Wednesday, June 13, 2018
  • by bscheshirwork
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 36 % Grown

The README.md

Graph for parent-child representation relations on self-relates activeRecord

i.e. for next composition, (*1)

/**
 * @property MainModel[] $parents
 * @property MainModel[] $childs
 */
class MainModel extends \yii\db\ActiveRecord
{
    var $id;
}
/**
 * @property MainModel $parent
 * @property MainModel $child
 */
class RelationModel extends \yii\db\ActiveRecord
{
    var $parentId;
    var $childId;
}

via table property can be prefixed parent, child, can accept complex pk;, (*2)

graphical representation and actions:, (*3)

default, (*4)

similar at githubjeka/yii2-gui-rbac, (*5)

http://i.imgur.com/BXTKymp.jpg, (*6)

How to install

Follow the commands: - Add to your composer.json "bscheshirwork/yii2-gui-acyclic-graphs": "*@dev" - Run composer update - Add to config the code:, (*7)

// '/config/web.php' for Basic or '/backend/config/main' - Advanced Yii2 application.
'modules' => [
    'gui' => [
        'class' => 'bscheshirwork\gui\Module',
        'as access' => [ // if you need to set access
            'class' => 'yii\filters\AccessControl',
            'rules' => [
                [
                    'allow' => true,
                    'roles' => ['@'] // all auth users 
                ],
            ],
        ],
        'mainModel' => 'common\models\MainModel', // model, who have relations. (rectangles)
        'mainModelFormView' => '@backend/views/main-model/_form-gui', //Active form for MainModel. See @vendor/bscheshirwork/yii2-gui-acyclic-graphs/src/views/default/_form
        'relationModel' => 'common\models\RelationModel', // via model (arrows)
        'arrowDirection' => bscheshirwork\gui\Module::PARENT_TO_CHILD, // direction of arrow representation
    ],
],
  • go to url /index.php?r=gui

The Versions

13/06 2018

dev-master

9999999-dev https://github.com/bscheshirwork/yii2-gui-acyclic-graphs

Yii 2 model management GUI interface

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gui

13/06 2018

2.0.8

2.0.8.0 https://github.com/bscheshirwork/yii2-gui-acyclic-graphs

Yii 2 model management GUI interface

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gui

26/07 2017

2.0.5

2.0.5.0 https://github.com/bscheshirwork/yii2-gui-acyclic-graphs

Yii 2 model management GUI interface

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 gui