Skip to content

Commit

Permalink
v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Flo Faber committed Dec 4, 2023
1 parent 181fc1a commit 702aecb
Show file tree
Hide file tree
Showing 21 changed files with 5,122 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v1.2.2

### Fixes
* Fixed critical parsing bug when using `MPD_CMD_READ_LIST_SINGLE`.


## v1.2.1

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion docs/js/versions.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// AUTOGENERATED BY build.php!
window.versions = ["v1.2.1","v1.2.0","v1.1.1","v1.1.0","v1.1.0-rc.3","v1.1.0-rc.2","v1.1.0-rc.1","v1.0.1","v1.0.0","v1.0.0-rc.2",];
window.versions = ["v1.2.2","v1.2.1","v1.2.0","v1.1.1","v1.1.0","v1.1.0-rc.3","v1.1.0-rc.2","v1.1.0-rc.1","v1.0.1","v1.0.0","v1.0.0-rc.2",];
2 changes: 1 addition & 1 deletion docs/latest
144 changes: 144 additions & 0 deletions docs/v1.2.2/classes/Channel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>MphpD - Channel</title>
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/highlight/styles/atom-one-dark-reasonable.min.css">
<link rel="icon" href="/favicon.png" type="image/png"/>
<script src="/highlight/highlight.min.js"></script>
<meta charset="utf-8">
<meta name="description" content="MphpD - A fully-featured, dependency-free PHP library for MPD.">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="header">
<div>
<a href="/">MphpD</a>
</div>
<div id="header-right">
<span>v1.2.2</span>
<a href="/latest/overview.html">Documentation</a>
<a href="https://github.com/FloFaber/MphpD">GitHub</a>
</div>
</div>
<div id="body">
<!-- class template start -->
<h1 class="method-name">Channel</h1>
<p><p>This subclass is used for client-to-client communication over MPD</p></p>

<pre><code class="language-php">MphpD::channel(string $name) : Channel</code></pre>

<h2>Methods</h2>

<!-- method template start -->
<div class="method">
<h3 class="method-name">__construct</h3>
<p>
<p>This class is not intended for direct usage.
Use <code>MphpD::channel()</code> instead to retrieve an instance of this class.</p>
</p>

<pre><code class="language-php">Channel::__construct(FloFaber\MphpD\MphpD $mphpd, string $name) : mixed</code></pre>

<h4 style="margin-top: 35px;">Parameters</h4>
<ul>
<li><h5>$mphpd</h5></li>
<li><h5>$name</h5></li>

</ul>

<h4 style="margin-top: 35px;">Returns <code>mixed</code></h4>
<p>

</p>
</div>
<!-- method template end -->
<!-- method template start -->
<div class="method">
<h3 class="method-name">subscribe</h3>
<p>
<p>Subscribe to the channel.</p>
</p>

<pre><code class="language-php">Channel::subscribe() : bool</code></pre>

<h4 style="margin-top: 35px;">Parameters</h4>
<ul>
<i>None.</i>
</ul>

<h4 style="margin-top: 35px;">Returns <code>bool</code></h4>
<p>
<p>bool <code>true</code> on success or <code>false</code> on failure.</p>
</p>
</div>
<!-- method template end -->
<!-- method template start -->
<div class="method">
<h3 class="method-name">unsubscribe</h3>
<p>
<p>Unsubscribe the channel.</p>
</p>

<pre><code class="language-php">Channel::unsubscribe() : bool</code></pre>

<h4 style="margin-top: 35px;">Parameters</h4>
<ul>
<i>None.</i>
</ul>

<h4 style="margin-top: 35px;">Returns <code>bool</code></h4>
<p>
<p>bool <code>true</code> on success or <code>false</code> on failure.</p>
</p>
</div>
<!-- method template end -->
<!-- method template start -->
<div class="method">
<h3 class="method-name">read</h3>
<p>
<p>Returns a list of the channel's messages.</p>
</p>

<pre><code class="language-php">Channel::read() : mixed</code></pre>

<h4 style="margin-top: 35px;">Parameters</h4>
<ul>
<i>None.</i>
</ul>

<h4 style="margin-top: 35px;">Returns <code>mixed</code></h4>
<p>
<p>array|false <code>array</code> containing the messages on success or <code>false</code> on failure.</p>
</p>
</div>
<!-- method template end -->
<!-- method template start -->
<div class="method">
<h3 class="method-name">send</h3>
<p>
<p>Send a message to the channel.</p>
</p>

<pre><code class="language-php">Channel::send(string $message) : bool</code></pre>

<h4 style="margin-top: 35px;">Parameters</h4>
<ul>
<li><h5>$message</h5><p>The message text.</p></li>

</ul>

<h4 style="margin-top: 35px;">Returns <code>bool</code></h4>
<p>
<p>bool <code>true</code> on success or <code>false</code> on failure.</p>
</p>
</div>
<!-- method template end -->

<!-- class template end -->
</div>
<div style="text-align: center; padding: 30px;">&copy; 2023 Florian Faber</div>
<script>hljs.highlightAll();</script>
<script type="text/javascript" src="/js/main.js"></script>
</body>
</html>
Loading

0 comments on commit 702aecb

Please sign in to comment.