Interfaces with the database to perform CRUD operations on annotations.
More...
Interfaces with the database to perform CRUD operations on annotations.
Definition at line 15 of file AnnotationsTable.php.
Create a new annotation and return its ID.
- Parameters
-
\ElggAnnotation | $annotation | Annotation |
\ElggEntity | $entity | Entity being annotated |
- Returns
- int|bool
Definition at line 91 of file AnnotationsTable.php.
Deletes an annotation using its ID.
- Parameters
-
\ElggAnnotation | $annotation | Annotation |
- Returns
- bool
Definition at line 60 of file AnnotationsTable.php.
Elgg\Database\AnnotationsTable::deleteAll |
( |
array |
$options | ) |
|
Elgg\Database\AnnotationsTable::disable |
( |
\ElggAnnotation |
$annotation | ) |
|
Disable the annotation.
- Parameters
-
\ElggAnnotation | $annotation | Annotation |
- Returns
- bool
- Since
- 1.8
Definition at line 195 of file AnnotationsTable.php.
Elgg\Database\AnnotationsTable::disableAll |
( |
array |
$options | ) |
|
Disables annotations based on $options.
- Warning
- Unlike elgg_get_annotations() this will not accept an empty options array!
- Parameters
-
- Returns
- bool true on success, false on failure
Definition at line 323 of file AnnotationsTable.php.
Enable the annotation.
- Parameters
-
\ElggAnnotation | $annotation | Annotation |
- Returns
- bool
- Since
- 1.8
Definition at line 231 of file AnnotationsTable.php.
Elgg\Database\AnnotationsTable::enableAll |
( |
array |
$options | ) |
|
Enables annotations based on $options.
- Warning
- Unlike elgg_get_annotations() this will not accept an empty options array!
- Parameters
-
- Returns
- bool true on success, false on failure
Definition at line 361 of file AnnotationsTable.php.
Elgg\Database\AnnotationsTable::exists |
( |
int |
$entity_guid, |
|
|
string |
$name, |
|
|
int |
$owner_guid |
|
) |
| |
Check to see if a user has already created an annotation on an object.
- Parameters
-
int | $entity_guid | Entity guid |
string | $name | Annotation name |
int | $owner_guid | Owner guid |
- Returns
- bool
Definition at line 420 of file AnnotationsTable.php.
Elgg\Database\AnnotationsTable::find |
( |
array |
$options = [] | ) |
|
Elgg\Database\AnnotationsTable::get |
( |
int |
$id | ) |
|
Get a specific annotation by its id.
- Parameters
-
int | $id | The id of the annotation object |
- Returns
- |null
Definition at line 41 of file AnnotationsTable.php.
Elgg\Database\AnnotationsTable::isValidOptionsForBatchOperation |
( |
array |
$options | ) |
|
|
protected |
Checks if there are some constraints on the options array for potentially dangerous operations.
- Parameters
-
array | $options | options to check |
- Returns
- bool
Definition at line 393 of file AnnotationsTable.php.
Store updated annotation in the database.
- Parameters
-
\ElggAnnotation | $annotation | Annotation to store |
- Returns
- bool
Definition at line 154 of file AnnotationsTable.php.
Database Elgg\Database\AnnotationsTable::$db |
|
protected |
The documentation for this class was generated from the following file: