| @@ 273-284 (lines=12) @@ | ||
| 270 | * |
|
| 271 | * @throws FakeException |
|
| 272 | */ |
|
| 273 | public function parseGroupLink(IEvent &$event, Circle $circle, Member $group) { |
|
| 274 | if ($event->getSubject() !== 'group_link') { |
|
| 275 | return; |
|
| 276 | } |
|
| 277 | ||
| 278 | $this->parseCircleMemberEvent( |
|
| 279 | $event, $circle, $group, |
|
| 280 | $this->l10n->t('You linked {group} to {circle}'), |
|
| 281 | $this->l10n->t('{group} has been linked to {circle} by {author}') |
|
| 282 | ); |
|
| 283 | throw new FakeException(); |
|
| 284 | } |
|
| 285 | ||
| 286 | ||
| 287 | /** |
|
| @@ 294-305 (lines=12) @@ | ||
| 291 | * |
|
| 292 | * @throws FakeException |
|
| 293 | */ |
|
| 294 | public function parseGroupUnlink(IEvent &$event, Circle $circle, Member $group) { |
|
| 295 | if ($event->getSubject() !== 'group_unlink') { |
|
| 296 | return; |
|
| 297 | } |
|
| 298 | $this->parseCircleMemberEvent( |
|
| 299 | $event, $circle, $group, |
|
| 300 | $this->l10n->t('You unlinked {group} from {circle}'), |
|
| 301 | $this->l10n->t('{group} has been unlinked from {circle} by {author}') |
|
| 302 | ); |
|
| 303 | ||
| 304 | throw new FakeException(); |
|
| 305 | } |
|
| 306 | ||
| 307 | ||
| 308 | /** |
|
| @@ 340-353 (lines=14) @@ | ||
| 337 | * |
|
| 338 | * @throws FakeException |
|
| 339 | */ |
|
| 340 | public function parseMemberInvited(IEvent &$event, Circle $circle, Member $member) { |
|
| 341 | if ($event->getSubject() !== 'member_invited') { |
|
| 342 | return; |
|
| 343 | } |
|
| 344 | ||
| 345 | $this->parseCircleMemberAdvancedEvent( |
|
| 346 | $event, $circle, $member, |
|
| 347 | $this->l10n->t('You invited {member} to join {circle}'), |
|
| 348 | $this->l10n->t('You have been invited to join {circle} by {author}'), |
|
| 349 | $this->l10n->t('{member} has been invited to join {circle} by {author}') |
|
| 350 | ); |
|
| 351 | ||
| 352 | throw new FakeException(); |
|
| 353 | } |
|
| 354 | ||
| 355 | ||
| 356 | /** |
|
| @@ 387-399 (lines=13) @@ | ||
| 384 | * |
|
| 385 | * @throws FakeException |
|
| 386 | */ |
|
| 387 | public function parseMemberRequestInvitation(IEvent &$event, Circle $circle, Member $member) { |
|
| 388 | if ($event->getSubject() !== 'member_request_invitation') { |
|
| 389 | return; |
|
| 390 | } |
|
| 391 | ||
| 392 | $this->parseMemberEvent( |
|
| 393 | $event, $circle, $member, |
|
| 394 | $this->l10n->t('You sent a request to join {circle}'), |
|
| 395 | $this->l10n->t('{member} sent a request to join {circle}') |
|
| 396 | ); |
|
| 397 | ||
| 398 | throw new FakeException(); |
|
| 399 | } |
|
| 400 | ||
| 401 | ||
| 402 | /** |
|
| @@ 409-420 (lines=12) @@ | ||
| 406 | * |
|
| 407 | * @throws FakeException |
|
| 408 | */ |
|
| 409 | public function parseMemberOwner(IEvent &$event, Circle $circle, Member $member) { |
|
| 410 | if ($event->getSubject() !== 'member_owner') { |
|
| 411 | return; |
|
| 412 | } |
|
| 413 | ||
| 414 | $this->parseMemberEvent( |
|
| 415 | $event, $circle, $member, |
|
| 416 | $this->l10n->t('You are the new owner of {circle}'), |
|
| 417 | $this->l10n->t('{member} is the new owner of {circle}') |
|
| 418 | ); |
|
| 419 | throw new FakeException(); |
|
| 420 | } |
|
| 421 | ||
| 422 | ||
| 423 | /** |
|
| @@ 430-442 (lines=13) @@ | ||
| 427 | * |
|
| 428 | * @throws FakeException |
|
| 429 | */ |
|
| 430 | public function parseLinkRequestSent(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 431 | if ($event->getSubject() !== 'link_request_sent') { |
|
| 432 | return; |
|
| 433 | } |
|
| 434 | ||
| 435 | $this->parseCircleEvent( |
|
| 436 | $event, $circle, $remote, |
|
| 437 | $this->l10n->t('You sent a request to link {circle} with {remote}'), |
|
| 438 | $this->l10n->t('{author} sent a request to link {circle} with {remote}') |
|
| 439 | ); |
|
| 440 | ||
| 441 | throw new FakeException(); |
|
| 442 | } |
|
| 443 | ||
| 444 | ||
| 445 | /** |
|
| @@ 452-462 (lines=11) @@ | ||
| 449 | * |
|
| 450 | * @throws FakeException |
|
| 451 | */ |
|
| 452 | public function parseLinkRequestReceived(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 453 | if ($event->getSubject() !== 'link_request_received') { |
|
| 454 | return; |
|
| 455 | } |
|
| 456 | ||
| 457 | $this->parseLinkEvent( |
|
| 458 | $event, $circle, $remote, $this->l10n->t('{remote} requested a link with {circle}') |
|
| 459 | ); |
|
| 460 | ||
| 461 | throw new FakeException(); |
|
| 462 | } |
|
| 463 | ||
| 464 | ||
| 465 | /** |
|
| @@ 472-483 (lines=12) @@ | ||
| 469 | * |
|
| 470 | * @throws FakeException |
|
| 471 | */ |
|
| 472 | public function parseLinkRequestRejected(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 473 | if ($event->getSubject() !== 'link_request_rejected') { |
|
| 474 | return; |
|
| 475 | } |
|
| 476 | ||
| 477 | $this->parseLinkEvent( |
|
| 478 | $event, $circle, $remote, |
|
| 479 | $this->l10n->t('The request to link {circle} with {remote} has been rejected') |
|
| 480 | ); |
|
| 481 | ||
| 482 | throw new FakeException(); |
|
| 483 | } |
|
| 484 | ||
| 485 | ||
| 486 | /** |
|
| @@ 493-506 (lines=14) @@ | ||
| 490 | * |
|
| 491 | * @throws FakeException |
|
| 492 | */ |
|
| 493 | public function parseLinkRequestCanceled(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 494 | if ($event->getSubject() !== 'link_request_canceled') { |
|
| 495 | return; |
|
| 496 | } |
|
| 497 | ||
| 498 | $this->parseLinkEvent( |
|
| 499 | $event, $circle, $remote, |
|
| 500 | $this->l10n->t( |
|
| 501 | 'The request to link {remote} with {circle} has been canceled remotely' |
|
| 502 | ) |
|
| 503 | ); |
|
| 504 | ||
| 505 | throw new FakeException(); |
|
| 506 | } |
|
| 507 | ||
| 508 | ||
| 509 | /** |
|
| @@ 516-527 (lines=12) @@ | ||
| 513 | * |
|
| 514 | * @throws FakeException |
|
| 515 | */ |
|
| 516 | public function parseLinkRequestAccepted(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 517 | if ($event->getSubject() !== 'link_request_accepted') { |
|
| 518 | return; |
|
| 519 | } |
|
| 520 | ||
| 521 | $this->parseLinkEvent( |
|
| 522 | $event, $circle, $remote, |
|
| 523 | $this->l10n->t('The request to link {circle} with {remote} has been accepted') |
|
| 524 | ); |
|
| 525 | ||
| 526 | throw new FakeException(); |
|
| 527 | } |
|
| 528 | ||
| 529 | ||
| 530 | /** |
|
| @@ 537-549 (lines=13) @@ | ||
| 534 | * |
|
| 535 | * @throws FakeException |
|
| 536 | */ |
|
| 537 | public function parseLinkRequestRemoved(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 538 | if ($event->getSubject() !== 'link_request_removed') { |
|
| 539 | return; |
|
| 540 | } |
|
| 541 | ||
| 542 | $this->parseCircleEvent( |
|
| 543 | $event, $circle, $remote, |
|
| 544 | $this->l10n->t('You dismissed the request to link {remote} with {circle}'), |
|
| 545 | $this->l10n->t('{author} dismissed the request to link {remote} with {circle}') |
|
| 546 | ); |
|
| 547 | ||
| 548 | throw new FakeException(); |
|
| 549 | } |
|
| 550 | ||
| 551 | ||
| 552 | /** |
|
| @@ 559-571 (lines=13) @@ | ||
| 556 | * |
|
| 557 | * @throws FakeException |
|
| 558 | */ |
|
| 559 | public function parseLinkRequestCanceling(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 560 | if ($event->getSubject() !== 'link_request_canceling') { |
|
| 561 | return; |
|
| 562 | } |
|
| 563 | ||
| 564 | $this->parseCircleEvent( |
|
| 565 | $event, $circle, $remote, |
|
| 566 | $this->l10n->t('You canceled the request to link {circle} with {remote}'), |
|
| 567 | $this->l10n->t('{author} canceled the request to link {circle} with {remote}') |
|
| 568 | ); |
|
| 569 | ||
| 570 | throw new FakeException(); |
|
| 571 | } |
|
| 572 | ||
| 573 | ||
| 574 | /** |
|
| @@ 581-593 (lines=13) @@ | ||
| 578 | * |
|
| 579 | * @throws FakeException |
|
| 580 | */ |
|
| 581 | public function parseLinkRequestAccepting(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 582 | if ($event->getSubject() !== 'link_request_accepting') { |
|
| 583 | return; |
|
| 584 | } |
|
| 585 | ||
| 586 | $this->parseCircleEvent( |
|
| 587 | $event, $circle, $remote, |
|
| 588 | $this->l10n->t('You accepted the request to link {remote} with {circle}'), |
|
| 589 | $this->l10n->t('{author} accepted the request to link {remote} with {circle}') |
|
| 590 | ); |
|
| 591 | ||
| 592 | throw new FakeException(); |
|
| 593 | } |
|
| 594 | ||
| 595 | ||
| 596 | /** |
|
| @@ 603-614 (lines=12) @@ | ||
| 600 | * |
|
| 601 | * @throws FakeException |
|
| 602 | */ |
|
| 603 | public function parseLinkUp(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 604 | if ($event->getSubject() !== 'link_up') { |
|
| 605 | return; |
|
| 606 | } |
|
| 607 | ||
| 608 | $this->parseLinkEvent( |
|
| 609 | $event, $circle, $remote, |
|
| 610 | $this->l10n->t('A link between {circle} and {remote} is now up and running') |
|
| 611 | ); |
|
| 612 | ||
| 613 | throw new FakeException(); |
|
| 614 | } |
|
| 615 | ||
| 616 | ||
| 617 | /** |
|
| @@ 624-637 (lines=14) @@ | ||
| 621 | * |
|
| 622 | * @throws FakeException |
|
| 623 | */ |
|
| 624 | public function parseLinkDown(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 625 | if ($event->getSubject() !== 'link_down') { |
|
| 626 | return; |
|
| 627 | } |
|
| 628 | ||
| 629 | $this->parseLinkEvent( |
|
| 630 | $event, $circle, $remote, |
|
| 631 | $this->l10n->t( |
|
| 632 | 'The link between {circle} and {remote} has been shutdown remotely' |
|
| 633 | ) |
|
| 634 | ); |
|
| 635 | ||
| 636 | throw new FakeException(); |
|
| 637 | } |
|
| 638 | ||
| 639 | ||
| 640 | /** |
|
| @@ 647-659 (lines=13) @@ | ||
| 644 | * |
|
| 645 | * @throws FakeException |
|
| 646 | */ |
|
| 647 | public function parseLinkRemove(IEvent &$event, Circle $circle, FederatedLink $remote) { |
|
| 648 | if ($event->getSubject() !== 'link_remove') { |
|
| 649 | return; |
|
| 650 | } |
|
| 651 | ||
| 652 | $this->parseCircleEvent( |
|
| 653 | $event, $circle, $remote, |
|
| 654 | $this->l10n->t('You closed the link between {circle} and {remote}'), |
|
| 655 | $this->l10n->t('{author} closed the link between {circle} and {remote}') |
|
| 656 | ); |
|
| 657 | ||
| 658 | throw new FakeException(); |
|
| 659 | } |
|
| 660 | } |
|