Class: ComponentWidget
Source Location: /blogs/inc/widgets/model/_widget.class.php
Class ComponentWidget
|
ComponentWidget Class A ComponentWidget is a displayable entity that can be placed into a Container on a web page. Located in /blogs/inc/widgets/model/_widget.class.php [line 37] DataObject | --ComponentWidgetAuthor(s):
|
| Child Class | Description |
|---|---|
| coll_avatar_Widget | coll_avatar_Widget Class. |
| coll_xml_feeds_Widget | ComponentWidget Class |
| coll_longdesc_Widget | ComponentWidget Class |
| coll_title_Widget | ComponentWidget Class |
| menu_link_Widget | ComponentWidget Class |
| user_tools_Widget | ComponentWidget Class |
| coll_media_index_Widget | ComponentWidget Class |
| coll_category_list_Widget | ComponentWidget Class |
| coll_common_links_Widget | ComponentWidget: Common navigation links. |
| colls_list_owner_Widget | ComponentWidget Class |
| coll_comment_list_Widget | ComponentWidget Class |
| coll_search_form_Widget | ComponentWidget Class |
| colls_list_public_Widget | ComponentWidget Class |
| coll_logo_Widget | ComponentWidget Class |
| coll_tagline_Widget | ComponentWidget Class |
| free_html_Widget | ComponentWidget Class |
| coll_item_list_Widget | ComponentWidget Class |
| coll_tag_cloud_Widget | ComponentWidget Class |
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From DataObject |
Inherited From DataObject
|
| mixed | $code | |
| mixed | $coll_ID | |
| mixed | $disp_params | Array of params used during display() |
| boolean | $enabled | Indicates whether the widget is enabled. |
| mixed | $order | |
| mixed | $params | |
| mixed | $param_array | Array of params which have been customized for this widget instance |
| Plugin | $Plugin | Lazy instantiated |
| mixed | $sco_name | Container name |
| string | $type |
| ComponentWidget | ComponentWidget() | Constructor |
| boolean | dbinsert() | Insert object into DB based on previously recorded changes. |
| void | dbupdate() | Update the DB based on previously recorded changes |
| void | display() | Display the widget! |
| void | display_with_cache() | Wraps display in a cacheable block. |
| void | disp_coll_list() | List of collections/blogs |
| void | disp_title() | Note: a container can prevent display of titles with 'block_display_title' This is useful for the lists in the headers fp> I'm not sur if this param should be overridable by widgets themselves (priority problem) Maybe an "auto" setting. |
| array | get_cache_keys() | Maybe be overriden by some widgets, depending on what THEY depend on.. |
| void | get_desc() | Get desc of widget |
| void | get_desc_for_list() | Get a clean description to display in the widget list |
| void | get_name() | Get name of widget |
| void | get_param() | param value |
| void | get_param_definitions() | Get definitions for editable params |
| Plugin | &get_Plugin() | Get ref to Plugin handling this Widget |
| void | get_short_desc() | Get a very short desc. Used in the widget list. |
| void | init_display() | Prepare display params |
| void | load_from_Request() | Load params |
| void | load_param_array() | Load param array |
| boolean | set() | Set param value |
Array of params which have been customized for this widget instance
This is saved to the DB as a serialized string ($params)
Lazy instantiated
(false if this Widget is not handled by a Plugin)
API Tags:| See: | ComponentWidget::get_Plugin() |
|
Constructor
Parameters:| object data | $db_row: | row from db |
| $type: | ||
| $code: |
|
Insert object into DB based on previously recorded changes.
API Tags:
| Return: | true on success |
- DataObject::dbinsert()
- Insert object into DB based on previously recorded changes.
|
Update the DB based on previously recorded changes
- DataObject::dbupdate()
- Update the DB based on previously recorded changes
|
Display the widget!
Should be overriden by core widgets
Parameters:| array | $params: | MUST contain at least the basic display params |
Information Tags:
| Todo: | fp> handle custom params for each widget |
- coll_avatar_Widget::display() : Display the widget!
- coll_xml_feeds_Widget::display() : Display the widget!
- coll_longdesc_Widget::display() : Display the widget!
- coll_title_Widget::display() : Display the widget!
- menu_link_Widget::display() : Display the widget!
- user_tools_Widget::display() : Display the widget!
- coll_media_index_Widget::display() : Display the widget!
- coll_category_list_Widget::display() : Display the widget!
- coll_common_links_Widget::display() : Display the widget!
- colls_list_owner_Widget::display() : Display the widget!
- coll_comment_list_Widget::display() : Display the widget!
- coll_search_form_Widget::display() : Display the widget!
- colls_list_public_Widget::display() : Display the widget!
- coll_logo_Widget::display() : Display the widget!
- coll_tagline_Widget::display() : Display the widget!
- free_html_Widget::display() : Display the widget!
- coll_item_list_Widget::display() : Display the widget!
- coll_tag_cloud_Widget::display() : Display the widget!
|
Wraps display in a cacheable block.
Parameters:| array | $params: | MUST contain at least the basic display params |
| array | $keys: | of extra keys to be used for cache keying |
Information Tags:
| Todo: | dh> I think Widgets need to provide caching, e.g. by returning something in cache_keys (so ComponentWidget::get_cache_keys() should return an empty list or false by default). fp> I don't understand what you mean. |
|
List of collections/blogs
Parameters:| array | $filter: | MUST contain at least the basic display params |
|
Note: a container can prevent display of titles with 'block_display_title' This is useful for the lists in the headers fp> I'm not sur if this param should be overridable by widgets themselves (priority problem) Maybe an "auto" setting.
Parameters:| $title: |
|
Maybe be overriden by some widgets, depending on what THEY depend on..
API Tags:
| Return: | of keys this widget depends on |
- coll_avatar_Widget::get_cache_keys() : Maybe be overriden by some widgets, depending on what THEY depend on..
- colls_list_owner_Widget::get_cache_keys() : Maybe be overriden by some widgets, depending on what THEY depend on..
- colls_list_public_Widget::get_cache_keys() : Maybe be overriden by some widgets, depending on what THEY depend on..
- coll_item_list_Widget::get_cache_keys() : Maybe be overriden by some widgets, depending on what THEY depend on..
|
Get desc of widget
Should be overriden by core widgets
- coll_avatar_Widget::get_desc() : Get short description
- coll_xml_feeds_Widget::get_desc() : Get short description
- coll_longdesc_Widget::get_desc() : Get short description
- coll_title_Widget::get_desc() : Get short description
- menu_link_Widget::get_desc() : Get short description
- user_tools_Widget::get_desc() : Get short description
- coll_media_index_Widget::get_desc() : Get short description
- coll_category_list_Widget::get_desc() : Get short description
- coll_common_links_Widget::get_desc() : Get short description
- colls_list_owner_Widget::get_desc() : Get short description
- coll_comment_list_Widget::get_desc() : Get short description
- coll_search_form_Widget::get_desc() : Get short description
- colls_list_public_Widget::get_desc() : Get short description
- coll_logo_Widget::get_desc() : Get short description
- coll_tagline_Widget::get_desc() : Get short description
- free_html_Widget::get_desc() : Get short description
- coll_item_list_Widget::get_desc() : Get short description
- coll_related_post_list_Widget::get_desc() : Get short description
- coll_post_list_Widget::get_desc() : Get short description
- coll_link_list_Widget::get_desc() : Get short description
- coll_page_list_Widget::get_desc() : Get short description
- linkblog_Widget::get_desc() : Get short description
- coll_tag_cloud_Widget::get_desc() : Get short description
|
Get a clean description to display in the widget list
|
Get name of widget
Should be overriden by core widgets
- coll_avatar_Widget::get_name() : Get name of widget
- coll_xml_feeds_Widget::get_name() : Get name of widget
- coll_longdesc_Widget::get_name() : Get name of widget
- coll_title_Widget::get_name() : Get name of widget
- menu_link_Widget::get_name() : Get name of widget
- user_tools_Widget::get_name() : Get name of widget
- coll_media_index_Widget::get_name() : Get name of widget
- coll_category_list_Widget::get_name() : Get name of widget
- coll_common_links_Widget::get_name() : Get name of widget
- colls_list_owner_Widget::get_name() : Get name of widget
- coll_comment_list_Widget::get_name() : Get name of widget
- coll_search_form_Widget::get_name() : Get name of widget
- colls_list_public_Widget::get_name() : Get name of widget
- coll_logo_Widget::get_name() : Get name of widget
- coll_tagline_Widget::get_name() : Get name of widget
- free_html_Widget::get_name() : Get name of widget
- coll_item_list_Widget::get_name() : Get name of widget
- coll_related_post_list_Widget::get_name() : Get name of widget
- coll_post_list_Widget::get_name() : Get name of widget
- coll_link_list_Widget::get_name() : Get name of widget
- coll_page_list_Widget::get_name() : Get name of widget
- linkblog_Widget::get_name() : Get name of widget
- coll_tag_cloud_Widget::get_name() : Get name of widget
|
Get definitions for editable params
Parameters:| local | $params: | params like 'for_editing' => true |
API Tags:
| See: | Plugin::GetDefaultSettings() |
- coll_avatar_Widget::get_param_definitions() : Get definitions for editable params
- coll_xml_feeds_Widget::get_param_definitions() : Get definitions for editable params
- coll_longdesc_Widget::get_param_definitions() : Get definitions for editable params
- menu_link_Widget::get_param_definitions() : Get definitions for editable params
- user_tools_Widget::get_param_definitions() : Get definitions for editable params
- coll_media_index_Widget::get_param_definitions() : Get definitions for editable params
- coll_category_list_Widget::get_param_definitions() : Get definitions for editable params
- coll_common_links_Widget::get_param_definitions() : Get definitions for editable params
- colls_list_owner_Widget::get_param_definitions() : Get definitions for editable params
- coll_comment_list_Widget::get_param_definitions() : Get definitions for editable params
- coll_search_form_Widget::get_param_definitions() : Get definitions for editable params
- colls_list_public_Widget::get_param_definitions() : Get definitions for editable params
- coll_logo_Widget::get_param_definitions() : Get definitions for editable params
- free_html_Widget::get_param_definitions() : Get definitions for editable params
- coll_item_list_Widget::get_param_definitions() : Get definitions for editable params
- coll_related_post_list_Widget::get_param_definitions() : Get definitions for editable params
- coll_post_list_Widget::get_param_definitions() : Get definitions for editable params
- coll_link_list_Widget::get_param_definitions() : Get definitions for editable params
- coll_page_list_Widget::get_param_definitions() : Get definitions for editable params
- linkblog_Widget::get_param_definitions() : Get definitions for editable params
- coll_tag_cloud_Widget::get_param_definitions() : Get definitions for editable params
|
Get a very short desc. Used in the widget list.
MAY be overriden by core widgets. Example: menu link widget.
- coll_xml_feeds_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_longdesc_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_title_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- menu_link_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- user_tools_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_media_index_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_category_list_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_common_links_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- colls_list_owner_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_comment_list_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_search_form_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- colls_list_public_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_logo_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_tagline_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- free_html_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_item_list_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_related_post_list_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_post_list_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_link_list_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_page_list_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- linkblog_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
- coll_tag_cloud_Widget::get_short_desc() : Get a very short desc. Used in the widget list.
|
Prepare display params
Parameters:| array | $params: | MUST contain at least the basic display params |
Information Tags:
| Todo: | Document default params and default values. This might link to a wiki page, too. |
- coll_related_post_list_Widget::init_display() : Prepare display params
- coll_post_list_Widget::init_display() : Prepare display params
- coll_link_list_Widget::init_display() : Prepare display params
- coll_page_list_Widget::init_display() : Prepare display params
- linkblog_Widget::init_display() : Prepare display params
|
Load params
- coll_tag_cloud_Widget::load_from_Request() : Load params
|
Set param value
Parameters:| string | $parname: | parameter name |
| mixed | $parvalue: | parameter value |
| boolean | $make_null: | true to set to NULL if empty value |
API Tags:
| Return: | true, if a value has been set; false if it has not changed |
- DataObject::set()
- Set param value
