Example #1
0
 public function initialize()
 {
     if (!self::$_methodTable) {
         self::$_methodTable = array('getContributionPageData' => array('description' => 'Gets all campaign related data and returns it as a std class.', 'access' => 'remote', 'arguments' => array('contributionPageID', 'widgetID')), 'getEmbedCode' => array('description' => 'Gets embed code.  Perhaps overkill, but we can track dropoffs in this case. by # of people reqeusting emebed code / number of unique instances.', 'access' => 'remote', 'arguments' => array('contributionPageID', 'widgetID', 'format')));
     }
 }
Example #2
0
 /**
  * Gets embed code.  Perhaps overkill, but we can track dropoffs in this case.
  * by # of people reqeusting emebed code / number of unique instances.
  *
  * @param int $contributionPageID
  * @param string $widgetID
  * @param string $format - either myspace or normal
  * @return string
  */
 public function getEmbedCode($contributionPageID, $widgetID, $format = "normal")
 {
     return CRM_Widget_Widget::getEmbedCode($contributionPageID, $widgetID, $format);
 }