* @param int $id
* Group id.
*
- * @return null
+ * @return NULL
* @static
*
*/
* Which properties should be included in the returned group objects.
* (member_count should be last element.)
*
- * @param null $sort
- * @param null $offset
- * @param null $rowCount
+ * @param NULL $sort
+ * @param NULL $offset
+ * @param NULL $rowCount
*
* @return array of group objects.
*
* @param int $id
* The id of the object.
*
- * @return string the permission that the user has (or null)
+ * @return string the permission that the user has (or NULL)
* @static
*/
public static function checkPermission($id) {
* @param array $params
* Associative array of parameters.
*
- * @return object|null The new group BAO (if created)
+ * @return object|NULL The new group BAO (if created)
* @static
*/
public static function &create(&$params) {
* @param array $params
* Associative array of parameters.
*
- * @return object|null The new group BAO (if created)
+ * @return object|NULL The new group BAO (if created)
* @static
*/
public static function createSmartGroup(&$params) {
* @param bool $isActive
* Value we want to set the is_active field.
*
- * @return Object DAO object on sucess, null otherwise
+ * @return Object DAO object on sucess, NULL otherwise
* @static
*/
public static function setIsActive($id, $isActive) {
);
// If group has children, add class for link to view children
- $values[$object->id]['is_parent'] = false;
+ $values[$object->id]['is_parent'] = FALSE;
if (array_key_exists('children', $values[$object->id])) {
$values[$object->id]['class'][] = "crm-group-parent";
- $values[$object->id]['is_parent'] = true;
+ $values[$object->id]['is_parent'] = TRUE;
}
// If group is a child, add child class
* @param array $groupIDs
* Array of group ids.
*
- * @param null $parents
+ * @param NULL $parents
* @param string $spacer
* @param bool $titleOnly
*
$allGroups[$dao->id] = array(
'title' => $dao->title,
'visibility' => $dao->visibility,
- 'description' => $dao->description
+ 'description' => $dao->description,
);
if ($dao->parents == $parents) {
$roots[] = array(
'id' => $dao->id,
'prefix' => '',
- 'title' => $dao->title
+ 'title' => $dao->title,
);
}
else {
'id' => $dao->id,
'prefix' => '',
'title' => $dao->title,
- 'parents' => $parent
+ 'parents' => $parent,
);
}
}
$new_roots[] = array(
'id' => $row['id'],
'prefix' => $groups[$root['id']][0] . $spacer,
- 'title' => $row['title']
+ 'title' => $row['title'],
);
unset($rows[$key]);
}
/**
* @param array $params
*
- * @return null|string
+ * @return NULL|string
*/
public static function getGroupCount(&$params) {
$whereClause = self::whereClause($params, FALSE);
if ($excludeHidden) {
$clauses[] = 'groups.is_hidden = 0';
}
- ;
+
$clauses[] = self::getPermissionClause();