/** * * @param array $props_n_values incoming values * @param string $timezone incoming timezone (if not set the timezone set for the website will be * used.) * @param array $date_formats incoming date_formats in an array where the first value is the * date_format and the second value is the time format * @return EE_Registration */ public static function new_instance($props_n_values = array(), $timezone = null, $date_formats = array()) { $has_object = parent::_check_for_object($props_n_values, __CLASS__); return $has_object ? $has_object : new self($props_n_values, false, $timezone, $date_formats); }
/** * * @param array $props_n_values * @param string $timezone * @return EE_Datetime */ public static function new_instance($props_n_values = array(), $timezone = NULL) { $has_object = parent::_check_for_object($props_n_values, __CLASS__, $timezone); return $has_object ? $has_object : new self($props_n_values, FALSE, $timezone); }
/** * @param array $props_n_values * @return EE_Price_Type */ public static function new_instance($props_n_values = array()) { $has_object = parent::_check_for_object($props_n_values, __CLASS__); return $has_object ? $has_object : new self($props_n_values); }