24 'plugin_id' => $plugin_id,
29 $name = $this->getNamespacedPluginSettingName($plugin_id, $name);
45 public function getPluginSetting(
string $plugin_id,
string $name,
$default = null) {
46 $name = $this->getNamespacedPluginSettingName($plugin_id, $name);
59 public function removePluginSetting(
string $plugin_id,
string $name): bool {
60 $name = $this->getNamespacedPluginSettingName($plugin_id, $name);
75 final public function getNamespacedPluginSettingName(
string $plugin_id,
string $name): string {
76 return "plugin:{$this->getType()}_setting:{$plugin_id}:{$name}";
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
const ELGG_DISABLE_SYSTEM_LOG
if(!$user||!$user->canDelete()) $name
deleteMetadata(string $name=null)
Deletes all metadata on this object (metadata.entity_guid = $this->guid).
$plugin_id
Remove all user and plugin settings from the give plugin ID.
setMetadata(string $name, mixed $value, string $value_type= '', bool $multiple=false)
Set metadata on this entity.
_elgg_services()
Get the global service provider.
getMetadata(string $name)
Return the value of a piece of metadata.