Pili\Hub::listStreams PHP Метод

listStreams() публичный Метод

public listStreams ( $marker = NULL, $limit = NULL, $title_prefix = NULL, $status = NULL )
    public function listStreams($marker = NULL, $limit = NULL, $title_prefix = NULL, $status = NULL)
    {
        $result = Api::listStreams($this->_transport, $this->_hub, $marker, $limit, $title_prefix, $status);
        $streams = $result["items"];
        if (count($streams) > 0) {
            foreach ($streams as &$stream) {
                $stream = new Stream($this->_transport, $stream);
            }
            $result["items"] = $streams;
            unset($stream);
        }
        return $result;
    }