http://phing.info/

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.

Methods: 2 LOC: 55 Statements: 4

Source file Statements Methods Total coverage
Provider.php 100.0% 100.0% 100.0%
 
1
<?php
2
/**
3
 * Xyster Framework
4
 *
5
 * This source file is subject to the new BSD license that is bundled
6
 * with this package in the file LICENSE.txt.
7
 * It is also available through the world-wide-web at this URL:
8
 * http://www.opensource.org/licenses/bsd-license.php
9
 *
10
 * @category  Xyster
11
 * @package   Xyster_Acl
12
 * @copyright Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
13
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
14
 * @version   $Id: Provider.php 202 2008-01-20 16:20:09Z doublecompile $
15
 */
16
/**
17
 * @see Xyster_Acl_RoleProvider_Interface
18
 */
19 1
require_once 'Xyster/Acl/Role/Provider/Interface.php';
20
/**
21
 * Zend_Acl_Role
22
 */
23 1
require_once 'Zend/Acl/Role.php';
24
/**
25
 * Default provider for authentication to authorization
26
 *
27
 * @category  Xyster
28
 * @package   Xyster_Acl
29
 * @copyright Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
30
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
31
 */
32
class Xyster_Acl_Role_Provider implements Xyster_Acl_Role_Provider_Interface
33
{
34
    /**
35
     * Gets a Zend_Acl_Role_Interface based on the identity provided
36
     *
37
     * @param mixed $identity An identity as provided by Zend_Auth
38
     * @return Zend_Acl_Role_Interface The role to which this identity corresponds
39
     */
40
    public function getRole( $identity )
41
    {
42 4
        return new Zend_Acl_Role($identity);
43
    }
44
45
    /**
46
     * Gets the parent roles for the provided role
47
     *
48
     * @param Zend_Acl_Role_Interface $role
49
     * @return array An array of Zend_Acl_Role_Interface objects
50
     */
51
    public function getRoleParents( Zend_Acl_Role_Interface $role )
52
    {
53 3
        return array();
54
    }
55
}


Report generated at 2008-01-20T12:13:38-05:00