X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FWidget%2FWidget.php;h=cf22c5933391a883f757236b76c566824a2c7a69;hb=c3d2bf84c6cd14ef48f719df9c323e04daa874ab;hp=8fe69dc256b31c111c6598aa858787ab4e1f5ac1;hpb=45dff925845496499b5c426f53f875ec2e3a219d;p=civicrm-core.git diff --git a/CRM/Widget/Widget.php b/CRM/Widget/Widget.php index 8fe69dc256..cf22c59333 100644 --- a/CRM/Widget/Widget.php +++ b/CRM/Widget/Widget.php @@ -13,7 +13,7 @@ class CRM_Widget_Widget { static $_methodTable; - function initialize() { + public function initialize() { if (!self::$_methodTable) { self::$_methodTable = array( 'getContributionPageData' => array( @@ -37,7 +37,7 @@ class CRM_Widget_Widget { } } - function &methodTable() { + public function &methodTable() { self::initialize(); return self::$_methodTable; @@ -52,7 +52,7 @@ class CRM_Widget_Widget { * * @return string */ - function registerRequest($contributionPageID, $widgetID, $action) { + public function registerRequest($contributionPageID, $widgetID, $action) { return "I registered a request to $action on $contributionPageID from $widgetID"; } @@ -62,7 +62,7 @@ class CRM_Widget_Widget { * @param int $contributionPageID * @param string $widgetID * - * @return stdClass + * @return object */ public function getContributionPageData($contributionPageID, $widgetID) { $config = CRM_Core_Config::singleton(); @@ -183,7 +183,8 @@ WHERE id = %1"; * * @param int $contributionPageID * @param string $widgetID - * @param string $format - either myspace or normal + * @param string $format + * Either myspace or normal. * * @return string */ @@ -192,5 +193,5 @@ WHERE id = %1"; return "......................." . print_r(func_get_args(), 1); } -} +}