| @@ 245-256 (lines=12) @@ | ||
| 242 | * |
|
| 243 | * @return bool |
|
| 244 | */ |
|
| 245 | public function delete() |
|
| 246 | { |
|
| 247 | if ($this->onBeforeDelete() === false) { |
|
| 248 | return false; |
|
| 249 | } |
|
| 250 | ||
| 251 | $result = static::$bxObject->delete($this->id); |
|
| 252 | ||
| 253 | $this->onAfterDelete($result); |
|
| 254 | ||
| 255 | return $result; |
|
| 256 | } |
|
| 257 | ||
| 258 | /** |
|
| 259 | * Update model. |
|
| @@ 220-231 (lines=12) @@ | ||
| 217 | * |
|
| 218 | * @return bool |
|
| 219 | */ |
|
| 220 | public function delete() |
|
| 221 | { |
|
| 222 | if ($this->onBeforeDelete() === false) { |
|
| 223 | return false; |
|
| 224 | } |
|
| 225 | ||
| 226 | $result = static::$bxObject::delete($this->id); |
|
| 227 | ||
| 228 | $this->onAfterDelete($result); |
|
| 229 | ||
| 230 | return $result; |
|
| 231 | } |
|
| 232 | ||
| 233 | /** |
|
| 234 | * Update model. |
|