stream = $stream; } /** * writeAMFData * * @param mixed $data * @param int $forcetype * @return mixed */ public abstract function writeAMFData($data,$forcetype=null); /** * getStream * * @return SabreAMF_OutputStream */ public function getStream() { return $this->stream; } /** * getRemoteClassName * * @param string $localClass * @return mixed */ protected function getRemoteClassName($localClass) { return SabreAMF_ClassMapper::getRemoteClass($localClass); } /** * Checks wether the provided array has string keys and if it's not sparse. * * @param array $arr * @return bool */ protected function isPureArray(array $array ) { $i=0; foreach($array as $k=>$v) { if ( $k !== $i ) { return false; } $i++; } return true; } }