donationEnabled() public method

Determine whether donations are enabled.
public donationEnabled ( ) : boolean
return boolean true iff this fee is enabled.
 /**
  * @see BlockPlugin::getContents
  */
 function getContents(&$templateMgr, $request)
 {
     $journal =& $request->getJournal();
     if (!$journal) {
         return '';
     }
     import('classes.payment.ojs.OJSPaymentManager');
     $paymentManager = new OJSPaymentManager($request);
     $templateMgr->assign('donationEnabled', $paymentManager->donationEnabled());
     return parent::getContents($templateMgr, $request);
 }