|
@@ 3387-3393 (lines=7) @@
|
| 3384 |
|
* @deprecated 1.8 Use elgg_get_annotations() and pass 'count' => true |
| 3385 |
|
* @return int |
| 3386 |
|
*/ |
| 3387 |
|
function count_annotations($entity_guid = 0, $entity_type = "", $entity_subtype = "", |
| 3388 |
|
$name = "", $value = "", $value_type = "", $owner_guid = 0, $timelower = 0, |
| 3389 |
|
$timeupper = 0) { |
| 3390 |
|
elgg_deprecated_notice('count_annotations() is deprecated by elgg_get_annotations() and passing "count" => true', 1.8); |
| 3391 |
|
return elgg_deprecated_annotation_calculation($entity_guid, $entity_type, $entity_subtype, |
| 3392 |
|
$name, $value, $value_type, $owner_guid, $timelower, $timeupper, 'count'); |
| 3393 |
|
} |
| 3394 |
|
|
| 3395 |
|
/** |
| 3396 |
|
* Return the sum of a given integer annotation. |
|
@@ 3409-3415 (lines=7) @@
|
| 3406 |
|
* @deprecated 1.8 Use elgg_get_annotations() and pass 'annotation_calculation' => 'sum' |
| 3407 |
|
* @return int |
| 3408 |
|
*/ |
| 3409 |
|
function get_annotations_sum($entity_guid, $entity_type = "", $entity_subtype = "", $name = "", |
| 3410 |
|
$value = "", $value_type = "", $owner_guid = 0) { |
| 3411 |
|
elgg_deprecated_notice('get_annotations_sum() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "sum"', 1.8); |
| 3412 |
|
|
| 3413 |
|
return elgg_deprecated_annotation_calculation($entity_guid, $entity_type, $entity_subtype, |
| 3414 |
|
$name, $value, $value_type, $owner_guid, 0, 0, 'sum'); |
| 3415 |
|
} |
| 3416 |
|
|
| 3417 |
|
/** |
| 3418 |
|
* Return the max of a given integer annotation. |
|
@@ 3431-3437 (lines=7) @@
|
| 3428 |
|
* @deprecated 1.8 Use elgg_get_annotations() and pass 'annotation_calculation' => 'max' |
| 3429 |
|
* @return int |
| 3430 |
|
*/ |
| 3431 |
|
function get_annotations_max($entity_guid, $entity_type = "", $entity_subtype = "", $name = "", |
| 3432 |
|
$value = "", $value_type = "", $owner_guid = 0) { |
| 3433 |
|
elgg_deprecated_notice('get_annotations_max() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "max"', 1.8); |
| 3434 |
|
|
| 3435 |
|
return elgg_deprecated_annotation_calculation($entity_guid, $entity_type, $entity_subtype, |
| 3436 |
|
$name, $value, $value_type, $owner_guid, 0, 0, 'max'); |
| 3437 |
|
} |
| 3438 |
|
|
| 3439 |
|
|
| 3440 |
|
/** |
|
@@ 3454-3460 (lines=7) @@
|
| 3451 |
|
* @deprecated 1.8 Use elgg_get_annotations() and pass 'annotation_calculation' => 'min' |
| 3452 |
|
* @return int |
| 3453 |
|
*/ |
| 3454 |
|
function get_annotations_min($entity_guid, $entity_type = "", $entity_subtype = "", $name = "", |
| 3455 |
|
$value = "", $value_type = "", $owner_guid = 0) { |
| 3456 |
|
elgg_deprecated_notice('get_annotations_min() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "min"', 1.8); |
| 3457 |
|
|
| 3458 |
|
return elgg_deprecated_annotation_calculation($entity_guid, $entity_type, $entity_subtype, |
| 3459 |
|
$name, $value, $value_type, $owner_guid, 0, 0, 'min'); |
| 3460 |
|
} |
| 3461 |
|
|
| 3462 |
|
|
| 3463 |
|
/** |
|
@@ 3478-3484 (lines=7) @@
|
| 3475 |
|
* |
| 3476 |
|
* @return int |
| 3477 |
|
*/ |
| 3478 |
|
function get_annotations_avg($entity_guid, $entity_type = "", $entity_subtype = "", $name = "", |
| 3479 |
|
$value = "", $value_type = "", $owner_guid = 0) { |
| 3480 |
|
elgg_deprecated_notice('get_annotations_avg() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "avg"', 1.8); |
| 3481 |
|
|
| 3482 |
|
return elgg_deprecated_annotation_calculation($entity_guid, $entity_type, $entity_subtype, |
| 3483 |
|
$name, $value, $value_type, $owner_guid, 0, 0, 'avg'); |
| 3484 |
|
} |
| 3485 |
|
|
| 3486 |
|
|
| 3487 |
|
/** |
|
@@ 3504-3511 (lines=8) @@
|
| 3501 |
|
* @return int |
| 3502 |
|
* @deprecated 1.8 Use elgg_get_annotations() and pass anntoation_calculation => <calculation> |
| 3503 |
|
*/ |
| 3504 |
|
function get_annotations_calculate_x($sum = "avg", $entity_guid, $entity_type = "", |
| 3505 |
|
$entity_subtype = "", $name = "", $value = "", $value_type = "", $owner_guid = 0, |
| 3506 |
|
$timelower = 0, $timeupper = 0) { |
| 3507 |
|
elgg_deprecated_notice('get_annotations_calculate_x() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "calculation"', 1.8); |
| 3508 |
|
|
| 3509 |
|
return elgg_deprecated_annotation_calculation($entity_guid, $entity_type, $entity_subtype, |
| 3510 |
|
$name, $value, $value_type, $owner_guid, $timelower, $timeupper, $sum); |
| 3511 |
|
} |
| 3512 |
|
|
| 3513 |
|
|
| 3514 |
|
/** |