/** * setInputString * * Returns the true/false depended on wheater the string was accepted. * That a string is accepted by this method, does NOT mean that it is a valid AMF request. * * @param string $string New input string * * @author Asbjørn Sloth Tønnesen <*****@*****.**> * @return bool */ public static function setInputString($string) { if (!(is_string($string) && strlen($string) > 0)) { throw new SabreAMF_InvalidAMFException(); } self::$dataInputStream = null; self::$dataInputData = $string; return true; }