Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function init() |
||
48 | { |
||
49 | if (!$this->model->organization) { |
||
50 | throw new InvalidConfigException("The organization should not be empty."); |
||
51 | } |
||
52 | if (empty($this->formConfig)) { |
||
53 | $this->formConfig = [ |
||
54 | 'id' => 'join-organization-form-' . $this->model->organization->getID(), |
||
55 | 'action' => [$this->join ? 'join' : 'exit', 'entrance' => $this->model->organization->getJoinEntranceUrl()], |
||
56 | ]; |
||
57 | } |
||
58 | } |
||
59 | |||
73 |