compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History

{code:php|title=ZendPermissionRbacAbstractIterator.php|borderStyle=solid}
<?php
namespace Zend\Permission\Rbac;


{code:php|title=ZendPermissionRbacAbstractRole.php|borderStyle=solid}
<?php
namespace Zend\Permission\Rbac;


{code:php|title=ZendPermissionRbacRbac.php|borderStyle=solid}
<?php
namespace Zend\Permission\Rbac;


{code:php|title=ZendPermissionRbacRole.php|borderStyle=solid}
<?php
namespace Zend\Permission\Rbac;

h3. Setting up roles and permissions
{code:php|title=Roles|borderStyle=solid}
<?php

// Creating roles manually
$foo->addPermission('test');
var_dump($foo->hasPermission('test')); // true
$rbac->getRole('foo')->addPermission('barperm');

// Using Rbac container
$rbac->getRole('foo')->addPermission('barperm');
{code}


{code:php|title=Zend\\Permission\\Rbac\\AssertionInterface|borderStyle=solid}
<?php

$event = new \My\Event;
$event->setUserId(1);