36 parent::initializeAttributes();
38 $this->attributes[
'type'] = null;
39 $this->attributes[
'id'] = null;
40 $this->attributes[
'entity_guid'] = null;
41 $this->attributes[
'owner_guid'] = null;
43 $this->attributes[
'enabled'] =
'yes';
55 if (
$name ==
'value') {
69 $this->attributes[
'value'] =
$value;
85 if (
$name ==
'value') {
86 $this->
setValue($value, $value_type);
101 if (array_key_exists(
$name, $this->attributes)) {
102 if (
$name ==
'value') {
103 switch ($this->attributes[
'value_type']) {
105 return (
int)$this->attributes[
'value'];
108 return $this->attributes[
'value'];
111 $msg =
"{$this->attributes['value_type']} is not a supported ElggExtender value type.";
112 throw new UnexpectedValueException($msg);
117 return $this->attributes[
$name];
195 $object->read_access = $this->access_id;
235 $meta->setAttribute(
'published', date(
"r", $this->time_created));
295 if (isset($CONFIG->extender_url_handler[
$type][
'all'])) {
296 $function = $CONFIG->extender_url_handler[
$type][
'all'];
298 if (isset($CONFIG->extender_url_handler[
'all'][
'all'])) {
299 $function = $CONFIG->extender_url_handler[
'all'][
'all'];
301 if (is_callable($function)) {
302 $url = call_user_func($function, $this);
310 $params = array(
'extender' => $this);
getType()
Return a type of extension.
getTimeCreated()
Returns the UNIX epoch time that this entity was created.
initializeAttributes()
(non-PHPdoc)
getEntity()
Get the entity this describes.
get_uuid_from_object($object)
Get a UUID from a given object.
if($guid==elgg_get_logged_in_user_guid()) $name
__get($name)
Gets an attribute.
canEdit($user_guid=0)
Returns if a user can edit this entity extender.
__set($name, $value)
Set an attribute.
getExportableValues()
Return an array of fields which can be exported.
detect_extender_valuetype($value, $value_type="")
Detect the value_type for a given value.
export()
Export this object.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Trigger a Plugin Hook and run all handler callbacks registered to that hook:type. ...
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Sends a notice about deprecated use of a function, view, etc.
elgg global
Pointer to the global context.
getOwnerEntity()
Get the entity that owns this extender.
guid_to_uuid($guid)
Generate a UUID from a given GUID.
getOwnerGUID()
Get the GUID of the extender's owner entity.
getSystemLogID()
Return an identification for the object for storage in the system log.
getOwner()
Return the guid of the entity's owner.
$user_guid
Avatar remove action.
if(!$collection_name) $id
getSubtype()
Return a subtype.
setValue($value, $value_type= '')
Set the value of the extender.
getURL()
Get a url for this extender.
get_entity($guid)
Loads and returns an entity object from a guid.