private function loadProperMessageTemplateBy($code) { switch ($code) { case Emails::USER_CONFIRMATION: $message = $this->templatesService->fetchTemplate("_paywall/email_notify_user.tpl"); break; case Emails::SUBSCRIPTION_CONFIRMATION: $message = $this->templatesService->fetchTemplate("_paywall/email_notify_admin.tpl"); break; case Emails::SUBSCRIPTION_STATUS: $message = $this->templatesService->fetchTemplate("_paywall/email_subscription_status.tpl"); break; case Emails::SUBSCRIPTION_EXPIRATION: $message = $this->templatesService->fetchTemplate("_paywall/email_subscription_expiration.tpl"); break; case Emails::ADMIN_CREATED_CONFIRMATION: $message = $this->templatesService->fetchTemplate("_paywall/email_subscription_admin_created.tpl"); break; default: break; } return $message; }
/** * Sets the value of pageParameterName. * * @param mixed $pageParameterName the page parameter name * * @return self */ public function setPageParameterName($pageParameterName) { $this->pageParameterName = $pageParameterName; $this->paginatorService->setPageParameterName($this->pageParameterName); return $this; }