/**
  * 
  * @param type $props_n_values
  * @return EE_Answer
  */
 public static function new_instance($props_n_values = array())
 {
     $classname = __CLASS__;
     $has_object = parent::_check_for_object($props_n_values, $classname);
     //		d( $has_object );
     return $has_object ? $has_object : new self($props_n_values);
 }
 /**
  *
  * @param array  $props_n_values
  * @param string $timezone
  * @param array $date_formats incoming date formats in an array.  First value is the date_format, second is time format.
  * @return EE_Message
  */
 public static function new_instance($props_n_values = array(), $timezone = null, $date_formats = array())
 {
     $has_object = parent::_check_for_object($props_n_values, __CLASS__);
     //if object doesn't exist, let's generate a unique token on instantiation so that its available even before saving to db.
     if (!$has_object) {
         EE_Registry::instance()->load_helper('URL');
         $props_n_values['MSG_token'] = EEH_URL::generate_unique_token();
     }
     return $has_object ? $has_object : new self($props_n_values, false, $timezone, $date_formats);
 }
 /**
  *
  * @param array  $props_n_values
  * @param string $timezone
  * @return EE_Line_Item
  */
 public static function new_instance($props_n_values = array(), $timezone = '')
 {
     $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  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_Transaction
  */
 public static function new_instance($props_n_values = array(), $timezone = null, $date_formats = array())
 {
     $has_object = parent::_check_for_object($props_n_values, __CLASS__, $timezone, $date_formats);
     return $has_object ? $has_object : new self($props_n_values, false, $timezone, $date_formats);
 }
 /**
  *
  * @param array $props_n_values
  * @return EE_Currency_Payment_Method
  */
 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);
 }