Esempio n. 1
0
 /**
  * Returns a list of cards.
  *
  * This method should work identical to getCard, but instead return all the
  * cards in the list as an array.
  *
  * If the backend supports this, it may allow for some speed-ups.
  *
  * @param mixed $addressBookId
  * @param array $uris
  * @return array
  */
 public function getMultipleCards($addressBookId, array $uris)
 {
     return array_map(function ($uri) use($addressBookId) {
         return $this->getCard($addressBookId, $uri);
     }, $uris);
     return VCard::getMultipleCardsDavData($addressBookId, $uris);
 }