| @@ 122-130 (lines=9) @@ | ||
| 119 | * @param String $signature |
|
| 120 | * @return \OCA\Mail\Db\Alias |
|
| 121 | */ |
|
| 122 | public function updateSignature($accountId, $currentUserId, $signature) { |
|
| 123 | try { |
|
| 124 | $account = $this->mapper->find($currentUserId, $accountId); |
|
| 125 | $account->setSignature($signature); |
|
| 126 | return $this->mapper->update($account); |
|
| 127 | } catch(Exception $e) { |
|
| 128 | $this->handleException($e); |
|
| 129 | } |
|
| 130 | } |
|
| 131 | } |
|
| 132 | ||
| @@ 110-118 (lines=9) @@ | ||
| 107 | * @param String $signature |
|
| 108 | * @return \OCA\Mail\Db\Alias |
|
| 109 | */ |
|
| 110 | public function updateSignature($aliasId, $currentUserId, $signature) { |
|
| 111 | try { |
|
| 112 | $alias = $this->mapper->find($aliasId, $currentUserId); |
|
| 113 | $alias->setSignature($signature); |
|
| 114 | return $this->mapper->update($alias); |
|
| 115 | } catch(Exception $e) { |
|
| 116 | $this->handleException($e); |
|
| 117 | } |
|
| 118 | } |
|
| 119 | } |
|
| 120 | ||