src/Eccube/Entity/Master/ProductStatus.php line 31

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of EC-CUBE
  4. *
  5. * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6. *
  7. * http://www.ec-cube.co.jp/
  8. *
  9. * For the full copyright and license information, please view the LICENSE
  10. * file that was distributed with this source code.
  11. */
  12. namespace Eccube\Entity\Master;
  13. use Doctrine\ORM\Mapping as ORM;
  14. if (!class_exists(ProductStatus::class, false)) {
  15. /**
  16. * ProductStatus
  17. *
  18. * 商品の公開ステータス
  19. *
  20. * @ORM\Table(name="mtb_product_status")
  21. * @ORM\InheritanceType("SINGLE_TABLE")
  22. * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  23. * @ORM\HasLifecycleCallbacks()
  24. * @ORM\Entity(repositoryClass="Eccube\Repository\Master\ProductStatusRepository")
  25. * @ORM\Cache(usage="NONSTRICT_READ_WRITE")
  26. */
  27. class ProductStatus extends \Eccube\Entity\Master\AbstractMasterEntity
  28. {
  29. /**
  30. * 公開
  31. *
  32. * フロント画面: 表示されます。
  33. * 管理画面商品一覧: デフォルトで検索対象となります。
  34. *
  35. * @var integer
  36. */
  37. public const DISPLAY_SHOW = 1;
  38. /**
  39. * 非公開
  40. *
  41. * フロント画面: 表示されません。
  42. * 管理画面商品一覧: デフォルトで検索対象となります。
  43. *
  44. * @var integer
  45. */
  46. public const DISPLAY_HIDE = 2;
  47. /**
  48. * 廃止
  49. *
  50. * 通常、商品情報は受注情報などに紐づいているため、商品情報を物理削除することはできません。
  51. * 廃止のステータスは2系や3系での論理削除に近い役割となります。
  52. * フロント画面: 表示されません。
  53. * 管理画面商品一覧: デフォルトで検索対象外となり、廃止の公開ステータスを指定して検索可能です。
  54. *
  55. * @var integer
  56. */
  57. public const DISPLAY_ABOLISHED = 3;
  58. }
  59. }