1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
namespace App\Twig;
use App\Entity\Flux;
use App\Entity\Groupe;
use App\Entity\Rubrique;
use App\Entity\User;
use App\Factory\FormFactory;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
use Twig\TwigTest;
class FormExtension extends AbstractExtension
{
public $container;
public function __construct($container)
{
$this->container = $container;
}
public function getFunctions()
{
return [
new \Twig_SimpleFunction('getUserInfosForm', array($this, 'getUserInfosForm')),
new \Twig_SimpleFunction('getUserPasswordForm', array($this, 'getUserPasswordForm')),
new \Twig_SimpleFunction('getGroupeInfosForm', array($this, 'getGroupeInfosForm')),
new \Twig_SimpleFunction('getComptoirInfosForm', array($this, 'getComptoirInfosForm')),
new \Twig_SimpleFunction('getPrestataireInfosForm', array($this, 'getPrestataireInfosForm')),
new \Twig_SimpleFunction('getAdherentInfosForm', array($this, 'getAdherentInfosForm')),
new \Twig_SimpleFunction('getGroupePrestataireInscriptionForm', array($this, 'getGroupePrestataireInscriptionForm')),
new \Twig_SimpleFunction('getTransactionAdherentAdherentForm', array($this, 'getTransactionAdherentAdherentForm')),
new \Twig_SimpleFunction('getTransactionAdherentPrestataireForm', array($this, 'getTransactionAdherentPrestataireForm')),
new \Twig_SimpleFunction('getTransactionPrestataireAdherentForm', array($this, 'getTransactionPrestataireAdherentForm')),
new \Twig_SimpleFunction('getTransactionPrestatairePrestataireForm', array($this, 'getTransactionPrestatairePrestataireForm')),
new \Twig_SimpleFunction('getTransfertPrestataireSiegeForm', array($this, 'getTransfertPrestataireSiegeForm')),
new \Twig_SimpleFunction('getTransfertPrestataireComptoirForm', array($this, 'getTransfertPrestataireComptoirForm')),
new \Twig_SimpleFunction('getTransfertComptoirToXForm', array($this, 'getTransfertComptoirToXForm')),
new \Twig_SimpleFunction('getVenteComptoirToXForm', array($this, 'getVenteComptoirToXForm')),
new \Twig_SimpleFunction('getTransfertComptoirGroupeForm', array($this, 'getTransfertComptoirGroupeForm')),
new \Twig_SimpleFunction('getTransfertGroupeComptoirForm', array($this, 'getTransfertGroupeComptoirForm')),
new \Twig_SimpleFunction('getTransfertSiegeGroupeForm', array($this, 'getTransfertSiegeGroupeForm')),
new \Twig_SimpleFunction('getTransfertGroupeSiegeForm', array($this, 'getTransfertGroupeSiegeForm')),
];
}
public function getPrestataireInfosForm(User $user)
{
return $this->container->get('app.formfactory')->getPrestataireInfosForm($user);
}
public function getAdherentInfosForm(User $user)
{
return $this->container->get('app.formfactory')->getAdherentInfosForm($user);
}
public function getUserInfosForm(User $user)
{
return $this->container->get('app.formfactory')->getUserInfosForm($user);
}
public function getUserPasswordForm(User $user)
{
return $this->container->get('app.formfactory')->getUserPasswordForm($user);
}
public function getGroupeInfosForm(User $user)
{
return $this->container->get('app.formfactory')->getGroupeInfosForm($user);
}
public function getComptoirInfosForm(User $user)
{
return $this->container->get('app.formfactory')->getComptoirInfosForm($user);
}
public function getGroupePrestataireInscriptionForm(User $user)
{
return $this->container->get('app.formfactory')->getGroupePrestataireInscriptionForm($user);
}
public function getTransactionAdherentAdherentForm(User $user)
{
return $this->container->get('app.formfactory')->getTransactionAdherentAdherentForm($user);
}
public function getTransactionAdherentPrestataireForm(User $user)
{
return $this->container->get('app.formfactory')->getTransactionAdherentPrestataireForm($user);
}
public function getTransactionPrestataireAdherentForm(User $user)
{
return $this->container->get('app.formfactory')->getTransactionPrestataireAdherentForm($user);
}
public function getTransactionPrestatairePrestataireForm(User $user)
{
return $this->container->get('app.formfactory')->getTransactionPrestatairePrestataireForm($user);
}
public function getTransfertPrestataireSiegeForm(User $user)
{
return $this->container->get('app.formfactory')->getTransfertPrestataireSiegeForm($user);
}
public function getTransfertPrestataireComptoirForm(User $user)
{
return $this->container->get('app.formfactory')->getTransfertPrestataireComptoirForm($user);
}
public function getTransfertComptoirToXForm(User $user, $destinataire)
{
return $this->container->get('app.formfactory')->getTransfertComptoirToXForm($user, $destinataire);
}
public function getVenteComptoirToXForm(User $user, $destinataire)
{
return $this->container->get('app.formfactory')->getVenteComptoirToXForm($user, $destinataire);
}
public function getTransfertComptoirGroupeForm(User $user)
{
return $this->container->get('app.formfactory')->getTransfertComptoirGroupeForm($user);
}
public function getTransfertGroupeComptoirForm(User $user)
{
return $this->container->get('app.formfactory')->getTransfertGroupeComptoirForm($user);
}
public function getTransfertSiegeGroupeForm(User $user)
{
return $this->container->get('app.formfactory')->getTransfertSiegeGroupeForm($user);
}
public function getTransfertGroupeSiegeForm(User $user)
{
return $this->container->get('app.formfactory')->getTransfertGroupeSiegeForm($user);
}
}