101 if ($allow_multiple) {
104 if ($existing !==
null) {
105 $existing = (array) $existing;
194 $this->values = array();
208 $this->ignoreAccess = (bool) $ignore;
217 $this->ignoreAccess =
null;
226 if (
null === $this->ignoreAccess) {
248 if (empty(
$options[
'metadata_name'])) {
250 $this->
clear($options[
'guid']);
287 "JOIN {$db_prefix}metastrings v ON n_table.value_id = v.id",
288 "JOIN {$db_prefix}metastrings n ON n_table.name_id = n.id",
290 'selects' => array(
'n.string AS name',
'v.string AS value'),
291 'order_by' =>
'n_table.entity_guid, n_table.time_created ASC',
301 $last_row_idx = count(
$data) - 1;
306 if (
$guid !== $last_guid) {
318 if (($i == $last_row_idx)) {
341 'joins' =>
"JOIN {$db_prefix}metastrings v ON n_table.value_id = v.id",
342 'selects' => array(
'SUM(LENGTH(v.string)) AS bytes'),
343 'order_by' =>
'n_table.entity_guid, n_table.time_created ASC',
344 'group_by' =>
'n_table.entity_guid',
if($guid==elgg_get_logged_in_user_guid()) $name
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$guid
Removes an admin notice.
elgg_get_ignore_access()
Get current ignore access setting.
_elgg_get_access_where_sql(array $options=array())
Returns the SQL where clause for enforcing read access to data.
if(! $num_display) $db_prefix