_pledgeIds); $query = " SELECT plg.amount as amount, plg.create_date as create_date, ct.display_name as display_name FROM civicrm_pledge plg INNER JOIN civicrm_contact ct ON ( plg.contact_id = ct.id ) WHERE plg.id IN ( $pledgeIDs )"; $dao = CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray); while ($dao->fetch()) { $rows[] = array( 'display_name' => $dao->display_name, 'amount' => $dao->amount, 'create_date' => CRM_Utils_Date::customFormat($dao->create_date), ); } $this->assign('rows', $rows); } /** * Function to actually build the form * * @return None * @access public */ public function buildQuickForm() { $this->addButtons(array( array( 'type' => 'done', 'name' => ts('Done'), 'isDefault' => TRUE, ), ) ); } }