DerDu/SPHERE-Framework

View on GitHub
Application/Api/Document/Custom/Radebeul/Radebeul.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace SPHERE\Application\Api\Document\Custom\Radebeul;


use SPHERE\Application\Api\Document\Creator;
use SPHERE\Application\IModuleInterface;
use SPHERE\Application\IServiceInterface;
use SPHERE\Common\Frontend\IFrontendInterface;
use SPHERE\Common\Main;
use SPHERE\System\Extension\Extension;

class Radebeul extends Extension implements IModuleInterface
{

    public static function registerModule()
    {

        Main::getDispatcher()->registerRoute(Main::getDispatcher()->createRoute(
            __NAMESPACE__.'/StudentCard/Create', __CLASS__.'::createStudentCardPdf'
        ));
        Main::getDispatcher()->registerRoute(Main::getDispatcher()->createRoute(
            __NAMESPACE__.'/StudentList/Create', __CLASS__.'::createStudentListPdf'
        ));
    }

    /**
     * @param null $PersonId
     *
     * @return \SPHERE\Common\Window\Stage|string
     */
    public static function createStudentCardPdf($PersonId = null)
    {

        return Creator::createPdf($PersonId, __NAMESPACE__.'\Repository\StudentCard');
    }

    /**
     * @return \SPHERE\Common\Window\Stage|string
     */
    public static function createStudentListPdf()
    {

        return Creator::createPdf(null, __NAMESPACE__.'\Repository\StudentList');
    }

    /**
     * @return IServiceInterface
     */
    public static function useService()
    {
        // TODO: Implement useService() method.
    }

    /**
     * @return IFrontendInterface
     */
    public static function useFrontend()
    {
        // TODO: Implement useFrontend() method.
    }
}