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);
if(! $collection_name) $id
if($guid==elgg_get_logged_in_user_guid()) $name
$user_guid
Avatar remove action.
getTimeCreated()
Returns the UNIX epoch time that this entity was created.
setValue($value, $value_type='')
Set the value of the extender.
initializeAttributes()
(non-PHPdoc)
getType()
Return a type of extension.
getOwnerGUID()
Get the GUID of the extender's owner entity.
__get($name)
Gets an attribute.
getExportableValues()
Return an array of fields which can be exported.
getOwnerEntity()
Get the entity that owns this extender.
toObject()
{Get a plain old object copy for public consumption.stdClass}
getSystemLogID()
Return an identification for the object for storage in the system log.
export()
Export this object.
__set($name, $value)
Set an attribute.
canEdit($user_guid=0)
Returns if a user can edit this entity extender.
getEntity()
Get the entity this describes.
getSubtype()
Return a subtype.
getOwner()
Return the guid of the entity's owner.
getURL()
Get a url for this extender.
get_uuid_from_object($object)
Get a UUID from a given object.
guid_to_uuid($guid)
Generate a UUID from a given GUID.
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.
get_entity($guid)
Loads and returns an entity object from a guid.
detect_extender_valuetype($value, $value_type="")
Detect the value_type for a given value.
ui datepicker calendar ui state default