phpDocumentor widgets
[ class tree: widgets ] [ index: widgets ] [ all elements ]

Class: category_list_Widget

Source Location: /qp_plugins/category_list_widget/_category_list.widget.php

Class category_list_Widget

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From ComponentWidget

ComponentWidget::$code
ComponentWidget::$coll_ID
ComponentWidget::$disp_params
ComponentWidget::$enabled
ComponentWidget::$order
ComponentWidget::$params
ComponentWidget::$param_array
ComponentWidget::$Plugin
ComponentWidget::$sco_name
ComponentWidget::$type
ComponentWidget::$widget_name
ComponentWidget::$widget_title
ComponentWidget::$_trans
ComponentWidget::$_trans_loaded_global

Inherited From DataObject

DataObject::$delete_cascades
DataObject::$delete_restrictions
DataObject::$ID

Inherited From ComponentWidget

ComponentWidget::ComponentWidget()
Constructor
ComponentWidget::dbinsert()
Insert object into DB based on previously recorded changes.
ComponentWidget::display()
Display the widget!
ComponentWidget::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.
ComponentWidget::get_desc()
Get desc of widget
ComponentWidget::get_desc_for_list()
Get a clean description to display in the widget list
ComponentWidget::get_name()
Get name of widget
ComponentWidget::get_param()
param value
ComponentWidget::get_param_definitions()
Get definitions for editable params
ComponentWidget::get_Plugin()
Get ref to Plugin handling this Widget
ComponentWidget::get_short_desc()
Get a very short desc. Used in the widget list.
ComponentWidget::init_display()
Prepare display params
ComponentWidget::load_from_Request()
Load params
ComponentWidget::load_param_array()
Load param array
ComponentWidget::set()
Set param value
ComponentWidget::TS_()
Translate and escape single quotes.
ComponentWidget::T_()
Translate a given string, in the Widget's context.

Inherited From DataObject

DataObject::DataObject()
Constructor
DataObject::check_delete()
Check relations for restrictions before deleting
DataObject::check_relations()
Check relations for restrictions or cascades
DataObject::confirm_delete()
Displays form to confirm deletion of this object
DataObject::dbchange()
Records a change that will need to be updated in the db
DataObject::dbdelete()
Delete object from DB.
DataObject::dbinsert()
Insert object into DB based on previously recorded changes.
DataObject::dbsave()
Inserts or Updates depending on object state.
DataObject::dbupdate()
Update the DB based on previously recorded changes
DataObject::dget()
Get a ready-to-display member param by its name
DataObject::disp()
Display a member param by its name
DataObject::get()
Get a member param by its name
DataObject::history_info_icon()
Create icon with dataobject history
DataObject::ID()
Template function: Displays object ID.
DataObject::set()
Set param value
DataObject::set_from_Request()
Set a parameter from a Request form value.
DataObject::set_param()
Set param value.

[ Top ]
Method Summary
category_list_Widget   category_list_Widget()   Constructor
string   cat_after_level()   Callback: Generate code when exiting from a level
string   cat_before_level()   Callback: Generate code when entering a new level
string   cat_line()   Callback: Generate category line when it has children
string   cat_no_children()   Callback: Generate category line when it has no children
void   display()   Display the widget!
void   get_desc()   Get short description
void   get_param_definitions()   Get definitions for editable params
void   get_short_desc()   Get a very short desc. Used in the widget list.

[ Top ]
Methods
Constructor category_list_Widget  [line 40]

  category_list_Widget category_list_Widget( [ $db_row = NULL]  )

Constructor

Parameters:
   $db_row: 


[ Top ]
cat_after_level  [line 369]

  string cat_after_level( int $level  )

Callback: Generate code when exiting from a level

Parameters:
int   $level:  level of the category in the recursive tree

API Tags:
Return:  HTML


[ Top ]
cat_before_level  [line 352]

  string cat_before_level( int $level  )

Callback: Generate code when entering a new level

Parameters:
int   $level:  level of the category in the recursive tree

API Tags:
Return:  HTML


[ Top ]
cat_line  [line 279]

  string cat_line( Chapter $Chapter, int $level  )

Callback: Generate category line when it has children

Parameters:
Chapter   $Chapter:  generic category we want to display
int   $level:  level of the category in the recursive tree

API Tags:
Return:  HTML


[ Top ]
cat_no_children  [line 339]

  string cat_no_children( Chapter $Chapter, int $level  )

Callback: Generate category line when it has no children

Parameters:
Chapter   $Chapter:  generic category we want to display
int   $level:  level of the category in the recursive tree

API Tags:
Return:  HTML


[ Top ]
display  [line 120]

  void display( array $params  )

Display the widget!

Parameters:
array   $params:  MUST contain at least the basic display params


Redefinition of:
ComponentWidget::display()
Display the widget!

[ Top ]
get_desc  [line 63]

  void get_desc( )

Get short description



Redefinition of:
ComponentWidget::get_desc()
Get desc of widget

[ Top ]
get_param_definitions  [line 80]

  void get_param_definitions( array $params  )

Get definitions for editable params

Parameters:
array   $params:  local params
  • 'title': block title (string, default "Categories")
  • 'option_all': "All categories" link title, empty to disable (string, default "All")
  • 'use_form': Add a form with checkboxes to allow selection of multiple categories (boolean)
  • 'disp_names_for_coll_list': Display blog names, if this is an aggregated blog? (boolean)
  • 'display_checkboxes': Add checkboxes (but not a complete form) to allow selection of multiple categories (boolean)

API Tags:
See:  Plugin::GetDefaultSettings()


Redefinition of:
ComponentWidget::get_param_definitions()
Get definitions for editable params

[ Top ]
get_short_desc  [line 54]

  void get_short_desc( )

Get a very short desc. Used in the widget list.



Redefinition of:
ComponentWidget::get_short_desc()
Get a very short desc. Used in the widget list.

[ Top ]