wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
class.Role.php
Go to the documentation of this file.
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2014 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of any of the following licenses
7  * at your choice:
8  *
9  * - GNU Lesser General Public License (LGPL)
10  * http://www.gnu.org/licenses/lgpl.html
11  * - Eclipse Public License (EPL)
12  * http://www.eclipse.org/org/documents/epl-v10.php
13  *
14  * See the license.txt file distributed with this work for
15  * additional information.
16  *
17  * $Id: class.Role.php 1462 2014-02-04 23:52:27Z iherwig $
18  */
19 require_once(BASE."wcmf/lib/model/class.Node.php");
20 
21 /**
22  * @class Role
23  * @ingroup Security
24  * @brief Abstract base class for role classes that represent a user role.
25  *
26  * @author ingo herwig <ingo@wemove.com>
27  */
28 class Role extends Node
29 {
30  /**
31  * Default constructor.
32  */
33  function Role($oid=null, $type='Role')
34  {
35  parent::Node($type, $oid);
36  }
37 
38  /**
39  * Set the name of the role.
40  * @param name The name of the role.
41  */
42  function setName($name)
43  {
44  WCMFException::throwEx("setName() must be implemented by derived class: ".get_class($this), __FILE__, __LINE__);
45  }
46 
47  /**
48  * Get name of the role.
49  * @return The name of the role.
50  */
51  function getName()
52  {
53  WCMFException::throwEx("getName() must be implemented by derived class: ".get_class($this), __FILE__, __LINE__);
54  }
55 }
56 ?>
Node is the basic component for building trees (although a Node can have one than more parents)...
Definition: class.Node.php:118
Abstract base class for role classes that represent a user role.
Definition: class.Role.php:28
throwEx($message, $file='', $line='')
setName($name)
Definition: class.Role.php:42
getName()
Definition: class.Role.php:51
Role($oid=null, $type='Role')
Definition: class.Role.php:33