26 private $widgetCache = array();
34 $widget_cache_key =
"$context-$owner_guid";
36 if (isset($this->widgetCache[$widget_cache_key])) {
37 return $this->widgetCache[$widget_cache_key];
42 'subtype' =>
'widget',
44 'private_setting_name' =>
'context',
53 $sorted_widgets = array();
55 if (!isset($sorted_widgets[(
int)$widget->column])) {
56 $sorted_widgets[(int)$widget->column] = array();
58 $sorted_widgets[(int)$widget->column][$widget->order] = $widget;
61 foreach ($sorted_widgets as $col =>
$widgets) {
62 ksort($sorted_widgets[$col]);
65 $this->widgetCache[$widget_cache_key] = $sorted_widgets;
67 return $sorted_widgets;
88 if (isset($access_id)) {
89 $widget->access_id = $access_id;
143 $this->
widgets = new \stdClass;
145 if (!isset($this->
widgets->handlers)) {
146 $this->
widgets->handlers = array();
149 $handlerobj = new \stdClass;
150 $handlerobj->name =
$name;
153 $handlerobj->multiple = $multiple;
172 if (!isset($this->
widgets->handlers)) {
190 !empty($this->
widgets->handlers) &&
191 is_array($this->
widgets->handlers) &&
206 empty($this->
widgets->handlers) ||
207 !is_array($this->
widgets->handlers)) {
238 empty($this->
widgets->handlers) ||
239 !is_array($this->
widgets->handlers)) {
if($guid==elgg_get_logged_in_user_guid()) $name
elgg_get_entities_from_private_settings(array $options=array())
Returns entities based upon private settings.
if($screenshots) $description
get_default_access(ElggUser $user=null, array $input_params=array())
Gets the default access permission.
elgg_get_context()
Get the current context.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
$user_guid
Avatar remove action.
elgg_get_page_owner_guid($guid=0)
Gets the guid of the entity that owns the current page.
get_entity($guid)
Loads and returns an entity object from a guid.
elgg layout widgets elgg widgets