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();
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',
163 $this->values[$access_key][
$guid] =
null;
169 $last_row_idx = count(
$data) - 1;
174 if (
$guid !== $last_guid) {
176 $this->values[$access_key][$last_guid] =
$metadata;
186 if (($i == $last_row_idx)) {
209 'joins' =>
"JOIN {$db_prefix}metastrings v ON n_table.value_id = v.id",
210 'selects' => array(
'SUM(LENGTH(v.string)) AS bytes'),
211 'order_by' =>
'n_table.entity_guid, n_table.time_created ASC',
212 'group_by' =>
'n_table.entity_guid',
230 if ($this->session->getIgnoreAccess()) {
233 return (
string)$this->session->getLoggedInUserGuid();
if($guid==elgg_get_logged_in_user_guid()) $name
$guid
Removes an admin notice.
_elgg_get_access_where_sql(array $options=array())
Returns the SQL where clause for enforcing read access to data.
if(! $num_display) $db_prefix