1 | <?php |
||
28 | class PageRepository extends AbstractRepository |
||
29 | { |
||
30 | /** |
||
31 | * @var EccubeConfig |
||
32 | */ |
||
33 | protected $eccubeConfig; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | * @path %eccube_theme_user_data_dir% (app/template/user_data) |
||
38 | */ |
||
39 | protected $userDataRealDir; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | * @path %eccube_theme_app_dir% (app/template) |
||
44 | */ |
||
45 | protected $templateRealDir; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | * @path %eccube_theme_src_dir% (src/Eccube/Resource/template) |
||
50 | */ |
||
51 | protected $templateDefaultRealDir; |
||
52 | |||
53 | /** |
||
54 | * PageRepository constructor. |
||
55 | * |
||
56 | * @param RegistryInterface $registry |
||
57 | * @param EccubeConfig $eccubeConfig |
||
58 | * @param ContainerInterface $container |
||
59 | */ |
||
60 | public function __construct(RegistryInterface $registry, EccubeConfig $eccubeConfig, ContainerInterface $container) |
||
68 | |||
69 | /** |
||
70 | * @param $route |
||
71 | * @return Page |
||
72 | */ |
||
73 | public function getPageByRoute($route) |
||
93 | |||
94 | /** |
||
95 | * @param string $url |
||
96 | * |
||
97 | * @return Page |
||
98 | * |
||
99 | * @throws NoResultException |
||
100 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
101 | */ |
||
102 | public function getByUrl($url) |
||
114 | |||
115 | /** |
||
116 | * @return Page |
||
117 | */ |
||
118 | public function newPage() |
||
125 | |||
126 | /** |
||
127 | * ページの属性を取得する. |
||
128 | * |
||
129 | * この関数は, dtb_Page の情報を検索する. |
||
130 | * |
||
131 | * @param string $where 追加の検索条件 |
||
132 | * @param string[] $parameters 追加の検索パラメーター |
||
133 | * |
||
134 | * @return array ページ属性の配列 |
||
135 | */ |
||
136 | public function getPageList($where = null, $parameters = []) |
||
155 | } |
||
156 |