<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
class CRM_Core_Permission_Drupal6 extends CRM_Core_Permission_DrupalBase {
/**
- * Is this user someone with access for the entire system
+ * Is this user someone with access for the entire system.
*
* @var boolean
*/
protected $_editPermission = FALSE;
/**
- * The current set of permissioned groups for the user
+ * The current set of permissioned groups for the user.
*
* @var array
*/
*
* @param int $contactID
*
- * @return boolean
+ * @return bool
* true if yes, else false
*/
public function check($str, $contactID = NULL) {
* @param array $array
* The roles to check.
*
- * @return boolean
+ * @return bool
* true if yes, else false
*/
-
public function checkGroupRole($array) {
if (function_exists('user_load') && isset($array)) {
$user = user_load(array('uid' => $GLOBALS['user']->uid));
}
/**
- * Get all the contact emails for users that have a specific role
+ * Get all the contact emails for users that have a specific role.
*
* @param string $roleName
* Name of the role we are interested in.
}
/**
- * Get all the contact emails for users that have a specific permission
+ * Get all the contact emails for users that have a specific permission.
*
* @param string $permissionName
* Name of the permission we are interested in.
}
/**
- * {@inheritDoc}
+ * @inheritDoc
*/
public function isModulePermissionSupported() {
return TRUE;
}
/**
- * {@inheritdoc}
+ * @inheritDoc
*
* Does nothing in Drupal 6.
*/
*
* @param $module
*
- * @return Array
- * of permissions, in the same format as CRM_Core_Permission::getCorePermissions().
+ * @return array
+ * Array of permissions, in the same format as CRM_Core_Permission::getCorePermissions().
*/
public static function getModulePermissions($module) {
$return_permissions = array();
}
return $return_permissions;
}
+
}