71 $values = $this->cache->load($entity->guid);
87 $return[$r->name] = $r->value;
91 $this->cache->save($entity->guid, $return);
117 $qb->select(
'entity_guid')
120 ->where(
$qb->compare(
'entity_guid',
'IN',
$guids));
130 $return[$r->entity_guid][$r->name] = $r->value;
155 $row = $this->db->getDataRow(
$qb);
168 'value' =>
$qb->param(
$value, $value_type),
192 return (
bool) $this->db->deleteData(
$qb);
208 return (
bool) $this->db->deleteData(
$qb);
static normalizeGuids(...$args)
Flatten an array of data into an array of GUIDs.
removeAllForEntity(ElggEntity $entity)
Deletes all private settings for an entity.
Saves user notification settings.
if(!$user||!$user->canDelete()) $name
static table($table, $alias=null)
{}
invalidateCache()
Invalidate cache for entity.
const ELGG_VALUE_INTEGER
Value types.
getAllForGUIDs($guids)
Return an array of all private settings for the requested guids.
Private settings for entities.
static intoTable($table)
{}
In memory cache of known private settings values stored by entity.
getAllForEntity(ElggEntity $entity)
Return an array of all private settings.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
__construct(Database $db, EntityTable $entities, PrivateSettingsCache $cache)
Constructor.
static fromTable($table, $alias=null)
{}
$guids
Activates all specified installed and inactive plugins.
static fromTable($table, $alias=null)
{}
Entity table database service.