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']);
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',
349 if ($row->bytes >
$limit || $row->bytes < 0) {
350 array_splice($guids, array_search($row->entity_guid, $guids), 1);
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
if($guid==elgg_get_logged_in_user_guid()) $name
$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