ExposedPhpManager.php 703 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<?php
namespace yiiunit\framework\rbac;

use yii\rbac\PhpManager;

/**
 * Exposes protected properties and methods to inspect from outside
 */
class ExposedPhpManager extends PhpManager
{
    /**
     * @var \yii\rbac\Item[]
     */
    public $items = []; // itemName => item
    /**
     * @var array
     */
    public $children = []; // itemName, childName => child
    /**
     * @var \yii\rbac\Assignment[]
     */
    public $assignments = []; // userId, itemName => assignment
    /**
     * @var \yii\rbac\Rule[]
     */
    public $rules = []; // ruleName => rule

    public function load()
    {
        parent::load();
    }

    public function save()
    {
        parent::save();
    }
}