diff options
| author | MaZderMind | 2015-03-30 16:20:30 +0200 | 
|---|---|---|
| committer | MaZderMind | 2015-03-30 16:20:30 +0200 | 
| commit | f7d9d592745d1cb5cb2de76ed6ae99be974f1807 (patch) | |
| tree | 0f9f77efe9efc70b3ac0404a46b249f809197922 /model/StreamList.php | |
| parent | ea4b6c7699a7fbb7be3d9e5ce86c84a36b63f569 (diff) | |
Implement MVT Pattern based on simple Config options
Diffstat (limited to 'model/StreamList.php')
| -rw-r--r-- | model/StreamList.php | 55 | 
1 files changed, 0 insertions, 55 deletions
| diff --git a/model/StreamList.php b/model/StreamList.php deleted file mode 100644 index d203a52..0000000 --- a/model/StreamList.php +++ /dev/null @@ -1,55 +0,0 @@ -<?php - -class StreamList extends ModelBase implements IteratorAggregate -{ -	private $streams = array(); - -	public function __construct($slug) -	{ -		if(! $this->has('ROOMS.'.$slug)) -			throw new NotFoundException('Room '.$slug); - -		$this->slug = $slug; -		$this->streams = array(); - -		$streams = $this->get("ROOMS.$slug.STREAMS"); -		foreach((array)$streams as $stream) { -			$this->streams[$stream] = explode('-', $stream); -		} -	} - -	public function getRoomSlug() { -		return $this->slug; -	} - -	public function getRoom() { -		return new Room($this->getRoomSlug()); -	} - -	public function getStreams() { -		return array_keys($this->streams); -	} - -	public function getIterator() { -		return new ArrayIterator($this->streams); -	} - - -	public function hasTranslation() { -	} - -	public function hasRTMP() { -	} - -	public function hasHLS() { -	} - -	public function hasWebM() { -	} - -	public function hasHD() { -	} - -	public function hasSD() { -	} -} | 
