projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4622 from civicrm/4.5
[civicrm-core.git]
/
CRM
/
Contribute
/
Form
/
ManagePremiums.php
diff --git
a/CRM/Contribute/Form/ManagePremiums.php
b/CRM/Contribute/Form/ManagePremiums.php
index 0275bc637d92db8be19c845b51befcf1e15e2541..e324ccd2aebd68aa4fbdd832b425ebec10e0f4a8 100644
(file)
--- a/
CRM/Contribute/Form/ManagePremiums.php
+++ b/
CRM/Contribute/Form/ManagePremiums.php
@@
-93,36
+93,15
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
* @access public
*/
public function buildQuickForm() {
* @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);
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) {
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;
}
return;
}
@@
-222,7
+201,6
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
),
)
);
),
)
);
-
$this->assign('productId', $this->_id);
}
$this->assign('productId', $this->_id);
}
@@
-231,6
+209,8
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
*
* @param array $params (ref.) an assoc array of name/value pairs
*
*
* @param array $params (ref.) an assoc array of name/value pairs
*
+ * @param $files
+ *
* @return mixed true or array of errors
* @access public
* @static
* @return mixed true or array of errors
* @access public
* @static
@@
-375,6
+355,11
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
*
* @access private
*
*
* @access private
*
+ * @param $filename
+ * @param $resizedName
+ * @param $width
+ * @param $height
+ *
* @return Path to image
*/
private function _resizeImage($filename, $resizedName, $width, $height) {
* @return Path to image
*/
private function _resizeImage($filename, $resizedName, $width, $height) {
@@
-413,5
+398,6
@@
class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
$config = CRM_Core_Config::singleton();
return $config->imageUploadURL.basename($newFilename);
}
$config = CRM_Core_Config::singleton();
return $config->imageUploadURL.basename($newFilename);
}
+
}
}