src/libraries/adapters/DatabaseMySql.php
/**
    * Add members to a group
    *
    * @param string $id Group id
    * @param array $members Members to be added
    * @return boolean
    */
Add members to a group
@param string $id Group id
@param array $members Members to be added
@return boolean
Add members to a group @param string $id Group id @param array $members Members to be added @return boolean
private function addGroupMembers($id, $members)
  {
    if(empty($id) || empty($members))
      return false;
    $sql = "REPLACE INTO `{$this->mySqlTablePrefix}groupMember`(`owner`, `group`, `email`) VALUES ";
    foreach($members as $member)
      $sql .= sprintf("('%s', '%s', '%s'),", $this->_($this->owner), $this->_($id), $this->_($member));
    $sql = substr($sql, 0, -1);
    $res = $this->db->execute($sql);
    return $res > 0;
  }
private function addGroupMembers ( $ id , $ members ) { if ( empty ( $ id ) || empty ( $ members ) ) return false ; $ sql = " REPLACE INTO ` { $ this -> mySqlTablePrefix } groupMember`(`owner`, `group`, `email`) VALUES  " ; foreach ( $ members as $ member ) $ sql .= sprintf ( " ('%s', '%s', '%s'), " , $ this -> _ ( $ this -> owner ) , $ this -> _ ( $ id ) , $ this -> _ ( $ member ) ) ; $ sql = substr ( $ sql , 0 , - 1 ) ; $ res = $ this -> db -> execute ( $ sql ) ; return $ res > 0 ; }
Add members to a group
 @param string $id Group id
 @param array $members Members to be added
 @return boolean
Add members to a group @param string $id Group id @param array $members Members to be added @return boolean