1 | <?php |
||
19 | class ContactController extends Controller |
||
20 | { |
||
21 | /** |
||
22 | * @Route("/view/{id}", name="orocrm_contact_view", requirements={"id"="\d+"}) |
||
23 | * |
||
24 | * @Template |
||
25 | * @Acl( |
||
26 | * id="orocrm_contact_view", |
||
27 | * type="entity", |
||
28 | * permission="VIEW", |
||
29 | * class="OroCRMContactBundle:Contact" |
||
30 | * ) |
||
31 | */ |
||
32 | public function viewAction(Contact $contact) |
||
38 | |||
39 | /** |
||
40 | * @Route("/info/{id}", name="orocrm_contact_info", requirements={"id"="\d+"}) |
||
41 | * |
||
42 | * @Template |
||
43 | * @AclAncestor("orocrm_contact_view") |
||
44 | */ |
||
45 | public function infoAction(Contact $contact) |
||
55 | |||
56 | /** |
||
57 | * Create contact form |
||
58 | * @Route("/create", name="orocrm_contact_create") |
||
59 | * @Template("OroCRMContactBundle:Contact:update.html.twig") |
||
60 | * @Acl( |
||
61 | * id="orocrm_contact_create", |
||
62 | * type="entity", |
||
63 | * permission="CREATE", |
||
64 | * class="OroCRMContactBundle:Contact" |
||
65 | * ) |
||
66 | */ |
||
67 | public function createAction() |
||
91 | |||
92 | /** |
||
93 | * Update user form |
||
94 | * @Route("/update/{id}", name="orocrm_contact_update", requirements={"id"="\d+"}) |
||
95 | * |
||
96 | * @Template |
||
97 | * @Acl( |
||
98 | * id="orocrm_contact_update", |
||
99 | * type="entity", |
||
100 | * permission="EDIT", |
||
101 | * class="OroCRMContactBundle:Contact" |
||
102 | * ) |
||
103 | */ |
||
104 | public function updateAction(Contact $entity) |
||
108 | |||
109 | /** |
||
110 | * @Route( |
||
111 | * "/{_format}", |
||
112 | * name="orocrm_contact_index", |
||
113 | * requirements={"_format"="html|json"}, |
||
114 | * defaults={"_format" = "html"} |
||
115 | * ) |
||
116 | * |
||
117 | * @Template |
||
118 | * @AclAncestor("orocrm_contact_view") |
||
119 | */ |
||
120 | public function indexAction() |
||
126 | |||
127 | /** |
||
128 | * @return ApiEntityManager |
||
129 | */ |
||
130 | protected function getManager() |
||
134 | |||
135 | protected function update(Contact $entity = null) |
||
148 | |||
149 | /** |
||
150 | * @Route("/widget/account-contacts/{id}", name="orocrm_account_widget_contacts", requirements={"id"="\d+"}) |
||
151 | * @AclAncestor("orocrm_contact_view") |
||
152 | * @Template() |
||
153 | */ |
||
154 | public function accountContactsAction(Account $account) |
||
193 | } |
||
194 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.