|
@@ 2139-2146 (lines=8) @@
|
| 2136 |
|
* @access private |
| 2137 |
|
* @deprecated 1.9 Use \ElggEntity::delete() instead. |
| 2138 |
|
*/ |
| 2139 |
|
function delete_entity($guid, $recursive = true) { |
| 2140 |
|
elgg_deprecated_notice('delete_entity has been deprecated in favor of \ElggEntity::delete', '1.9'); |
| 2141 |
|
$guid = (int)$guid; |
| 2142 |
|
if ($entity = get_entity($guid)) { |
| 2143 |
|
return $entity->delete($recursive); |
| 2144 |
|
} |
| 2145 |
|
return false; |
| 2146 |
|
} |
| 2147 |
|
|
| 2148 |
|
/** |
| 2149 |
|
* Enable an entity. |
|
@@ 2222-2230 (lines=9) @@
|
| 2219 |
|
* @access private |
| 2220 |
|
* @deprecated 1.9 Use \ElggEntity::disable instead. |
| 2221 |
|
*/ |
| 2222 |
|
function disable_entity($guid, $reason = "", $recursive = true) { |
| 2223 |
|
elgg_deprecated_notice('disable_entity was deprecated in favor of \ElggEntity::disable', '1.9'); |
| 2224 |
|
|
| 2225 |
|
if ($entity = get_entity($guid)) { |
| 2226 |
|
return $entity->disable($reason, $recursive); |
| 2227 |
|
} |
| 2228 |
|
|
| 2229 |
|
return false; |
| 2230 |
|
} |
| 2231 |
|
|
| 2232 |
|
/** |
| 2233 |
|
* Returns if $user_guid is able to edit $entity_guid. |