*
* @return array
*/
- public function &actionLinks() {
+ public static function &actionLinks() {
// check if variable _actionsLinks is populated
if (!isset(self::$_actionLinks)) {
// helper variable for nicer formatting
CRM_Core_DAO::storeValues($dao, $contribution[$dao->id]);
// form all action links
- $action = array_sum(array_keys($this->actionLinks()));
+ $action = array_sum(array_keys(self::actionLinks()));
//add configure actions links.
$action += array_sum(array_keys($configureActionLinks));
* @return array
* array of action links that we need to display for the browse screen
*/
- public function &actionLinks() {
+ public static function &actionLinks() {
if (!isset(self::$_actionLinks)) {
self::$_actionLinks = array(
CRM_Core_Action::UPDATE => array(
while ($customFieldBAO->fetch()) {
$customField[$customFieldBAO->id] = array();
CRM_Core_DAO::storeValues($customFieldBAO, $customField[$customFieldBAO->id]);
- $action = array_sum(array_keys($this->actionLinks()));
+ $action = array_sum(array_keys(self::actionLinks()));
if ($customFieldBAO->is_active) {
$action -= CRM_Core_Action::ENABLE;
}
* @return array
* array of action links that we need to display for the browse screen
*/
- public function &actionLinks() {
+ public static function &actionLinks() {
// check if variable _actionsLinks is populated
if (!isset(self::$_actionLinks)) {
self::$_actionLinks = array(
$customGroup[$id] = array();
CRM_Core_DAO::storeValues($dao, $customGroup[$id]);
// form all action links
- $action = array_sum(array_keys($this->actionLinks()));
+ $action = array_sum(array_keys(self::actionLinks()));
// update enable/disable links depending on custom_group properties.
if ($dao->is_active) {
* @return array
* array of action links that we need to display for the browse screen
*/
- public function &actionLinks() {
+ public static function &actionLinks() {
if (!isset(self::$_actionLinks)) {
self::$_actionLinks = array(
CRM_Core_Action::UPDATE => array(
* @return array
* array of action links that we need to display for the browse screen
*/
- public function &actionLinks() {
+ public static function &actionLinks() {
if (!isset(self::$_actionLinks)) {
self::$_actionLinks = array(
CRM_Core_Action::UPDATE => array(
}
}
- $action = array_sum(array_keys($this->actionLinks()));
+ $action = array_sum(array_keys(self::actionLinks()));
if ($this->_isSetReserved) {
$action -= CRM_Core_Action::UPDATE + CRM_Core_Action::DELETE + CRM_Core_Action::ENABLE + CRM_Core_Action::DISABLE;
* @return array
* array of action links that we need to display for the browse screen
*/
- public function &actionLinks() {
+ public static function &actionLinks() {
if (!isset(self::$_actionLinks)) {
self::$_actionLinks = array(
CRM_Core_Action::UPDATE => array(
$invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings);
$getTaxDetails = FALSE;
foreach ($customOption as $id => $values) {
- $action = array_sum(array_keys($this->actionLinks()));
+ $action = array_sum(array_keys(self::actionLinks()));
// Adding the required fields in the array
if (isset($taxRate[$values['financial_type_id']])) {
$customOption[$id]['tax_rate'] = $taxRate[$values['financial_type_id']];
*
* @return array
*/
- public function &actionLinks() {
+ public static function &actionLinks() {
if (!isset(self::$_actionLinks)) {
self::$_actionLinks = array(
CRM_Core_Action::UPDATE => array(
$ufField[$ufFieldBAO->id]['label'] = $ufFieldBAO->label;
- $action = array_sum(array_keys($this->actionLinks()));
+ $action = array_sum(array_keys(self::actionLinks()));
if ($ufFieldBAO->is_active) {
$action -= CRM_Core_Action::ENABLE;
}
*
* @return array
*/
- public function &actionLinks() {
+ public static function &actionLinks() {
// check if variable _actionsLinks is populated
if (!self::$_actionLinks) {
// helper variable for nicer formatting
$ufGroup[$id]['is_reserved'] = $value['is_reserved'];
// form all action links
- $action = array_sum(array_keys($this->actionLinks()));
+ $action = array_sum(array_keys(self::actionLinks()));
// update enable/disable links depending on uf_group properties.
if ($value['is_active']) {