1 | <?php |
||
18 | class MarketingListController extends Controller |
||
19 | { |
||
20 | /** |
||
21 | * @Route("/", name="orocrm_marketing_list_index") |
||
22 | * @AclAncestor("orocrm_marketing_list_view") |
||
23 | * @Template |
||
24 | */ |
||
25 | public function indexAction() |
||
31 | |||
32 | /** |
||
33 | * @Route("/view/{id}", name="orocrm_marketing_list_view", requirements={"id"="\d+"}, defaults={"id"=0}) |
||
34 | * @Acl( |
||
35 | * id="orocrm_marketing_list_view", |
||
36 | * type="entity", |
||
37 | * permission="VIEW", |
||
38 | * class="OroCRMMarketingListBundle:MarketingList" |
||
39 | * ) |
||
40 | * @Template |
||
41 | * |
||
42 | * @param MarketingList $entity |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | public function viewAction(MarketingList $entity) |
||
56 | |||
57 | /** |
||
58 | * @Route("/create", name="orocrm_marketing_list_create") |
||
59 | * @Template("OroCRMMarketingListBundle:MarketingList:update.html.twig") |
||
60 | * @Acl( |
||
61 | * id="orocrm_marketing_list_create", |
||
62 | * type="entity", |
||
63 | * permission="CREATE", |
||
64 | * class="OroCRMMarketingListBundle:MarketingList" |
||
65 | * ) |
||
66 | */ |
||
67 | public function createAction() |
||
71 | |||
72 | /** |
||
73 | * @Route("/update/{id}", name="orocrm_marketing_list_update", requirements={"id"="\d+"}, defaults={"id"=0}) |
||
74 | * |
||
75 | * @Template |
||
76 | * @Acl( |
||
77 | * id="orocrm_marketing_list_update", |
||
78 | * type="entity", |
||
79 | * permission="EDIT", |
||
80 | * class="OroCRMMarketingListBundle:MarketingList" |
||
81 | * ) |
||
82 | * |
||
83 | * @param MarketingList $entity |
||
84 | * |
||
85 | * @return array |
||
86 | */ |
||
87 | public function updateAction(MarketingList $entity) |
||
91 | |||
92 | /** |
||
93 | * @param MarketingList $entity |
||
94 | * |
||
95 | * @return array |
||
96 | */ |
||
97 | protected function update(MarketingList $entity) |
||
118 | } |
||
119 |