src/libraries/adapters/DatabaseSimpleDb.php
/**
    * Formats a group to be updated or added to the database.
    * Primarily to properly format members as an array.
    *
    * @param string $id ID of the group.
    * @param array $params Parameters for the group to be normalized.
    * @return array
    */
Formats a group to be updated or added to the database.
Primarily to properly format members as an array.

@param string $id ID of the group.
@param array $params Parameters for the group to be normalized.
@return array
Formats a group to be updated or added to the database . Primarily to properly format members as an array . @param string $id ID of the group . @param array $params Parameters for the group to be normalized . @return array
private function prepareGroup($id, $params)
  {
    $params['Name'] = $id;
    if(!isset($params['members']))
      $params['members'] = array();
    elseif(!is_array($params['members']))
      $params['members'] = (array)explode(',', $params['members']);
    return $params;
  }
private function prepareGroup ( $ id , $ params ) { $ params [ 'Name' ] = $ id ; if ( ! isset ( $ params [ 'members' ] ) ) $ params [ 'members' ] = array ( ) ; elseif ( ! is_array ( $ params [ 'members' ] ) ) $ params [ 'members' ] = ( array ) explode ( ',' , $ params [ 'members' ] ) ; return $ params ; }
Formats a group to be updated or added to the database.
Formats a group to be updated or added to the database .