* @access public
*/
public function buildQuickForm() {
- //parent::buildQuickForm( );
+ parent::buildQuickForm( );
+ $this->setPageTitle(ts('Premium Product'));
if ($this->_action & CRM_Core_Action::PREVIEW) {
CRM_Contribute_BAO_Premium::buildPremiumPreviewBlock($this, $this->_id);
-
- $this->addButtons(array(
- array(
- 'type' => 'next',
- 'name' => ts('Done with Preview'),
- 'isDefault' => TRUE,
- ),
- )
- );
-
return;
}
if ($this->_action & CRM_Core_Action::DELETE) {
- $this->addButtons(array(
- array(
- 'type' => 'next',
- 'name' => ts('Delete'),
- 'isDefault' => TRUE,
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ),
- )
- );
return;
}
$this->addFormRule(array('CRM_Contribute_Form_ManagePremiums', 'formRule'));
- $this->addButtons(array(
- array(
- 'type' => 'upload',
- 'name' => ts('Save'),
- 'isDefault' => TRUE,
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ),
- )
- );
-
$this->assign('productId', $this->_id);
}
*
* @access private
*
+ * @param $filename
+ * @param $resizedName
+ * @param $width
+ * @param $height
+ *
* @return Path to image
*/
private function _resizeImage($filename, $resizedName, $width, $height) {
$config = CRM_Core_Config::singleton();
return $config->imageUploadURL.basename($newFilename);
}
+
}