| @@ 26-55 (lines=30) @@ | ||
| 23 | * @subpackage includes/classes/EE_Checkin.class.php |
|
| 24 | * @author Darren Ethier |
|
| 25 | */ |
|
| 26 | class EE_Checkin extends EE_Base_Class{ |
|
| 27 | ||
| 28 | /** |
|
| 29 | * |
|
| 30 | * @param array $props_n_values incoming values |
|
| 31 | * @param string $timezone incoming timezone (if not set the timezone set for the website will be |
|
| 32 | * used.) |
|
| 33 | * @param array $date_formats incoming date_formats in an array where the first value is the |
|
| 34 | * date_format and the second value is the time format |
|
| 35 | * @return EE_Attendee |
|
| 36 | */ |
|
| 37 | public static function new_instance( $props_n_values = array(), $timezone = null, $date_formats = array() ) { |
|
| 38 | $has_object = parent::_check_for_object( $props_n_values, __CLASS__ ); |
|
| 39 | return $has_object ? $has_object : new self( $props_n_values, false, $timezone, $date_formats ); |
|
| 40 | } |
|
| 41 | ||
| 42 | ||
| 43 | ||
| 44 | /** |
|
| 45 | * @param array $props_n_values incoming values from the database |
|
| 46 | * @param string $timezone incoming timezone as set by the model. If not set the timezone for |
|
| 47 | * the website will be used. |
|
| 48 | * @return EE_Attendee |
|
| 49 | */ |
|
| 50 | public static function new_instance_from_db( $props_n_values = array(), $timezone = null ) { |
|
| 51 | return new self( $props_n_values, TRUE, $timezone ); |
|
| 52 | } |
|
| 53 | ||
| 54 | ||
| 55 | } |
|
| 56 | ||
| @@ 27-54 (lines=28) @@ | ||
| 24 | * @subpackage includes/classes/EE_Datetime_Ticket.class.php |
|
| 25 | * @author Darren Ethier |
|
| 26 | */ |
|
| 27 | class EE_Datetime_Ticket extends EE_Base_Class { |
|
| 28 | ||
| 29 | /** |
|
| 30 | * |
|
| 31 | * @param array $props_n_values incoming values |
|
| 32 | * @param string $timezone incoming timezone (if not set the timezone set for the website will be |
|
| 33 | * used.) |
|
| 34 | * @param array $date_formats incoming date_formats in an array where the first value is the |
|
| 35 | * date_format and the second value is the time format |
|
| 36 | * @return EE_Attendee |
|
| 37 | */ |
|
| 38 | public static function new_instance( $props_n_values = array(), $timezone = null, $date_formats = array() ) { |
|
| 39 | $has_object = parent::_check_for_object( $props_n_values, __CLASS__ ); |
|
| 40 | return $has_object ? $has_object : new self( $props_n_values, false, $timezone, $date_formats ); |
|
| 41 | } |
|
| 42 | ||
| 43 | ||
| 44 | ||
| 45 | /** |
|
| 46 | * @param array $props_n_values incoming values from the database |
|
| 47 | * @param string $timezone incoming timezone as set by the model. If not set the timezone for |
|
| 48 | * the website will be used. |
|
| 49 | * @return EE_Attendee |
|
| 50 | */ |
|
| 51 | public static function new_instance_from_db( $props_n_values = array(), $timezone = null ) { |
|
| 52 | return new self( $props_n_values, TRUE, $timezone ); |
|
| 53 | } |
|
| 54 | } //end EE_Datetime_Ticket class |
|
| 55 | ||
| @@ 18-41 (lines=24) @@ | ||
| 15 | * @author Darren Ethier |
|
| 16 | * @since 4.3.0 |
|
| 17 | */ |
|
| 18 | class EE_Event_Message_Template extends EE_Base_Class { |
|
| 19 | ||
| 20 | /** |
|
| 21 | * @param array $props_n_values |
|
| 22 | * @param null $timezone |
|
| 23 | * @return EE_Event_Message_Template|mixed |
|
| 24 | */ |
|
| 25 | public static function new_instance( $props_n_values = array(), $timezone = NULL ) { |
|
| 26 | $has_object = parent::_check_for_object( $props_n_values, __CLASS__, $timezone ); |
|
| 27 | return $has_object ? $has_object : new self( $props_n_values, FALSE, $timezone ); |
|
| 28 | } |
|
| 29 | ||
| 30 | ||
| 31 | ||
| 32 | /** |
|
| 33 | * @param array $props_n_values |
|
| 34 | * @param null $timezone |
|
| 35 | * @return EE_Event_Message_Template |
|
| 36 | */ |
|
| 37 | public static function new_instance_from_db ( $props_n_values = array(), $timezone = NULL ) { |
|
| 38 | return new self( $props_n_values, TRUE, $timezone ); |
|
| 39 | } |
|
| 40 | ||
| 41 | } |
|
| 42 | //end class EE_Event_Message_Template |
|
| 43 | ||
| @@ 18-41 (lines=24) @@ | ||
| 15 | * @author Darren Ethier |
|
| 16 | * @since 4.3.0 |
|
| 17 | */ |
|
| 18 | class EE_Extra_Join extends EE_Base_Class { |
|
| 19 | ||
| 20 | /** |
|
| 21 | * @param array $props_n_values |
|
| 22 | * @param null $timezone |
|
| 23 | * @return EE_Extra_Join|mixed |
|
| 24 | */ |
|
| 25 | public static function new_instance( $props_n_values = array(), $timezone = NULL ) { |
|
| 26 | $has_object = parent::_check_for_object( $props_n_values, __CLASS__, $timezone ); |
|
| 27 | return $has_object ? $has_object : new self( $props_n_values, FALSE, $timezone ); |
|
| 28 | } |
|
| 29 | ||
| 30 | ||
| 31 | ||
| 32 | /** |
|
| 33 | * @param array $props_n_values |
|
| 34 | * @param null $timezone |
|
| 35 | * @return EE_Extra_Join |
|
| 36 | */ |
|
| 37 | public static function new_instance_from_db ( $props_n_values = array(), $timezone = NULL ) { |
|
| 38 | return new self( $props_n_values, TRUE, $timezone ); |
|
| 39 | } |
|
| 40 | ||
| 41 | } |
|
| 42 | //end class EE_Extra_Join |
|
| 43 | ||