コード例 #1
0
 /**
  *
  * @param type $props_n_values
  * @return EE_Person
  */
 public static function new_instance($props_n_values = array())
 {
     $classname = __CLASS__;
     $has_object = parent::_check_for_object($props_n_values, $classname);
     $obj = $has_object ? $has_object : new self($props_n_values);
     return $obj;
 }
コード例 #2
0
 /**
  *
  * @param array $props_n_values
  * @return EE_Event
  */
 public static function new_instance($props_n_values = array())
 {
     $has_object = parent::_check_for_object($props_n_values, __CLASS__);
     $obj = $has_object ? $has_object : new self($props_n_values);
     //we need to set the _timezone property to whatever is set in the db for the event initially.
     $obj->set_timezone($obj->timezone_string());
     return $obj;
 }
コード例 #3
0
 /**
  *
  * @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_Event
  */
 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);
 }
コード例 #4
0
 /**
  *
  * @param array $props_n_values
  * @return EE_Venue
  */
 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);
 }