/** * overwritten method from baseclass * @param mixed $node * @return bool */ function isNodeClickable($node) { global $ilUser; switch ($node['type']) { case 'lm': case 'crs': case 'tst': case 'sahs': case 'file': case 'htlm': case 'exc': case 'glo': break; default: return false; } if ($this->classname == 'ilpaymentstatisticgui') { if (ilPaymentObject::_isPurchasable($node['ref_id'], $ilUser->getId(), true)) { return true; } } else { if ($this->classname == 'ilobjpaymentsettingsgui') { if (ilPaymentObject::_isPurchasable($node['ref_id'])) { return true; } } else { if ($this->classname == 'ilpaymentobjectgui') { // object doesn't exist in payment_object if (ilPaymentObject::_isNewObject($node['ref_id'])) { return true; } } else { if (ilPaymentObject::_isPurchasable($node['ref_id'])) { return true; } } } } return false; }