protected $_fields = NULL;
- function preProcess() {
+ public function preProcess() {
parent::preProcess();
$this->_fields = array(
* @param bool $check
*
* @return void
- * @access public
*/
public function buildQuickForm($check = FALSE) {
parent::buildQuickForm();
return;
}
- $attributes = CRM_Core_DAO::getAttribute( 'CRM_Financial_DAO_PaymentProcessorType' );
+ $attributes = CRM_Core_DAO::getAttribute('CRM_Financial_DAO_PaymentProcessorType');
foreach ($this->_fields as $field) {
$required = CRM_Utils_Array::value('required', $field, FALSE);
/**
* @return array
*/
- function setDefaultValues() {
+ public function setDefaultValues() {
$defaults = array();
if (!$this->_id) {
return $defaults;
}
- $dao = new CRM_Financial_DAO_PaymentProcessorType( );
+ $dao = new CRM_Financial_DAO_PaymentProcessorType();
$dao->id = $this->_id;
if (!$dao->find(TRUE)) {
/**
* Process the form submission
*
- * @access public
*
* @return void
*/
public function postProcess() {
- CRM_Utils_System::flushCache( 'CRM_Financial_DAO_PaymentProcessorType' );
+ CRM_Utils_System::flushCache('CRM_Financial_DAO_PaymentProcessorType');
if ($this->_action & CRM_Core_Action::DELETE) {
CRM_Financial_BAO_PaymentProcessorType::del($this->_id);
CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray);
}
- $dao = new CRM_Financial_DAO_PaymentProcessorType( );
+ $dao = new CRM_Financial_DAO_PaymentProcessorType();
$dao->id = $this->_id;
$dao->is_default = CRM_Utils_Array::value('is_default', $values, 0);
$dao->save();
}
}
-