◆ addAnnotation()
Create annotation;
Requires the owner_guid, subject_guid, and annotation type
- Returns
- boolean
◆ annon_delete_by_subject()
annon_delete_by_subject |
( |
|
$subject, |
|
|
|
$type |
|
) |
| |
Delete annotations by subject guid
@params $subject = subject_guid, $type = annotation type
- Parameters
-
- Returns
- object;
◆ canChange()
Can change Check if user can change the requested item or not
- Parameters
-
- Returns
- boolean
Reimplemented from OssnEntities.
◆ deleteAnnotation()
deleteAnnotation |
( |
|
$annotation = 0 | ) |
|
Delete Annotation
- Parameters
-
integer | $annotation | annotation_id |
- Returns
- boolean;
◆ deleteAnnotationByOwner()
deleteAnnotationByOwner |
( |
|
$ownerguid | ) |
|
Delete Annotation
- Parameters
-
integer | $annotation | annotation_id |
- Returns
- boolean
◆ getAnnotationById()
Get annotation by annotation id;
Requires : $object->(annotation_id)
- Returns
- object
◆ getAnnotationBySubject()
getAnnotationBySubject |
( |
| ) |
|
Get annotation by subject_guid;
Requires : $object->(subject_guid, types(optional))
- Returns
- object;
◆ getAnnotationId()
Get newly create annoation id
- Returns
- integer
◆ getAnnotationsByOwner()
getAnnotationsByOwner |
( |
| ) |
|
Get annotations by owner
Requires : $this->owner_guid
- Returns
- object;
◆ getAnnotationsByType()
Get annotations by annotation type
Requires: $object->(annotation_id)
- Returns
- object;
◆ initAttributes()
Initialize the objects.
- Returns
- void
Reimplemented from OssnEntities.
◆ save()
A annotation save method
- Returns
- boolean
Reimplemented from OssnEntities.
◆ searchAnnotation()
searchAnnotation |
( |
array |
$params = array() | ) |
|
Search annotation by its type, owner etc
- Parameters
-
array | $params | A valid options in format: |
string | $params,['search_type'] | true(default) to performs matching on a per-character basis , false to performs matching on exact value. |
string | $params,['type'] | Valid annotation type |
integer | $params,['subject_guid'] | A valid subject guid, which results integer value |
integer | $params,['owner_guid'] | A valid owner guid, which results integer value |
integer | $params,['limit'] | Result limit default, Default is 20 values |
string | $params,['order_by'] | To show result in sepcific order. There is no default order. |
reutrn array|false;
The documentation for this class was generated from the following file:
- source/classes/OssnAnnotation.php