Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
deprecated-2.1.php
Go to the documentation of this file.
1 <?php
2 
12  elgg_deprecated_notice(__FUNCTION__ . " is deprecated.", 2.1);
13  return _elgg_services()->relationshipsTable->rowToElggRelationship($row);
14 }
15 
43 function system_messages($message = null, $register = "success", $count = false) {
44  elgg_deprecated_notice(__FUNCTION__ . ' is deprecated', '2.1');
45 
46  $svc = _elgg_services()->systemMessages;
47  if ($count) {
48  return $svc->count($register);
49  }
50  if ($message === null) {
51  return $svc->dumpRegister($register);
52  }
53  if (!$register) {
54  return false;
55  }
56  $set = $svc->loadRegisters();
57  if (!isset($set->{$register})) {
58  $set->{$register} = [];
59  }
60  foreach ((array)$message as $str) {
61  $set->{$register}[] = $str;
62  }
63  $svc->saveRegisters($set);
64  return true;
65 }
row_to_elggrelationship($row)
Convert a database row to a new .
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
Definition: elgglib.php:1070
system_messages($message=null, $register="success", $count=false)
Queues a message to be displayed.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
Definition: autoloader.php:17
if(elgg_in_context('widget')) $count
Definition: pagination.php:21
$row