Making WordPress.org


Ignore:
Timestamp:
07/17/2024 11:19:52 AM (23 months ago)
Author:
psrpinto
Message:

Translate: Sync "Translation Events" from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/attendee/attendee.php

    r13739 r13906  
    1010    private bool $is_host;
    1111    private bool $is_new_contributor;
     12    private bool $is_remote;
    1213
    1314    /**
     
    1920     * @throws Exception
    2021     */
    21     public function __construct( int $event_id, int $user_id, bool $is_host = false, $is_new_contributor = false, array $contributed_locales = array() ) {
     22    public function __construct( int $event_id, int $user_id, bool $is_host = false, $is_new_contributor = false, array $contributed_locales = array(), $is_remote = false ) {
    2223        if ( $event_id < 1 ) {
    2324            throw new Exception( 'invalid event id' );
     
    3132        $this->is_host             = $is_host;
    3233        $this->is_new_contributor  = $is_new_contributor;
     34        $this->is_remote           = $is_remote;
    3335        $this->contributed_locales = $contributed_locales;
    3436    }
     
    5456    }
    5557
     58    public function is_remote(): bool {
     59        return $this->is_remote;
     60    }
     61
    5662    public function mark_as_host(): void {
    5763        $this->is_host = true;
     
    6672    }
    6773
     74    public function mark_as_remote_attendee(): void {
     75        $this->is_remote = true;
     76    }
     77
     78    public function mark_as_in_person_attendee(): void {
     79        $this->is_remote = false;
     80    }
     81
    6882    /**
    6983     * @return string[]
Note: See TracChangeset for help on using the changeset viewer.