101 if ($allow_multiple) {
104 if ($existing !== null) {
105 $existing = (array) $existing;
130 if (isset($this->values[
$entity_guid]) && array_key_exists(
$name, $this->values[$entity_guid])) {
161 return (isset($this->values[$entity_guid]) && array_key_exists(
$name, $this->values[$entity_guid]));
194 $this->values = array();
208 $this->ignoreAccess = (bool) $ignore;
217 $this->ignoreAccess = null;
226 if (null === $this->ignoreAccess) {
244 if (empty($options[
'guid'])) {
248 if (empty($options[
'metadata_name'])) {
250 $this->
clear($options[
'guid']);
254 $this->
markEmpty($options[
'guid'], $options[
'metadata_name']);
257 $this->
markUnknown($options[
'guid'], $options[
'metadata_name']);
288 "JOIN {$db_prefix}metastrings v ON n_table.value_id = v.id",
289 "JOIN {$db_prefix}metastrings n ON n_table.name_id = n.id",
291 'selects' => array(
'n.string AS name',
'v.string AS value'),
292 'order_by' =>
'n_table.entity_guid, n_table.time_created ASC, n_table.id ASC',
302 $last_row_idx = count(
$data) - 1;
307 if (
$guid !== $last_guid) {
319 if (($i == $last_row_idx)) {
342 'joins' =>
"JOIN {$db_prefix}metastrings v ON n_table.value_id = v.id",
343 'selects' => array(
'SUM(LENGTH(v.string)) AS bytes'),
344 'order_by' =>
'n_table.entity_guid, n_table.time_created ASC',
345 'group_by' =>
'n_table.entity_guid',
350 if ($row->bytes >
$limit || $row->bytes < 0) {
351 array_splice($guids, array_search($row->entity_guid, $guids), 1);
if($guid==elgg_get_logged_in_user_guid()) $name
if(!$autoload_available) _elgg_services()
$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