phpDocumentor ycwp-qr-me
[ class tree: ycwp-qr-me ] [ index: ycwp-qr-me ] [ all elements ]

Class: YCWP_QR_Me_Widget

Source Location: /qrme.widget.php

Class YCWP_QR_Me_Widget

Class Overview

This class define the widget.

Located in /qrme.widget.php [line 30]

WP_Widget
   |
   --YCWP_QR_Me_Widget
Author(s): Information Tags:
Version:  1.0
Link:  http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/widgets.php

Properties

Methods

[ Top ]
Property Summary
object   $_qr   QRCode class instance.

[ Top ]
Method Summary
YCWP_QR_Me_Widget   __construct()   Invoke WP_Widget::__construct() and QRCode::__construct().
void   form()   Echo the settings update form
array   update()   Update a particular instance.
void   widget()   Echo the widget content.

[ Top ]
Properties
object   $_qr [line 39]

QRCode class instance.

API Tags:
See:  QRCode
Access:  private

Information Tags:
Since:  1.0

[ Top ]
Methods
Constructor __construct  [line 48]

  YCWP_QR_Me_Widget __construct( )

Invoke WP_Widget::__construct() and QRCode::__construct().


API Tags:
See:  QRCode
Access:  public

Information Tags:
Link:  http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/widgets.php#L76
Since:  1.0

[ Top ]
form  [line 98]

  void form( array $instance  )

Echo the settings update form

Parameters:
array   $instance:  Current settings

API Tags:
Access:  public

Information Tags:
Link:  http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/widgets.php#L66
Since:  1.0

[ Top ]
update  [line 162]

  array update( array $new_instance, array $old_instance  )

Update a particular instance.

This function should check that $new_instance is set correctly. The newly calculated value of $instance should be returned. If "false" is returned, the instance won't be saved/updated.

Parameters:
array   $new_instance:  New settings for this instance as input by the user via form()
array   $old_instance:  Old settings for this instance

API Tags:
Return:  Settings to save or bool false to cancel saving
Access:  public

Information Tags:
Link:  http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/widgets.php#L58
Since:  1.0

[ Top ]
widget  [line 62]

  void widget( array $args, array $instance  )

Echo the widget content.

Parameters:
array   $args:  Display arguments including before_title, after_title, before_widget, and after_widget.
array   $instance:  The settings for the particular instance of the widget

API Tags:
Access:  public

Information Tags:
Link:  http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/widgets.php#L44
Since:  1.0

[ Top ]

Documentation generated on Tue, 21 Feb 2012 23:46:12 +0100 by phpDocumentor 1.4.3