public static function getOperatedByData() {

        $name = '';
        $email = '';

        // find data in the theme, they will be there if installed with the taoStyles extension
        $theme = self::getCurrentTheme();
        if ($theme instanceof ConfigurablePlatformTheme) {
            $operatedBy = $theme->getOperatedBy();
            $name  = $operatedBy['name'];
            $email = $operatedBy['email'];
        }

        // otherwise they will be stored in config
        if(!$name && !$email) {
            $operatedByService = ServiceManager::getServiceManager()->get(OperatedByService::SERVICE_ID);
            $name = $operatedByService->getName();
            $email = $operatedByService->getEmail();
        }

        $data = [
            'name'  => $name,
            'email' => empty($email)
                ? ''
                : StringUtils::encodeText('mailto:' . $email)
        ];

        return $data;
    }
public static function getOperatedByData() {

        $name = '';
        $email = '';

        // find data in the theme, they will be there if installed with the taoStyles extension
        $theme = self::getCurrentTheme();
        if ($theme instanceof ConfigurablePlatformTheme) {
            $operatedBy = $theme->getOperatedBy();
            $name  = $operatedBy['name'];
            $email = $operatedBy['email'];
        }

        // otherwise they will be stored in config
        if(!$name && !$email) {
            $operatedByService = ServiceManager::getServiceManager()->get(OperatedByService::SERVICE_ID);
            $name = $operatedByService->getName();
            $email = $operatedByService->getEmail();
        }

        $data = [
            'name'  => $name,
            'email' => empty($email)
                ? ''
                : StringUtils::encodeText('mailto:' . $email)
        ];

        return $data;
    }
public static function getOperatedByData ( ) { $ name = '' ; $ email = '' ; // find data in the theme, they will be there if installed with the taoStyles extension $ theme = self :: getCurrentTheme ( ) ; if ( $ theme instanceof ConfigurablePlatformTheme ) { $ operatedBy = $ theme -> getOperatedBy ( ) ; $ name = $ operatedBy [ 'name' ] ; $ email = $ operatedBy [ 'email' ] ; } // otherwise they will be stored in config if ( ! $ name && ! $ email ) { $ operatedByService = ServiceManager :: getServiceManager ( ) -> get ( OperatedByService :: SERVICE_ID ) ; $ name = $ operatedByService -> getName ( ) ; $ email = $ operatedByService -> getEmail ( ) ; } $ data = [ 'name' => $ name , 'email' => empty ( $ email ) ? '' : StringUtils :: encodeText ( 'mailto:' . $ email ) ] ; return $ data ; }
Get the currently registered OperatedBy data
@return array
Get the currently registered OperatedBy data