aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/pageowner.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-26 12:43:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-26 12:43:28 +0000
commit0cc190deb5ec0c9608255192c042f573fd834019 (patch)
tree4cd2d31d33109d268ac595140375b604f1399276 /engine/lib/pageowner.php
parent5c8493c1456bb656dd4c6448fb0edde7af81b325 (diff)
downloadelgg-0cc190deb5ec0c9608255192c042f573fd834019.tar.gz
elgg-0cc190deb5ec0c9608255192c042f573fd834019.tar.bz2
changed elgg_get_page_owner() to elgg_get_page_owner_entity() to be more consistent
git-svn-id: http://code.elgg.org/elgg/trunk@7943 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/pageowner.php')
-rw-r--r--engine/lib/pageowner.php22
1 files changed, 10 insertions, 12 deletions
diff --git a/engine/lib/pageowner.php b/engine/lib/pageowner.php
index 649e77e40..efe28960d 100644
--- a/engine/lib/pageowner.php
+++ b/engine/lib/pageowner.php
@@ -13,7 +13,7 @@
* @param int $guid Optional parameter used by elgg_set_page_owner_guid().
*
* @return int The current page owner guid (0 if none).
- * @since 1.8
+ * @since 1.8.0
*/
function elgg_get_page_owner_guid($guid = 0) {
static $page_owner_guid;
@@ -50,9 +50,9 @@ function page_owner() {
*
* @return ElggEntity|false The current page owner or false if none.
*
- * @since 1.8
+ * @since 1.8.0
*/
-function elgg_get_page_owner() {
+function elgg_get_page_owner_entity() {
$guid = elgg_get_page_owner_guid();
if ($guid > 0) {
return get_entity($guid);
@@ -66,12 +66,10 @@ function elgg_get_page_owner() {
*
* @deprecated 1.8 Use elgg_get_page_owner()
* @return ElggEntity|false The current page owner or false if none.
- *
- * @since 1.8
*/
function page_owner_entity() {
elgg_deprecated_notice('page_owner_entity() was deprecated by elgg_get_page_owner().', 1.8);
- return elgg_get_page_owner();
+ return elgg_get_page_owner_entity();
}
/**
@@ -79,7 +77,7 @@ function page_owner_entity() {
*
* @param int $guid The guid of the page owner
*
- * @since 1.8
+ * @since 1.8.0
*/
function elgg_set_page_owner_guid($guid) {
elgg_get_page_owner_guid($guid);
@@ -173,7 +171,7 @@ function default_page_owner_handler($hook, $entity_type, $returnvalue, $params)
*
* @param string $context The context of the page
* @return bool
- * @since 1.8
+ * @since 1.8.0
*/
function elgg_set_context($context) {
global $CONFIG;
@@ -198,7 +196,7 @@ function elgg_set_context($context) {
* Since context is a stack, this is equivalent to a peek.
*
* @return string|NULL
- * @since 1.8
+ * @since 1.8.0
*/
function elgg_get_context() {
global $CONFIG;
@@ -210,7 +208,7 @@ function elgg_get_context() {
* Push a context onto the top of the stack
*
* @param string $context The context string to add to the context stack
- * @since 1.8
+ * @since 1.8.0
*/
function elgg_push_context($context) {
global $CONFIG;
@@ -222,7 +220,7 @@ function elgg_push_context($context) {
* Removes and returns the top context string from the stack
*
* @return string|NULL
- * @since 1.8
+ * @since 1.8.0
*/
function elgg_pop_context() {
global $CONFIG;
@@ -240,7 +238,7 @@ function elgg_pop_context() {
*
* @param string $context The context string to check for
* @return bool
- * @since 1.8
+ * @since 1.8.0
*/
function elgg_in_context($context) {
global $CONFIG;