64 && array_key_exists(
$name, $this->values[$access_key][$entity_guid])) {
78 foreach (array_keys($this->values) as $access_key) {
92 if (empty($this->values[$access_key])) {
95 return array_key_exists(
$entity_guid, $this->values[$access_key]);
104 $this->values = array();
115 if (empty($options[
'guid'])) {
118 $this->
clear($options[
'guid']);
150 "JOIN {$db_prefix}metastrings v ON n_table.value_id = v.id",
151 "JOIN {$db_prefix}metastrings n ON n_table.name_id = n.id",
153 'selects' => array(
'n.string AS name',
'v.string AS value'),
154 'order_by' =>
'n_table.entity_guid, n_table.time_created ASC, n_table.id ASC',
158 'table_alias' =>
'n_table',
159 'guid_column' =>
'entity_guid',
166 $this->values[$access_key][
$guid] = null;
172 $last_row_idx = count(
$data) - 1;
176 $guid =
$row->entity_guid;
177 if ($guid !== $last_guid) {
179 $this->values[$access_key][$last_guid] =
$metadata;
189 if (($i == $last_row_idx)) {
212 'joins' =>
"JOIN {$db_prefix}metastrings v ON n_table.value_id = v.id",
213 'selects' => array(
'SUM(LENGTH(v.string)) AS bytes'),
214 'order_by' =>
'n_table.entity_guid, n_table.time_created ASC',
215 'group_by' =>
'n_table.entity_guid',
220 if ($row->bytes >
$limit || $row->bytes < 0) {
221 array_splice($guids, array_search($row->entity_guid, $guids), 1);
233 if ($this->session->getIgnoreAccess()) {
236 return (
string)$this->session->getLoggedInUserGuid();
if($guid==elgg_get_logged_in_user_guid()) $name
$guid
Removes an admin notice.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
_elgg_get_access_where_sql(array $options=array())
Returns the SQL where clause for enforcing read access to data.
if(!$num_display) $db_prefix