Horde_ActiveSync_SyncCache::collectionIsPingable PHP Method

collectionIsPingable() public method

Check if a specified collection is PINGable.
public collectionIsPingable ( string $id ) : boolean
$id string The collection id.
return boolean
    public function collectionIsPingable($id)
    {
        return !empty($this->_data['collections'][$id]) && !empty($this->_data['collections'][$id]['pingable']);
    }

Usage Example

Esempio n. 1
0
 /**
  * Check if we have any pingable collections.
  *
  * @return boolean  True if we have collections marked as pingable.
  */
 public function havePingableCollections()
 {
     foreach (array_keys($this->_collections) as $id) {
         if ($this->_cache->collectionIsPingable($id)) {
             return true;
         }
     }
     return false;
 }
All Usage Examples Of Horde_ActiveSync_SyncCache::collectionIsPingable