Example #1
0
 public function countContacts($pattern) {
   if(!empty($this->addressbooks)) {
     if(trim($pattern)) $pattern = "($pattern ".$this->queryFilter.") AND ".$this->queryFilter;
     else $pattern = $this->queryFilter;
     return OBM_Contact::count($pattern, $offset, $limit);
   }
 }