app/Customize/Service/AutoLoadService.php line 49

Open in your IDE?
  1. <?php
  2. /**
  3.  * @version EC=CUBE4
  4.  * @copyright 株式会社 翔 kakeru.co.jp
  5.  * @author
  6.  * 2022年01月15日作成
  7.  *
  8.  * app\Customize\Service\CustomerService.php
  9.  *
  10.  * AutoLoadService
  11.  *
  12.  *
  13.  *                               C= C= C= ┌(;・_・)┘トコトコ
  14.  ******************************************************/
  15. namespace Customize\Service;
  16. use Symfony\Component\DependencyInjection\ContainerInterface;
  17. use Symfony\Component\HttpFoundation\RequestStack;
  18. use Customize\Service\CommonService;
  19. use Lm\Service\Db\SqlService;
  20. class AutoLoadService
  21. {
  22.     const NARIKAWARI_SESSON 'NARIKAWARI_SESSON';
  23.     protected $CommonService;
  24.     protected $Container;
  25.     protected $Session;
  26.     protected $Request;
  27.     public function __construct(
  28.             ContainerInterface $Container
  29.           ,RequestStack  $RequestStack
  30.           ,CommonService $CommonService
  31.     )
  32.     {
  33.         $this->CommonService $CommonService;
  34.         $this->Container $Container;
  35.         $this->Request $RequestStack->getCurrentRequest();
  36.     }
  37.     public function GetNariKawariSession($removefalse)
  38.     {
  39.         $Session $this->Request->getSession();
  40.         $Data $Session->get(self::NARIKAWARI_SESSON);
  41.         
  42.         if ($remove){
  43.             $Session->set(self::NARIKAWARI_SESSON,null);
  44.         }
  45.         return $Data;
  46.     }
  47.     public function RemoveNariKawariSession()
  48.     {
  49.         $Session $this->Request->getSession();
  50.         $Session->set(self::NARIKAWARI_SESSONnull);
  51.     }
  52.     public function GetNariKawariFormData()
  53.     {
  54.         $Ladio $this->CommonService->GetYaml('Narikawari_Radio.yaml');//oh_jhouhou
  55.         $Sql = new SqlService();
  56.         $EigyoData $Sql->Table('kakunin_eigyou_table')
  57.             ->Set('eigyou_order_list'1)
  58.             ->Order('eigyou_id')
  59.             ->FindAll();
  60.         return [$Ladio$EigyoData];
  61.     }
  62. }