Esempio n. 1
0
 /**
  * Returns a ReplyBackState from a state.
  *
  * @param mixed $state
  * @return ReplyBackState
  */
 public static function FromState($state)
 {
     if (strpos($state, 'ReplyBackState') !== false) {
         return unserialize($state);
     } else {
         $s = new ReplyBackState();
         $s->SetICSState($state);
         $s->SetReplyBackState(array());
         return $s;
     }
 }