function onGetPermissionsList(Am_Event $event) { $event->addReturn(___('Can Operate with OTO'), self::ADMIN_PERM_ID); }
function onGetPermissionsList(Am_Event $event) { $event->addReturn(___("Can open and answer helpdesk tickets"), "helpdesk"); }
function onGetMemberLinks(Am_Event $event) { $user = $event->getUser(); if ($user->status == User::STATUS_PENDING) { return; } // @todo fixme make it without loading of all of plugins foreach ($this->getPlugins() as $pl) { if ($pl->storesCcInfo() && $this->getDi()->ccRecordTable->findFirstByUserId($user->user_id)) { $event->addReturn(___("Update Credit Card Info"), ROOT_SURL . "/payment/" . $pl->getId() . "/update"); } } }
public function onAdminWarnings(Am_Event $event) { if (!$this->isConfigured()) { $setupUrl = REL_ROOT_URL . '/admin-setup/' . $this->getId(); $event->addReturn(___("Plugin [%s] is not configured yet. Please %scomplete configuration%s", $this->getId(), '<a href="' . $setupUrl . '">', '</a>')); } }
function onGetPermissionsList(Am_Event $event) { $event->addReturn("Can see affiliate info/make payouts", self::ADMIN_PERM_ID); }
function onGetPermissionsList(Am_Event $event) { $event->addReturn(___("Manage Newsletters"), "newsletter"); }
function onSetupEmailTemplateTypes(Am_Event $event) { $event->addReturn(array('id' => 'subusers.registration_mail', 'title' => '%site_title% Registration', 'mailPeriodic' => Am_Mail::USER_REQUESTED, 'vars' => array('user', 'password' => 'Plain-Text Password', 'reseller', 'reseller_product' => 'Reseller Product', 'user_product' => 'Sub-User Product')), 'subusers.registration_mail'); }
function onGetMemberLinks(Am_Event $event) { $user = $event->getUser(); if ($user->status == User::STATUS_PENDING) { return; } foreach ($this->getPlugins() as $pl) { if ($pl instanceof Am_Paysystem_CreditCard && ($link = $pl->getUpdateCcLink($user))) { $event->addReturn(___("Update Credit Card Info"), $link); } elseif ($pl instanceof Am_Paysystem_Echeck && ($link = $pl->getUpdateEcheckLink($user))) { $event->addReturn(___("Update Echeck Info"), $link); } } }
function onGetPermissionsList(Am_Event $event) { $event->addReturn("Can see affiliate info/make payouts", "affiliates"); }
function onGetUploadPrefixList(Am_Event $event) { $event->addReturn(array(Am_Upload_Acl::IDENTITY_TYPE_ADMIN => Am_Upload_Acl::ACCESS_ALL, Am_Upload_Acl::IDENTITY_TYPE_USER => Am_Upload_Acl::ACCESS_READ, Am_Upload_Acl::IDENTITY_TYPE_ANONYMOUS => Am_Upload_Acl::ACCESS_READ), self::UPLOAD_PREFIX); }
public function onAdminWarnings(Am_Event $event) { if (!$this->isConfigured()) { $event->addReturn(___("Plugin [%s] is not configured", $this->getId())); } }
function onAdminWarnings(Am_Event $e) { $e->addReturn("Important Information about EU VAT Changes: <a href='http://www.amember.com/docs/Configure_EU_VAT'>please read</a>"); }
function onGetPermissionsList(Am_Event $event) { $event->addReturn(___('Helpdesk: Can operate with helpdesk tickets'), self::ADMIN_PERM_ID); $event->addReturn(___('Helpdesk: FAQ'), self::ADMIN_PERM_FAQ); $event->addReturn(___('Helpdesk: Categories'), self::ADMIN_PERM_CATEGORY); }