Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
33a4dfa0
Commit
33a4dfa0
authored
12 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
function isEnabled() added
parent
c3825112
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/public/contacts.php
+13
-3
13 additions, 3 deletions
lib/public/contacts.php
with
13 additions
and
3 deletions
lib/public/contacts.php
+
13
−
3
View file @
33a4dfa0
...
...
@@ -56,7 +56,7 @@ class Contacts
* @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
(
...
...
@@ -71,7 +71,7 @@ class Contacts
* @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
;
}
...
...
@@ -82,7 +82,7 @@ class Contacts
* @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'
,
...
...
@@ -90,4 +90,14 @@ class Contacts
'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
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment