Ejemplo n.º 1
0
 /**
  * If the check for included domain is positive we change the caption class and call the parent method afterwards.
  *
  * @param date   The date when the template should have been valid
  * @param array  All appropriate template keys
  * @return array The valid template
  *
  * @author Former03 GmbH :: Florian Lippert <*****@*****.**>
  */
 function getServiceDescription($service_detail, $service_occurence)
 {
     $service_description = array('domain' => $this->idna->decode($service_detail['domain']));
     // Check for included domains
     if ($this->_checkIncludedDomain($service_detail['domain'], $service_detail['customerid']) === true) {
         $service_description['caption_class'] = 'included_domain';
     }
     return array_merge(parent::getServiceDescription($service_detail, $service_occurence), $service_description);
 }
Ejemplo n.º 2
0
 /**
  * We are merging the loginname in the returned value of the parent.
  *
  * @param date   The date when the template should have been valid
  * @param array  All appropriate template keys
  * @return array The valid template
  *
  * @author Former03 GmbH :: Florian Lippert <*****@*****.**>
  */
 function getServiceDescription($service_detail, $service_occurence)
 {
     return array_merge(parent::getServiceDescription($service_detail, $service_occurence), array('loginname' => $service_detail['loginname']));
 }