public function addRole($label, $includedRoles = null, core_kernel_classes_Class $class = null)
    {
        $returnValue = null;

        $includedRoles = is_array($includedRoles) ? $includedRoles : array($includedRoles);
		$includedRoles = empty($includedRoles[0]) ? array() : $includedRoles;
		
		$classRole =  (empty($class)) ? new core_kernel_classes_Class(GenerisRdf::CLASS_ROLE) : $class;
		$includesRoleProperty = new core_kernel_classes_Property(GenerisRdf::PROPERTY_ROLE_INCLUDESROLE);
        $role = $classRole->createInstance($label, "${label} Role");
        
        foreach ($includedRoles as $ir){
        	$role->setPropertyValue($includesRoleProperty, $ir);	
        }
        
        $returnValue = $role;

        return $returnValue;
    }
public function addRole($label, $includedRoles = null, core_kernel_classes_Class $class = null)
    {
        $returnValue = null;

        $includedRoles = is_array($includedRoles) ? $includedRoles : array($includedRoles);
		$includedRoles = empty($includedRoles[0]) ? array() : $includedRoles;
		
		$classRole =  (empty($class)) ? new core_kernel_classes_Class(GenerisRdf::CLASS_ROLE) : $class;
		$includesRoleProperty = new core_kernel_classes_Property(GenerisRdf::PROPERTY_ROLE_INCLUDESROLE);
        $role = $classRole->createInstance($label, "${label} Role");
        
        foreach ($includedRoles as $ir){
        	$role->setPropertyValue($includesRoleProperty, $ir);	
        }
        
        $returnValue = $role;

        return $returnValue;
    }
public function addRole ( $ label , $ includedRoles = null , core_kernel_classes_Class $ class = null ) { $ returnValue = null ; $ includedRoles = is_array ( $ includedRoles ) ? $ includedRoles : array ( $ includedRoles ) ; $ includedRoles = empty ( $ includedRoles [ 0 ] ) ? array ( ) : $ includedRoles ; $ classRole = ( empty ( $ class ) ) ? new core_kernel_classes_Class ( GenerisRdf :: CLASS_ROLE ) : $ class ; $ includesRoleProperty = new core_kernel_classes_Property ( GenerisRdf :: PROPERTY_ROLE_INCLUDESROLE ) ; $ role = $ classRole -> createInstance ( $ label , "${label} Role" ) ; foreach ( $ includedRoles as $ ir ) { $ role -> setPropertyValue ( $ includesRoleProperty , $ ir ) ; } $ returnValue = $ role ; return $ returnValue ; }
Add a role in Generis.

@access public
@author Jerome Bogaerts, <jerome@taotesting.com>
@param  string label The label to apply to the newly created Generis Role.
@param  includedRoles The Role(s) to be included in the newly created Generis Role. Can be either a Resource or an array of Resources.
@return core_kernel_classes_Resource
Add a role in Generis .