| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* array('access CiviEvent', 'access CiviContribute')
* ),
*
- * @return boolean
+ * @return bool
* true if yes, else false
- * @static
*/
public static function check($permissions) {
$permissions = (array) $permissions;
* @param array $array
* The group/role to check.
*
- * @return boolean
+ * @return bool
* true if yes, else false
- * @static
*/
public static function checkGroupRole($array) {
$config = CRM_Core_Config::singleton();
* @param bool $excludeHidden
* exclude hidden groups.
*
- * @static
*
* @return array
* array reference of all groups.
'export own manual batches' => $prefix . ts('export own manual batches'),
'export all manual batches' => $prefix . ts('export all manual batches'),
'administer payment processors' => $prefix . ts('administer payment processors'),
+ 'edit message templates' => $prefix . ts('edit message templates'),
);
return $permissions;
* Validate user permission across
* edit or view or with supportable acls.
*
- * return boolean true/false.
- **/
+ * @return bool
+ */
public static function giveMeAllACLs() {
if (CRM_Core_Permission::check('view all contacts') ||
CRM_Core_Permission::check('edit all contacts')
*
* @param string $permission
*
- * return string $componentName the name of component.
- *
- * @return int|null|string
- * @static
+ * @return null|string
+ * the name of component.
*/
public static function getComponentName($permission) {
$componentName = NULL;
'is_enabled'
) ? TRUE : FALSE;
}
+
}