* @param array $options - for future use. One should always have options!
* @return array of contacts which are arrays of key-value-pairs
*/
- static function search($pattern, $searchProperties = array(), $options = array()) {
+ public static function search($pattern, $searchProperties = array(), $options = array()) {
// dummy results
return array(
* @param object $id the unique identifier to a contact
* @return bool successful or not
*/
- static function delete($id) {
+ public static function delete($id) {
return false;
}
* @param array $properties this array if key-value-pairs defines a contact
* @return array representing the contact just created or updated
*/
- static function createOrUpdate($properties) {
+ public static function createOrUpdate($properties) {
// dummy
return array('id' => 0, 'FN' => 'Thomas Müller', 'EMAIL' => 'a@b.c',
'ADR' => ';;123 Main Street;Any Town;CA;91921-1234'
);
}
+
+ /**
+ * Check if contacts are available (e.g. contacts app enabled)
+ *
+ * @return bool true if enabled, false if not
+ */
+ public static function isEnabled() {
+ return false;
+ }
+
}