コード例 #1
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $adm = new AccountDocusignManager($this->em, 'Wealthbot\\ClientBundle\\Entity\\ClientAccountDocusign');
     if ($this->account->hasGroup(AccountGroup::GROUP_DEPOSIT_MONEY) || true === $this->hasFunding || $adm->hasElectronicallySignError($this->account)) {
         $subscriber = new TransferFundingFormEventSubscriber($builder->getFormFactory(), $this->em, $this->account);
         $builder->add('funding', new TransferFundingFormType($this->em, $this->account, $subscriber, $this->isPreSaved), array('label' => null));
     }
 }
コード例 #2
0
 public function __construct(Form $form, Request $request, AccountDocusignManager $adm, array $owners = array(), $consolidate = true)
 {
     $this->form = $form;
     $this->request = $request;
     $this->adm = $adm;
     $this->em = $adm->getObjectManager();
     $this->owners = $owners;
     $this->consolidate = $consolidate;
 }
コード例 #3
0
 /**
  * Is account has funding section
  *
  * @return bool
  */
 private function hasFundingSection()
 {
     if ($this->account->hasFunding() || $this->account->hasDistributing() || $this->account->hasGroup(AccountGroup::GROUP_DEPOSIT_MONEY) || $this->adm->hasElectronicallySignError($this->account)) {
         return true;
     }
     return false;
 }