<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/ref.enchant.inc"; $setup = array ( 'home' => array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.enchant-broker-describe.php', 1 => 'enchant_broker_describe', 2 => 'Enumerates the Enchant providers', ), 'up' => array ( 0 => 'ref.enchant.php', 1 => 'Enchant Funktionen', ), 'prev' => array ( 0 => 'ref.enchant.php', 1 => 'Enchant Funktionen', ), 'next' => array ( 0 => 'function.enchant-broker-dict-exists.php', 1 => 'enchant_broker_dict_exists', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/enchant/functions/enchant-broker-describe.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="function.enchant-broker-describe" class="refentry"> <div class="refnamediv"> <h1 class="refname">enchant_broker_describe</h1> <p class="verinfo">(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0)</p><p class="refpurpose"><span class="refname">enchant_broker_describe</span> — <span class="dc-title">Enumerates the Enchant providers</span></p> </div> <div class="refsect1 description" id="refsect1-function.enchant-broker-describe-description"> <h3 class="title">Beschreibung</h3> <div class="methodsynopsis dc-description"> <span class="methodname"><strong>enchant_broker_describe</strong></span>(<span class="methodparam"><span class="type"><a href="class.enchantbroker.php" class="type EnchantBroker">EnchantBroker</a></span> <code class="parameter">$broker</code></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div> <p class="para rdfs-comment"> Enumerates the Enchant providers and tells you some rudimentary information about them. The same info is provided through phpinfo(). </p> </div> <div class="refsect1 parameters" id="refsect1-function.enchant-broker-describe-parameters"> <h3 class="title">Parameter-Liste</h3> <p class="para"> <dl> <dt><code class="parameter">broker</code></dt> <dd> <p class="para"> Ein Enchant-Broker, der von <span class="function"><a href="function.enchant-broker-init.php" class="function">enchant_broker_init()</a></span> zurückgegeben wird. </p> </dd> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.enchant-broker-describe-returnvalues"> <h3 class="title">Rückgabewerte</h3> <p class="para"> Returns an <a href="language.types.array.php" class="link">Array</a> of available Enchant providers with their details. </p> </div> <div class="refsect1 changelog" id="refsect1-function.enchant-broker-describe-changelog"> <h3 class="title">Changelog</h3> <table class="doctable informaltable"> <thead> <tr> <th>Version</th> <th>Beschreibung</th> </tr> </thead> <tbody class="tbody"> <tr> <td>8.0.0</td> <td> Der Parameter <code class="parameter">broker</code> erwartet nun eine <span class="classname"><a href="class.enchantbroker.php" class="classname">EnchantBroker</a></span>-Instanz; vorher wurde eine <a href="language.types.resource.php" class="link">Ressource</a> erwartet. </td> </tr> <tr> <td>8.0.0</td> <td> Prior to this version, the function returned <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure. </td> </tr> </tbody> </table> </div> <div class="refsect1 examples" id="refsect1-function.enchant-broker-describe-examples"> <h3 class="title">Beispiele</h3> <p class="para"> <div class="example" id="example-2451"> <p><strong>Beispiel #1 List the backends provided by the given broker</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br />$r </span><span style="color: #007700">= </span><span style="color: #0000BB">enchant_broker_init</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$bprovides </span><span style="color: #007700">= </span><span style="color: #0000BB">enchant_broker_describe</span><span style="color: #007700">(</span><span style="color: #0000BB">$r</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">"Current broker provides the following backend(s):\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$bprovides</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?></span></span></code></div> </div> <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:</p></div> <div class="example-contents screen"> <div class="examplescode"><pre class="examplescode">Current broker provides the following backend(s): Array ( [0] => Array ( [name] => aspell [desc] => Aspell Provider [file] => /usr/lib/enchant/libenchant_aspell.so ) [1] => Array ( [name] => hspell [desc] => Hspell Provider [file] => /usr/lib/enchant/libenchant_hspell.so ) [2] => Array ( [name] => ispell [desc] => Ispell Provider [file] => /usr/lib/enchant/libenchant_ispell.so ) [3] => Array ( [name] => myspell [desc] => Myspell Provider [file] => /usr/lib/enchant/libenchant_myspell.so ) )</pre> </div> </div> </div> </p> </div> </div><?php manual_footer($setup); ?>