doc: add PHP plugin in user's guide

v2.8-utf8proc
Sébastien Helleu 2017-09-03 13:59:49 +02:00
parent baa1d5fbc9
commit 997768c4cf
37 changed files with 525 additions and 157 deletions

View File

@ -58,6 +58,8 @@
| perl | perl_script | Liste der Skripten
| php | php_script | Liste der Skripten
| python | python_script | Liste der Skripten
| relay | relay_free_port | erster freier Port für Relay-Erweiterung

View File

@ -324,6 +324,26 @@ _prev_script_   (pointer, hdata: "perl_script") +
_next_script_   (pointer, hdata: "perl_script") +
| php
| [[hdata_php_script]]<<hdata_php_script,php_script>>
| Liste der Skripten
| _scripts_ +
_last_script_ +
| _filename_   (string) +
_interpreter_   (pointer) +
_name_   (string) +
_author_   (string) +
_version_   (string) +
_license_   (string) +
_description_   (string) +
_shutdown_func_   (string) +
_charset_   (string) +
_unloading_   (integer) +
_prev_script_   (pointer, hdata: "php_script") +
_next_script_   (pointer, hdata: "php_script") +
| python
| [[hdata_python_script]]<<hdata_python_script,python_script>>
| Liste der Skripten

View File

@ -34,6 +34,8 @@
| perl | perl_script | Liste der Skripten | Skript Pointer (optional) | Name des Skriptes (Platzhalter "*" kann verwendet werden) (optional)
| php | php_script | Liste der Skripten | Skript Pointer (optional) | Name des Skriptes (Platzhalter "*" kann verwendet werden) (optional)
| python | python_script | Liste der Skripten | Skript Pointer (optional) | Name des Skriptes (Platzhalter "*" kann verwendet werden) (optional)
| relay | relay | Liste der Relay-Clients | Relay Pointer (optional) | -

View File

@ -13,6 +13,6 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, python, ruby, tcl (4000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. script (3000)
. fset (2000)

View File

@ -0,0 +1,25 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_php_php]]
* `+php+`: auflisten/installieren/beenden von Skripten
----
/php list|listfull [<name>]
load [-q] <filename>
autoload
reload|unload [-q] [<name>]
list: installierte Skripten werden aufgelistet
listfull: detaillierte Auflistung aller installierten Skripten
load: installiert ein Skript
autoload: startet automatisch alle Skripten aus dem "autoload" Verzeichnis
reload: ein Skript wird erneut gestartet (wird kein Name angegeben, dann werden alle Skripten beendet und erneut gestartet)
unload: beendet ein Skript (wird kein Name angegeben, dann werden alle Skripten beendet)
filename: Skript (Datei) welches geladen werden soll
name: Name eines Skriptes (der Name der in der "register" Funktion der Skript-API genutzt wird)
-q: unterdrückter Modus: Es werden keine Nachrichten ausgegeben
Ohne Angabe eines Argumentes listet dieser Befehl alle geladenen Skripten auf.
----

View File

@ -100,30 +100,31 @@ zu kompilieren und welche Pakete optional genutzt werden können.
[width="100%",cols="5,^3,^3,.^13",options="header"]
|===
| Paket ^(1)^ | Version | benötigt | Funktion
| Paket ^(1)^ | Version | benötigt | Funktion
| C compiler
(gcc, clang, ...) | | *ja* | zum Erstellen der Binärdatei.
| C++ compiler | | | zum Erstellen der Binärdatei und um Test auszuführen, javascript Erweiterung.
| cmake | | *ja* | zum kompilieren (autotools ist möglich. cmake wird aber empfohlen).
| pkg-config | | *ja* | entdeckt installierte Bibliotheken.
| libncursesw5-dev ^(2)^ | | *ja* | Ncurses Oberfläche.
| libcurl4-gnutls-dev | | *ja* | URL Transfer.
| zlib1g-dev | | *ja* | Kompression für Pakete, die mittels Relay- (WeeChat Protokoll), Script-Erweiterung übertragen werden.
| libgcrypt20-dev | | *ja* | Geschützte Daten, IRC SASL Authentifikation (DH-BLOWFISH/DH-AES), Skript-Erweiterung.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | SSL Verbindung zu einem IRC Server, Unterstützung von SSL in der Relay-Erweiterung, IRC SASL Authentifikation (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internationalisierung (Übersetzung der Mitteilungen; Hauptsprache ist englisch).
| ca-certificates | | | Zertifikate für SSL Verbindungen.
(gcc, clang, ...) | | *ja* | zum Erstellen der Binärdatei.
| C++ compiler | | | zum Erstellen der Binärdatei und um Test auszuführen, javascript Erweiterung.
| cmake | | *ja* | zum kompilieren (autotools ist möglich. cmake wird aber empfohlen).
| pkg-config | | *ja* | entdeckt installierte Bibliotheken.
| libncursesw5-dev ^(2)^ | | *ja* | Ncurses Oberfläche.
| libcurl4-gnutls-dev | | *ja* | URL Transfer.
| zlib1g-dev | | *ja* | Kompression für Pakete, die mittels Relay- (WeeChat Protokoll), Script-Erweiterung übertragen werden.
| libgcrypt20-dev | | *ja* | Geschützte Daten, IRC SASL Authentifikation (DH-BLOWFISH/DH-AES), Skript-Erweiterung.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | SSL Verbindung zu einem IRC Server, Unterstützung von SSL in der Relay-Erweiterung, IRC SASL Authentifikation (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internationalisierung (Übersetzung der Mitteilungen; Hauptsprache ist englisch).
| ca-certificates | | | Zertifikate für SSL Verbindungen.
| libaspell-dev
∥ libenchant-dev | | | Aspell Erweiterung.
| python-dev | ≥ 2.6 ^(4)^ | | Python Erweiterung.
| libperl-dev | | | Perl Erweiterung.
| ruby-2.3, ruby2.3-dev | ≥ 1.8 | | Ruby Erweiterung.
| liblua5.3-dev | | | Lua Erweiterung.
| tcl-dev | ≥ 8.5 | | Tcl Erweiterung.
| guile-2.0-dev | ≥ 2.0 | | Guile (scheme) Erweiterung.
| libv8-dev | ≤ 3.24.3 | | Javascript Erweiterung.
| asciidoctor | ≥ 1.5.4 | | zum Erstellen der man page und der Dokumentation.
| libcpputest-dev | ≥ 3.4 | | zum Erstellen und um Test auszuführen.
∥ libenchant-dev | | | Aspell Erweiterung.
| python-dev | ≥ 2.6 ^(4)^ | | Python Erweiterung.
| libperl-dev | | | Perl Erweiterung.
| ruby-2.3, ruby2.3-dev | ≥ 1.8 | | Ruby Erweiterung.
| liblua5.3-dev | | | Lua Erweiterung.
| tcl-dev | ≥ 8.5 | | Tcl Erweiterung.
| guile-2.0-dev | ≥ 2.0 | | Guile (scheme) Erweiterung.
| libv8-dev | ≤ 3.24.3 | | Javascript Erweiterung.
| php7.0-dev, libphp7.0-embed | ≥ 7.0 | | PHP Erweiterung.
| asciidoctor | ≥ 1.5.4 | | zum Erstellen der man page und der Dokumentation.
| libcpputest-dev | ≥ 3.4 | | zum Erstellen und um Test auszuführen.
|===
[NOTE]
@ -255,6 +256,9 @@ Liste von häufig verwendeten Optionen:
| ENABLE_PERL | `ON`, `OFF` | ON |
kompiliert <<scripts_plugins,Perl Erweiterung>>.
| ENABLE_PHP | `ON`, `OFF` | ON |
kompiliert <<scripts_plugins,PHP Erweiterung>>.
| ENABLE_PYTHON | `ON`, `OFF` | ON |
kompiliert <<scripts_plugins,Python Erweiterung>>.
@ -273,7 +277,7 @@ Liste von häufig verwendeten Optionen:
| ENABLE_SCRIPTS | `ON`, `OFF` | ON |
kompiliert <<scripts_plugins,Skripten-Erweiterungen>> (Python, Perl, Ruby,
Lua, Tcl, Guile, Javascript).
Lua, Tcl, Guile, Javascript, PHP).
| ENABLE_TCL | `ON`, `OFF` | ON |
kompiliert <<scripts_plugins,Tcl Erweiterung>>.
@ -548,6 +552,8 @@ Verzeichnisse:
|       autoload/ | Guile-Skripten die beim Start automatisch ausgeführt werden ^(1)^.
|    javascript/ | Javascript-Skripten.
|       autoload/ | Javascript-Skripten die beim Start automatisch ausgeführt werden ^(1)^.
|    php/ | PHP-Skripten.
|       autoload/ | PHP-Skripten die beim Start automatisch ausgeführt werden ^(1)^.
|===
[NOTE]
@ -2130,6 +2136,7 @@ Standarderweiterungen:
| tcl | Tcl-Skript API.
| guile | Guile(scheme)-Skript API.
| javascript | Javascript-Skript API.
| php | PHP-Skript API.
| trigger | Veränderung von Text und Ausführen von Befehlen bei einem Ereignis, welche durch WeeChat oder eine Erweiterung ausgelöst werden.
| xfer | Datentransfer und Direktchat.
|===
@ -3344,8 +3351,9 @@ include::autogen/user/relay_options.adoc[]
[[scripts_plugins]]
=== Skripten
WeeChat unterstützt sechs Skript-Erweiterungen: Python, Perl, Ruby, Lua, Tcl,
Guile (scheme) und Javascript.
// TRANSLATION MISSING
WeeChat provides 8 scripting plugins: Python, Perl, Ruby, Lua, Tcl, Guile
(scheme), Javascript and PHP.
Mit diesen Erweiterungen kann für die jeweilige Skript-Sprache, Skripten geladen, ausgeführt
und entfernt werden.
@ -3397,6 +3405,11 @@ include::autogen/user/guile_commands.adoc[]
include::autogen/user/javascript_commands.adoc[]
[[php_commands]]
==== PHP Befehle
include::autogen/user/php_commands.adoc[]
[[script_options]]
==== Script Optionen

View File

@ -101,11 +101,12 @@ PLUGIN_LIST = {
'script': 'o',
'perl': '',
'python': '',
'javascript': '',
'ruby': '',
'lua': '',
'tcl': '',
'guile': '',
'javascript': '',
'php': '',
'trigger': 'o',
'xfer': 'co',
}

View File

@ -58,6 +58,8 @@
| perl | perl_script | list of scripts
| php | php_script | list of scripts
| python | python_script | list of scripts
| relay | relay_free_port | first free port for relay plugin

View File

@ -324,6 +324,26 @@ _prev_script_   (pointer, hdata: "perl_script") +
_next_script_   (pointer, hdata: "perl_script") +
| php
| [[hdata_php_script]]<<hdata_php_script,php_script>>
| list of scripts
| _scripts_ +
_last_script_ +
| _filename_   (string) +
_interpreter_   (pointer) +
_name_   (string) +
_author_   (string) +
_version_   (string) +
_license_   (string) +
_description_   (string) +
_shutdown_func_   (string) +
_charset_   (string) +
_unloading_   (integer) +
_prev_script_   (pointer, hdata: "php_script") +
_next_script_   (pointer, hdata: "php_script") +
| python
| [[hdata_python_script]]<<hdata_python_script,python_script>>
| list of scripts

View File

@ -34,6 +34,8 @@
| perl | perl_script | list of scripts | script pointer (optional) | script name (wildcard "*" is allowed) (optional)
| php | php_script | list of scripts | script pointer (optional) | script name (wildcard "*" is allowed) (optional)
| python | python_script | list of scripts | script pointer (optional) | script name (wildcard "*" is allowed) (optional)
| relay | relay | list of relay clients | relay pointer (optional) | -

View File

@ -13,6 +13,6 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, python, ruby, tcl (4000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. script (3000)
. fset (2000)

View File

@ -0,0 +1,25 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_php_php]]
* `+php+`: list/load/unload scripts
----
/php list|listfull [<name>]
load [-q] <filename>
autoload
reload|unload [-q] [<name>]
list: list loaded scripts
listfull: list loaded scripts (verbose)
load: load a script
autoload: load all scripts in "autoload" directory
reload: reload a script (if no name given, unload all scripts, then load all scripts in "autoload" directory)
unload: unload a script (if no name given, unload all scripts)
filename: script (file) to load
name: a script name (name used in call to "register" function)
-q: quiet mode: do not display messages
Without argument, this command lists all loaded scripts.
----

View File

@ -94,30 +94,31 @@ compile WeeChat.
[width="100%",cols="5,^3,^3,.^13",options="header"]
|===
| Package ^(1)^ | Version | Required | Feature
| Package ^(1)^ | Version | Required | Feature
| C compiler
(gcc, clang, ...) | | *yes* | Build.
| C++ compiler | | | Build and run tests, javascript plugin.
| cmake | | *yes* | Build (autotools still possible, but cmake is recommended).
| pkg-config | | *yes* | Detect installed libraries.
| libncursesw5-dev ^(2)^ | | *yes* | Ncurses interface.
| libcurl4-gnutls-dev | | *yes* | URL transfer.
| zlib1g-dev | | *yes* | Compression of packets in relay plugin (weechat protocol), script plugin.
| libgcrypt20-dev | | *yes* | Secured data, IRC SASL authentication (DH-BLOWFISH/DH-AES), script plugin.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | SSL connection to IRC server, support of SSL in relay plugin, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internationalization (translation of messages; base language is English).
| ca-certificates | | | Certificates for SSL connections.
(gcc, clang, ...) | | *yes* | Build.
| C++ compiler | | | Build and run tests, javascript plugin.
| cmake | | *yes* | Build (autotools still possible, but cmake is recommended).
| pkg-config | | *yes* | Detect installed libraries.
| libncursesw5-dev ^(2)^ | | *yes* | Ncurses interface.
| libcurl4-gnutls-dev | | *yes* | URL transfer.
| zlib1g-dev | | *yes* | Compression of packets in relay plugin (weechat protocol), script plugin.
| libgcrypt20-dev | | *yes* | Secured data, IRC SASL authentication (DH-BLOWFISH/DH-AES), script plugin.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | SSL connection to IRC server, support of SSL in relay plugin, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internationalization (translation of messages; base language is English).
| ca-certificates | | | Certificates for SSL connections.
| libaspell-dev
∥ libenchant-dev | | | Aspell plugin.
| python-dev | ≥ 2.6 ^(4)^ | | Python plugin.
| libperl-dev | | | Perl plugin.
| ruby-2.3, ruby2.3-dev | ≥ 1.8 | | Ruby plugin.
| liblua5.3-dev | | | Lua plugin.
| tcl-dev | ≥ 8.5 | | Tcl plugin.
| guile-2.0-dev | ≥ 2.0 | | Guile (scheme) plugin.
| libv8-dev | ≤ 3.24.3 | | Javascript plugin.
| asciidoctor | ≥ 1.5.4 | | Build man page and documentation.
| libcpputest-dev | ≥ 3.4 | | Build and run tests.
∥ libenchant-dev | | | Aspell plugin.
| python-dev | ≥ 2.6 ^(4)^ | | Python plugin.
| libperl-dev | | | Perl plugin.
| ruby-2.3, ruby2.3-dev | ≥ 1.8 | | Ruby plugin.
| liblua5.3-dev | | | Lua plugin.
| tcl-dev | ≥ 8.5 | | Tcl plugin.
| guile-2.0-dev | ≥ 2.0 | | Guile (scheme) plugin.
| libv8-dev | ≤ 3.24.3 | | Javascript plugin.
| php7.0-dev, libphp7.0-embed | ≥ 7.0 | | PHP plugin.
| asciidoctor | ≥ 1.5.4 | | Build man page and documentation.
| libcpputest-dev | ≥ 3.4 | | Build and run tests.
|===
[NOTE]
@ -247,6 +248,9 @@ List of commonly used options:
| ENABLE_PERL | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Perl plugin>>.
| ENABLE_PHP | `ON`, `OFF` | ON |
Compile <<scripts_plugins,PHP plugin>>.
| ENABLE_PYTHON | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Python plugin>>.
@ -265,7 +269,7 @@ List of commonly used options:
| ENABLE_SCRIPTS | `ON`, `OFF` | ON |
Compile <<scripts_plugins,script plugins>> (Python, Perl, Ruby, Lua, Tcl,
Guile, Javascript).
Guile, Javascript, PHP).
| ENABLE_TCL | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Tcl plugin>>.
@ -540,6 +544,8 @@ The directories are:
|       autoload/ | Guile scripts auto-loaded on startup ^(1)^.
|    javascript/ | Javascript scripts.
|       autoload/ | Javascript scripts auto-loaded on startup ^(1)^.
|    php/ | PHP scripts.
|       autoload/ | PHP scripts auto-loaded on startup ^(1)^.
|===
[NOTE]
@ -2084,6 +2090,7 @@ Default plugins are:
| tcl | Tcl scripting API.
| guile | Guile (scheme) scripting API.
| javascript | Javascript scripting API.
| php | PHP scripting API.
| trigger | Text replacement and command execution on events triggered by WeeChat/plugins.
| xfer | File transfer and direct chat.
|===
@ -3265,8 +3272,8 @@ include::autogen/user/relay_options.adoc[]
[[scripts_plugins]]
=== Scripts
WeeChat provides 7 scripting plugins: Python, Perl, Ruby, Lua, Tcl, Guile
(scheme) and Javascript.
WeeChat provides 8 scripting plugins: Python, Perl, Ruby, Lua, Tcl, Guile
(scheme), Javascript and PHP.
These plugins can load, execute and unload scripts for these languages.
Another plugin called "script" is a scripts manager and is used to load/unload
@ -3316,6 +3323,11 @@ include::autogen/user/guile_commands.adoc[]
include::autogen/user/javascript_commands.adoc[]
[[php_commands]]
==== PHP commands
include::autogen/user/php_commands.adoc[]
[[script_options]]
==== Script options

View File

@ -58,6 +58,8 @@
| perl | perl_script | liste des scripts
| php | php_script | liste des scripts
| python | python_script | liste des scripts
| relay | relay_free_port | premier port libre pour l'extension relay

View File

@ -324,6 +324,26 @@ _prev_script_   (pointer, hdata: "perl_script") +
_next_script_   (pointer, hdata: "perl_script") +
| php
| [[hdata_php_script]]<<hdata_php_script,php_script>>
| liste des scripts
| _scripts_ +
_last_script_ +
| _filename_   (string) +
_interpreter_   (pointer) +
_name_   (string) +
_author_   (string) +
_version_   (string) +
_license_   (string) +
_description_   (string) +
_shutdown_func_   (string) +
_charset_   (string) +
_unloading_   (integer) +
_prev_script_   (pointer, hdata: "php_script") +
_next_script_   (pointer, hdata: "php_script") +
| python
| [[hdata_python_script]]<<hdata_python_script,python_script>>
| liste des scripts

View File

@ -34,6 +34,8 @@
| perl | perl_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (le caractère joker "*" est autorisé) (optionnel)
| php | php_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (le caractère joker "*" est autorisé) (optionnel)
| python | python_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (le caractère joker "*" est autorisé) (optionnel)
| relay | relay | liste des clients pour le relai | pointeur vers le relay (optionnel) | -

View File

@ -13,6 +13,6 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, python, ruby, tcl (4000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. script (3000)
. fset (2000)

View File

@ -0,0 +1,25 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_php_php]]
* `+php+`: lister/charger/décharger des scripts
----
/php list|listfull [<nom>]
load [-q] <fichier>
autoload
reload|unload [-q] [<nom>]
list : lister les scripts chargés
listfull : lister les scripts chargés (verbeux)
load : charger un script
autoload : charger tous les scripts dans le répertoire "autoload"
reload : recharger un script (si pas de nom donné, décharger tous les scripts puis charger tous les scripts dans le répertoire "autoload")
unload : décharger un script (si pas de nom donné, décharger tous les scripts)
fichier : script (fichier) à charger
nom : nom de script (nom utilisé dans l'appel à la fonction "register")
-q : mode silencieux : ne pas afficher de messages
Sans paramètre, cette commande liste les scripts chargés.
----

View File

@ -97,30 +97,31 @@ compiler WeeChat.
[width="100%",cols="5,^3,^3,.^13",options="header"]
|===
| Paquet ^(1)^ | Version | Requis | Fonctionnalité
| Paquet ^(1)^ | Version | Requis | Fonctionnalité
| compilateur C
(gcc, clang, ...) | | *oui* | Construction.
| compilateur C++ | | | Construction et lancement des tests, extension javascript.
| cmake | | *oui* | Construction (autotools toujours possible, mais cmake est recommandé).
| pkg-config | | *oui* | Détection des bibliothèques installées.
| libncursesw5-dev ^(2)^ | | *oui* | Interface ncurses.
| libcurl4-gnutls-dev | | *oui* | Transfert d'URL.
| zlib1g-dev | | *oui* | Compression des paquets dans l'extension relay (protocole weechat), extension script.
| libgcrypt20-dev | | *oui* | Données sécurisées, authentification IRC SASL (DH-BLOWFISH/DH-AES), extension script.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | Connexion SSL au serveur IRC, support SSL dans l'extension relay, authentification IRC SASL (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internationalisation (traduction des messages; la langue de base est l'anglais).
| ca-certificates | | | Certificats pour les connexions SSL.
(gcc, clang, ...) | | *oui* | Construction.
| compilateur C++ | | | Construction et lancement des tests, extension javascript.
| cmake | | *oui* | Construction (autotools toujours possible, mais cmake est recommandé).
| pkg-config | | *oui* | Détection des bibliothèques installées.
| libncursesw5-dev ^(2)^ | | *oui* | Interface ncurses.
| libcurl4-gnutls-dev | | *oui* | Transfert d'URL.
| zlib1g-dev | | *oui* | Compression des paquets dans l'extension relay (protocole weechat), extension script.
| libgcrypt20-dev | | *oui* | Données sécurisées, authentification IRC SASL (DH-BLOWFISH/DH-AES), extension script.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | Connexion SSL au serveur IRC, support SSL dans l'extension relay, authentification IRC SASL (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internationalisation (traduction des messages; la langue de base est l'anglais).
| ca-certificates | | | Certificats pour les connexions SSL.
| libaspell-dev
∥ libenchant-dev | | | Extension aspell.
| python-dev | ≥ 2.6 ^(4)^ | | Extension python.
| libperl-dev | | | Extension perl.
| ruby-2.3, ruby2.3-dev | ≥ 1.8 | | Extension ruby.
| liblua5.3-dev | | | Extension lua.
| tcl-dev | ≥ 8.5 | | Extension tcl.
| guile-2.0-dev | ≥ 2.0 | | Extension guile (scheme).
| libv8-dev | ≤ 3.24.3 | | Extension javascript.
| asciidoctor | ≥ 1.5.4 | | Construction de la page man et de la documentation.
| libcpputest-dev | ≥ 3.4 | | Construction et lancement des tests.
∥ libenchant-dev | | | Extension aspell.
| python-dev | ≥ 2.6 ^(4)^ | | Extension python.
| libperl-dev | | | Extension perl.
| ruby-2.3, ruby2.3-dev | ≥ 1.8 | | Extension ruby.
| liblua5.3-dev | | | Extension lua.
| tcl-dev | ≥ 8.5 | | Extension tcl.
| guile-2.0-dev | ≥ 2.0 | | Extension guile (scheme).
| libv8-dev | ≤ 3.24.3 | | Extension javascript.
| php7.0-dev, libphp7.0-embed | ≥ 7.0 | | Extension PHP.
| asciidoctor | ≥ 1.5.4 | | Construction de la page man et de la documentation.
| libcpputest-dev | ≥ 3.4 | | Construction et lancement des tests.
|===
[NOTE]
@ -251,6 +252,9 @@ Liste des options couramment utilisées :
| ENABLE_PERL | `ON`, `OFF` | ON |
Compiler <<scripts_plugins,l'extension Perl>>.
| ENABLE_PHP | `ON`, `OFF` | ON |
Compiler <<scripts_plugins,l'extension PHP>>.
| ENABLE_PYTHON | `ON`, `OFF` | ON |
Compiler <<scripts_plugins,l'extension Python>>.
@ -269,7 +273,7 @@ Liste des options couramment utilisées :
| ENABLE_SCRIPTS | `ON`, `OFF` | ON |
Compiler <<scripts_plugins,les extensions de script>> (Python, Perl, Ruby,
Lua, Tcl, Guile, Javascript).
Lua, Tcl, Guile, Javascript, PHP).
| ENABLE_TCL | `ON`, `OFF` | ON |
Compiler <<scripts_plugins,l'extension Tcl>>.
@ -551,6 +555,8 @@ Les répertoires sont :
|       autoload/ | Scripts Guile chargés automatiquement au démarrage ^(1)^.
|    javascript/ | Scripts Javascript.
|       autoload/ | Scripts Javascript chargés automatiquement au démarrage ^(1)^.
|    php/ | Scripts PHP.
|       autoload/ | Scripts PHP chargés automatiquement au démarrage ^(1)^.
|===
[NOTE]
@ -2154,6 +2160,7 @@ Les extensions par défaut sont :
| tcl | Interface (API) pour scripts Tcl.
| guile | Interface (API) pour scripts Guile (scheme).
| javascript | Interface (API) pour scripts Javascript.
| php | Interface (API) pour scripts PHP.
| trigger | Remplacement de texte et exécution de commande sur des évènements de WeeChat ou des extensions.
| xfer | Transfert de fichier et discussion directe.
|===
@ -3371,8 +3378,8 @@ include::autogen/user/relay_options.adoc[]
[[scripts_plugins]]
=== Scripts
WeeChat fournit 7 extensions pour scripts : Python, Perl, Ruby, Lua, Tcl,
Guile (scheme) et Javascript.
WeeChat fournit 8 extensions pour scripts : Python, Perl, Ruby, Lua, Tcl,
Guile (scheme), Javascript et PHP.
Ces extensions peuvent charger, exécuter et décharger des scripts pour ces
langages.
@ -3425,6 +3432,11 @@ include::autogen/user/guile_commands.adoc[]
include::autogen/user/javascript_commands.adoc[]
[[php_commands]]
==== Commandes PHP
include::autogen/user/php_commands.adoc[]
[[script_options]]
==== Options Script

View File

@ -58,6 +58,8 @@
| perl | perl_script | elenco degli script
| php | php_script | elenco degli script
| python | python_script | elenco degli script
| relay | relay_free_port | prima porta libera per il plugin relay

View File

@ -324,6 +324,26 @@ _prev_script_   (pointer, hdata: "perl_script") +
_next_script_   (pointer, hdata: "perl_script") +
| php
| [[hdata_php_script]]<<hdata_php_script,php_script>>
| elenco degli script
| _scripts_ +
_last_script_ +
| _filename_   (string) +
_interpreter_   (pointer) +
_name_   (string) +
_author_   (string) +
_version_   (string) +
_license_   (string) +
_description_   (string) +
_shutdown_func_   (string) +
_charset_   (string) +
_unloading_   (integer) +
_prev_script_   (pointer, hdata: "php_script") +
_next_script_   (pointer, hdata: "php_script") +
| python
| [[hdata_python_script]]<<hdata_python_script,python_script>>
| elenco degli script

View File

@ -34,6 +34,8 @@
| perl | perl_script | elenco degli script | puntatore allo script (opzionale) | script name (wildcard "*" is allowed) (optional)
| php | php_script | elenco degli script | puntatore allo script (opzionale) | script name (wildcard "*" is allowed) (optional)
| python | python_script | elenco degli script | puntatore allo script (opzionale) | script name (wildcard "*" is allowed) (optional)
| relay | relay | elenco di client relay | puntatore al relay (opzionale) | -

View File

@ -13,6 +13,6 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, python, ruby, tcl (4000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. script (3000)
. fset (2000)

View File

@ -0,0 +1,25 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_php_php]]
* `+php+`: elenca/carica/scarica script
----
/php list|listfull [<nome>]
load [-q] <nomefile>
autoload
reload|unload [-q][<nome>]
list: elenca i plugin caricati
listfull: elenca i plugin caricati (dettagliato)
load: carica un plugin
autoload: carica automaticamente i plugin nella directory utente o di sistema
reload: ricarica un plugin (se non specificato, scarica i plugin e li ricarica automaticamente)
unload: scarica uno o tutti i plugin
nome_file: (file) script da caricare
nome: il nome di uno script (usato nella chiamata alla funzione "register")
-q: modalità silenziosa: non mostra messaggi
Senza argomento, questo comando elenca tutti i plugin caricati.
----

View File

@ -110,38 +110,39 @@ compilare WeeChat.
[width="100%",cols="5,^3,^3,.^13",options="header"]
|===
| Pacchetto ^(1)^ | Versione | Richiesto | Caratteristica
| Pacchetto ^(1)^ | Versione | Richiesto | Caratteristica
// TRANSLATION MISSING
| C compiler
(gcc, clang, ...) | | *sì* | Build.
(gcc, clang, ...) | | *sì* | Build.
// TRANSLATION MISSING
| C++ compiler | | | Build and run tests, plugin Javascript.
| cmake | | *sì* | Compilazione (ancora possibile con autotools, ma si raccomanda cmake).
| C++ compiler | | | Build and run tests, plugin Javascript.
| cmake | | *sì* | Compilazione (ancora possibile con autotools, ma si raccomanda cmake).
// TRANSLATION MISSING
| pkg-config | | *sì* | Detect installed libraries.
| libncursesw5-dev ^(2)^ | | *sì* | Interfaccia ncurses.
| libcurl4-gnutls-dev | | *sì* | Trasferimento URL.
| pkg-config | | *sì* | Detect installed libraries.
| libncursesw5-dev ^(2)^ | | *sì* | Interfaccia ncurses.
| libcurl4-gnutls-dev | | *sì* | Trasferimento URL.
// TRANSLATION MISSING
| zlib1g-dev | | *sì* | Compression of packets in relay plugin (weechat protocol), script plugin.
| zlib1g-dev | | *sì* | Compression of packets in relay plugin (weechat protocol), script plugin.
// TRANSLATION MISSING
| libgcrypt20-dev | | *sì* | Secured data, IRC SASL authentication (DH-BLOWFISH/DH-AES), script plugin.
| libgcrypt20-dev | | *sì* | Secured data, IRC SASL authentication (DH-BLOWFISH/DH-AES), script plugin.
// TRANSLATION MISSING
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | Connessione SSL al server IRC, support of SSL in relay plugin, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internazionalizzazione (traduzione dei messaggi; la lingua base è l'inglese).
| ca-certificates | | | Certificati per le connessioni SSL.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | Connessione SSL al server IRC, support of SSL in relay plugin, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internazionalizzazione (traduzione dei messaggi; la lingua base è l'inglese).
| ca-certificates | | | Certificati per le connessioni SSL.
| libaspell-dev
∥ libenchant-dev | | | Plugin aspell.
| python-dev | ≥ 2.6 ^(4)^ | | Plugin python.
| libperl-dev | | | Plugin perl.
| ruby-2.3, ruby2.3-dev | ≥ 1.8 | | Plugin ruby.
| liblua5.3-dev | | | Plugin lua.
| tcl-dev | ≥ 8.5 | | Plugin tcl.
| guile-2.0-dev | ≥ 2.0 | | Plugin guile (scheme).
| libv8-dev | ≤ 3.24.3 | | Plugin Javascript.
∥ libenchant-dev | | | Plugin aspell.
| python-dev | ≥ 2.6 ^(4)^ | | Plugin python.
| libperl-dev | | | Plugin perl.
| ruby-2.3, ruby2.3-dev | ≥ 1.8 | | Plugin ruby.
| liblua5.3-dev | | | Plugin lua.
| tcl-dev | ≥ 8.5 | | Plugin tcl.
| guile-2.0-dev | ≥ 2.0 | | Plugin guile (scheme).
| libv8-dev | ≤ 3.24.3 | | Plugin Javascript.
| php7.0-dev, libphp7.0-embed | ≥ 7.0 | | Plugin PHP.
// TRANSLATION MISSING
| asciidoctor | ≥ 1.5.4 | | Build man page and documentation.
| asciidoctor | ≥ 1.5.4 | | Build man page and documentation.
// TRANSLATION MISSING
| libcpputest-dev | ≥ 3.4 | | Build and run tests.
| libcpputest-dev | ≥ 3.4 | | Build and run tests.
|===
// TRANSLATION MISSING (note 3)
@ -279,6 +280,9 @@ List of commonly used options:
| ENABLE_PERL | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Perl plugin>>.
| ENABLE_PHP | `ON`, `OFF` | ON |
Compile <<scripts_plugins,PHP plugin>>.
| ENABLE_PYTHON | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Python plugin>>.
@ -297,7 +301,7 @@ List of commonly used options:
| ENABLE_SCRIPTS | `ON`, `OFF` | ON |
Compile <<scripts_plugins,script plugins>> (Python, Perl, Ruby, Lua, Tcl,
Guile, Javascript).
Guile, Javascript, PHP).
| ENABLE_TCL | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Tcl plugin>>.
@ -585,6 +589,8 @@ The directories are:
|       autoload/ | Guile scripts auto-loaded on startup ^(1)^.
|    javascript/ | Javascript scripts.
|       autoload/ | Javascript scripts auto-loaded on startup ^(1)^.
|    php/ | PHP scripts.
|       autoload/ | PHP scripts auto-loaded on startup ^(1)^.
|===
[NOTE]
@ -2213,6 +2219,7 @@ I plugin predefiniti sono:
| tcl | API per lo scripting in TCL.
| guile | API per lo scripting in Guile (scheme).
| javascript | API per lo scripting in Javascript.
| php | API per lo scripting in PHP.
// TRANSLATION MISSING
| trigger | Text replacement and command execution on events triggered by WeeChat/plugins.
| xfer | Trasferimento file e chat diretta.
@ -3483,8 +3490,8 @@ include::autogen/user/relay_options.adoc[]
[[scripts_plugins]]
=== Scripts
WeeChat fornisce 7 plugin per lo scripting: Python, Perl, Ruby, Lua, Tcl, Guile
(scheme), Javascript.
WeeChat fornisce 8 plugin per lo scripting: Python, Perl, Ruby, Lua, Tcl, Guile
(scheme), Javascript, PHP.
Questi plugin possono caricare, eseguire e scaricare gli script per questi
linguaggi.
@ -3536,6 +3543,11 @@ include::autogen/user/guile_commands.adoc[]
include::autogen/user/javascript_commands.adoc[]
[[php_commands]]
==== Comandi PHP
include::autogen/user/php_commands.adoc[]
// TRANSLATION MISSING
[[script_options]]
==== Script options

View File

@ -58,6 +58,8 @@
| perl | perl_script | スクリプトのリスト
| php | php_script | スクリプトのリスト
| python | python_script | スクリプトのリスト
| relay | relay_free_port | リレープラグイン用の最初の空きポート番号

View File

@ -324,6 +324,26 @@ _prev_script_   (pointer, hdata: "perl_script") +
_next_script_   (pointer, hdata: "perl_script") +
| php
| [[hdata_php_script]]<<hdata_php_script,php_script>>
| スクリプトのリスト
| _scripts_ +
_last_script_ +
| _filename_   (string) +
_interpreter_   (pointer) +
_name_   (string) +
_author_   (string) +
_version_   (string) +
_license_   (string) +
_description_   (string) +
_shutdown_func_   (string) +
_charset_   (string) +
_unloading_   (integer) +
_prev_script_   (pointer, hdata: "php_script") +
_next_script_   (pointer, hdata: "php_script") +
| python
| [[hdata_python_script]]<<hdata_python_script,python_script>>
| スクリプトのリスト

View File

@ -34,6 +34,8 @@
| perl | perl_script | スクリプトのリスト | スクリプトポインタ (任意) | スクリプト名 (ワイルドカード "*" を使うことができます) (任意)
| php | php_script | スクリプトのリスト | スクリプトポインタ (任意) | スクリプト名 (ワイルドカード "*" を使うことができます) (任意)
| python | python_script | スクリプトのリスト | スクリプトポインタ (任意) | スクリプト名 (ワイルドカード "*" を使うことができます) (任意)
| relay | relay | リレークライアントのリスト | リレーポインタ (任意) | -

View File

@ -13,6 +13,6 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, python, ruby, tcl (4000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. script (3000)
. fset (2000)

View File

@ -0,0 +1,25 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_php_php]]
* `+php+`: スクリプトをリストアップ/ロード/アンロード
----
/php list|listfull [<name>]
load [-q] <filename>
autoload
reload|unload [-q] [<name>]
list: ロード済みスクリプトをリストアップ
listfull: ロード済みスクリプトをリストアップ (詳細)
load: スクリプトをロード
autoload: "autoload" ディレクトリに含まれる全てのスクリプトをロード
reload: スクリプトのリロード (名前を指定しなかった場合、全てのスクリプトをアンロードし、"autoload" ディレクトリに含まれる全てのスクリプトをロード)
unload: スクリプトのアンロード (名前を指定しなかった場合、全てのスクリプトをアンロード)
filename: ロードするスクリプト (ファイル)
name: スクリプト名 (名前は "register" 関数を呼び出すために使われる)
-q: 出力抑制モード: メッセージを表示しない
引数無しの場合、全てのロード済みスクリプトをリストアップします。
----

View File

@ -99,30 +99,31 @@ OS X では http://brew.sh/[Homebrew] を使ってください:
[width="100%",cols="5,^3,^3,.^13",options="header"]
|===
| パッケージ ^(1)^ | バージョン | 要件 | 機能
| パッケージ ^(1)^ | バージョン | 要件 | 機能
| C コンパイラ
(gcc, clang, ...) | | *必須* | ビルド
| C++ コンパイラ | | | ビルドとテストの実行、javascript プラグイン
| cmake | | *必須* | ビルド (autotools でも可能ですが、cmake を推奨します)
| pkg-config | | *必須* | インストール済みライブラリを検出
| libncursesw5-dev ^(2)^ | | *必須* | ncurses インターフェイス
| libcurl4-gnutls-dev | | *必須* | URL 転送
| zlib1g-dev | | *必須* | relay プラグインでパケットを圧縮 (weechat プロトコル)、スクリプトプラグイン
| libgcrypt20-dev | | *必須* | 保護データ、IRC SASL 認証 (DH-BLOWFISH/DH-AES)、スクリプトプラグイン
| libgnutls28-dev | 2.2.0 以上 ^(3)^ | | IRC サーバへの SSL 接続、IRC SASL 認証 (ECDSA-NIST256P-CHALLENGE)
| gettext | | | 国際化 (メッセージの翻訳; ベース言語は英語です)
| ca-certificates | | | SSL 接続に必要な証明書、relay プラグインで SSL サポート
(gcc, clang, ...) | | *必須* | ビルド
| C++ コンパイラ | | | ビルドとテストの実行、javascript プラグイン
| cmake | | *必須* | ビルド (autotools でも可能ですが、cmake を推奨します)
| pkg-config | | *必須* | インストール済みライブラリを検出
| libncursesw5-dev ^(2)^ | | *必須* | ncurses インターフェイス
| libcurl4-gnutls-dev | | *必須* | URL 転送
| zlib1g-dev | | *必須* | relay プラグインでパケットを圧縮 (weechat プロトコル)、スクリプトプラグイン
| libgcrypt20-dev | | *必須* | 保護データ、IRC SASL 認証 (DH-BLOWFISH/DH-AES)、スクリプトプラグイン
| libgnutls28-dev | 2.2.0 以上 ^(3)^ | | IRC サーバへの SSL 接続、IRC SASL 認証 (ECDSA-NIST256P-CHALLENGE)
| gettext | | | 国際化 (メッセージの翻訳; ベース言語は英語です)
| ca-certificates | | | SSL 接続に必要な証明書、relay プラグインで SSL サポート
| libaspell-dev
∥ libenchant-dev | | | aspell プラグイン
| python-dev | 2.6 以上 ^(4)^ | | python プラグイン
| libperl-dev | | | perl プラグイン
| ruby2.3, ruby2.3-dev | 1.8 以上 | | ruby プラグイン
| liblua5.3-dev | | | lua プラグイン
| tcl-dev | 8.5 以上 | | tcl プラグイン
| guile-2.0-dev | 2.0 以上 | | guile (scheme) プラグイン
| libv8-dev | 3.24.3 以下 | | javascript プラグイン
| asciidoctor | 1.5.4 以上 | | man ページと文書のビルド
| libcpputest-dev | 3.4 以上 | | ビルドとテストの実行
∥ libenchant-dev | | | aspell プラグイン
| python-dev | 2.6 以上 ^(4)^ | | python プラグイン
| libperl-dev | | | perl プラグイン
| ruby2.3, ruby2.3-dev | 1.8 以上 | | ruby プラグイン
| liblua5.3-dev | | | lua プラグイン
| tcl-dev | 8.5 以上 | | tcl プラグイン
| guile-2.0-dev | 2.0 以上 | | guile (scheme) プラグイン
| libv8-dev | 3.24.3 以下 | | javascript プラグイン
| php7.0-dev, libphp7.0-embed | 7.0 以上 | | PHP プラグイン
| asciidoctor | 1.5.4 以上 | | man ページと文書のビルド
| libcpputest-dev | 3.4 以上 | | ビルドとテストの実行
|===
[NOTE]
@ -251,6 +252,9 @@ cmake に対するオプションを指定するには、以下の書式を使
| ENABLE_PERL | `ON`, `OFF` | ON |
<<scripts_plugins,Perl プラグイン>>のコンパイル。
| ENABLE_PHP | `ON`, `OFF` | ON |
<<scripts_plugins,PHP プラグイン>>のコンパイル。
| ENABLE_PYTHON | `ON`, `OFF` | ON |
<<scripts_plugins,Python プラグイン>>のコンパイル。
@ -269,7 +273,7 @@ cmake に対するオプションを指定するには、以下の書式を使
| ENABLE_SCRIPTS | `ON`, `OFF` | ON |
すべての<<scripts_plugins,スクリプトプラグイン>>
(Python、Perl、Ruby、Lua、Tcl、Guile、Javascript) のコンパイル。
(Python、Perl、Ruby、Lua、Tcl、Guile、Javascript, PHP) のコンパイル。
| ENABLE_TCL | `ON`, `OFF` | ON |
<<scripts_plugins,Tcl プラグイン>>のコンパイル。
@ -543,6 +547,8 @@ _~/.weechat_ ディレクトリの中に作成されます
|       autoload/ | 起動時に自動ロードされる Guile スクリプト ^(1)^
|    javascript/ | Javascript スクリプト
|       autoload/ | 起動時に自動ロードされる Javascript スクリプト ^(1)^
|    php/ | PHP スクリプト
|       autoload/ | 起動時に自動ロードされる PHP スクリプト ^(1)^
|===
[NOTE]
@ -2083,6 +2089,7 @@ _スクリプト_ とは `/python` 等のコマンドで _python_
| tcl | Tcl スクリプト API
| guile | Guile (scheme) スクリプト API
| javascript | Javascript スクリプト API
| php | PHP スクリプト API
| trigger | WeeChat およびプラグインが発生させたイベントに対するテキスト置換とコマンド実行
| xfer | ファイル転送とダイレクトチャット
|===
@ -3259,9 +3266,9 @@ include::autogen/user/relay_options.adoc[]
[[scripts_plugins]]
=== スクリプト
WeeChat は 7 種類のスクリプトプラグインを備えています:
WeeChat は 8 種類のスクリプトプラグインを備えています:
Python、Perl、Ruby、Lua、Tcl、Guile
(scheme)、Javascript。これらのプラグインでそれぞれの言語で書かれたスクリプトのロード、実行、アンロードができます。
(scheme)、Javascript、PHP。これらのプラグインでそれぞれの言語で書かれたスクリプトのロード、実行、アンロードができます。
スクリプトマネージャを使えば、任意の言語で書かれたスクリプトをロード/アンロードしたり、WeeChat
スクリプトリポジトリ (https://weechat.org/scripts から参照可能)
@ -3310,6 +3317,11 @@ include::autogen/user/guile_commands.adoc[]
include::autogen/user/javascript_commands.adoc[]
[[php_commands]]
==== PHP コマンド
include::autogen/user/php_commands.adoc[]
[[script_options]]
==== スクリプトオプション

View File

@ -58,6 +58,8 @@
| perl | perl_script | lista skryptów
| php | php_script | lista skryptów
| python | python_script | lista skryptów
| relay | relay_free_port | pierwszy wolny port dla wtyczki relay

View File

@ -324,6 +324,26 @@ _prev_script_   (pointer, hdata: "perl_script") +
_next_script_   (pointer, hdata: "perl_script") +
| php
| [[hdata_php_script]]<<hdata_php_script,php_script>>
| lista skryptów
| _scripts_ +
_last_script_ +
| _filename_   (string) +
_interpreter_   (pointer) +
_name_   (string) +
_author_   (string) +
_version_   (string) +
_license_   (string) +
_description_   (string) +
_shutdown_func_   (string) +
_charset_   (string) +
_unloading_   (integer) +
_prev_script_   (pointer, hdata: "php_script") +
_next_script_   (pointer, hdata: "php_script") +
| python
| [[hdata_python_script]]<<hdata_python_script,python_script>>
| lista skryptów

View File

@ -34,6 +34,8 @@
| perl | perl_script | lista skryptów | wskaźnik skryptu (opcjonalne) | nazwa skryptu (wildcard "*" jest dozwolony) (opcjonalne)
| php | php_script | lista skryptów | wskaźnik skryptu (opcjonalne) | nazwa skryptu (wildcard "*" jest dozwolony) (opcjonalne)
| python | python_script | lista skryptów | wskaźnik skryptu (opcjonalne) | nazwa skryptu (wildcard "*" jest dozwolony) (opcjonalne)
| relay | relay | lista zdalnych klientów | wskaźnik relay (opcjonalny) | -

View File

@ -13,6 +13,6 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, python, ruby, tcl (4000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. script (3000)
. fset (2000)

View File

@ -0,0 +1,25 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_php_php]]
* `+php+`: list/load/unload skrypt
----
/php list|listfull [<nazwa>]
load [-q] <nazwapliku>
autoload
reload|unload [-q] [<nazwa>]
list: lista załadowanych wtyczek
listfull: lista załadowanych wtyczek (szczegółowa)
load: ładuje wtyczkę
autoload: automatycznie ładuje wtyczki w katalogu systemowym lub użytkownika
reload: przeładuje pojedynczą wtyczkę (jeśli nie podano nazwy, wyładuje wszystkie wtyczki, następnie automatycznie załaduje wtyczki)
unload: wyładowuje jedną albo wszystkie wtyczki
nazwa_pliku: skrypt (plik) do załadowania
nazwa: nazwa skryptu (nazwa użyta do wywołania funkcji "register")
-q: tryb cichy: nie wyświetla wiadomości
Bez argumentów ta komenda wyświetli wszystkie załadowane wtyczki.
----

View File

@ -100,30 +100,31 @@ WeeChat.
[width="100%",cols="5,^3,^3,.^13",options="header"]
|===
| Pakiet ^(1)^ | Wersja | Wymagany | Opis
| Pakiet ^(1)^ | Wersja | Wymagany | Opis
| kompilator C
(gcc, clang, ...) | | *tak* | Kompilacja.
| kompilator C++ | | | Kompilacja i uruchamianie testów, wtyczka javascript.
| cmake | | *tak* | Kompilacja (możliwe jest użycie autotools, jednak cmake jest zalecany).
| pkg-config | | *tak* | Wykrywa zainstalowane biblioteki.
| libncursesw5-dev ^(2)^ | | *tak* | Interfejs ncurses.
| libcurl4-gnutls-dev | | *tak* | Transfer URL.
| zlib1g-dev | | *tak* | Kompresja pakietów we wtyczce relay (protokół weechat), wtyczka script.
| libgcrypt20-dev | | *tak* | Zabezpieczone dane, uwierzytelnianie IRC SASL (DH-BLOWFISH/DH-AES), wtyczka script.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | Połączenia SSL z serwerami IRC, wsparcie dla SSL we wtyczce relay, uwierzytelnianie IRC SASL (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internacjonalizacja (tłumaczenie wiadomości; język bazowy to Angielski).
| ca-certificates | | | Certyfikaty dla połączeń SSL.
(gcc, clang, ...) | | *tak* | Kompilacja.
| kompilator C++ | | | Kompilacja i uruchamianie testów, wtyczka javascript.
| cmake | | *tak* | Kompilacja (możliwe jest użycie autotools, jednak cmake jest zalecany).
| pkg-config | | *tak* | Wykrywa zainstalowane biblioteki.
| libncursesw5-dev ^(2)^ | | *tak* | Interfejs ncurses.
| libcurl4-gnutls-dev | | *tak* | Transfer URL.
| zlib1g-dev | | *tak* | Kompresja pakietów we wtyczce relay (protokół weechat), wtyczka script.
| libgcrypt20-dev | | *tak* | Zabezpieczone dane, uwierzytelnianie IRC SASL (DH-BLOWFISH/DH-AES), wtyczka script.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | | Połączenia SSL z serwerami IRC, wsparcie dla SSL we wtyczce relay, uwierzytelnianie IRC SASL (ECDSA-NIST256P-CHALLENGE).
| gettext | | | Internacjonalizacja (tłumaczenie wiadomości; język bazowy to Angielski).
| ca-certificates | | | Certyfikaty dla połączeń SSL.
| libaspell-dev
∥ libenchant-dev | | | Wtyczka aspell.
| python-dev | ≥ 2.6 ^(4)^ | | Wtyczka python.
| libperl-dev | | | Wtyczka perl.
| ruby2.3, ruby2.3-dev | ≥ 1.8 | | Wtyczka ruby.
| liblua5.3-dev | | | Wtyczka lua.
| tcl-dev | ≥ 8.5 | | Wtyczka tcl.
| guile-2.0-dev | ≥ 2.0 | | Wtyczka guile (scheme).
| libv8-dev | ≤ 3.24.3 | | Wtyczka javascript.
| asciidoctor | ≥ 1.5.4 | | Tworzenie strony man i dokumentacji.
| libcpputest-dev | ≥ 3.4 | | Kompilacja i uruchamianie testów.
∥ libenchant-dev | | | Wtyczka aspell.
| python-dev | ≥ 2.6 ^(4)^ | | Wtyczka python.
| libperl-dev | | | Wtyczka perl.
| ruby2.3, ruby2.3-dev | ≥ 1.8 | | Wtyczka ruby.
| liblua5.3-dev | | | Wtyczka lua.
| tcl-dev | ≥ 8.5 | | Wtyczka tcl.
| guile-2.0-dev | ≥ 2.0 | | Wtyczka guile (scheme).
| libv8-dev | ≤ 3.24.3 | | Wtyczka javascript.
| php7.0-dev, libphp7.0-embed | ≥ 7.0 | | Wtyczka PHP.
| asciidoctor | ≥ 1.5.4 | | Tworzenie strony man i dokumentacji.
| libcpputest-dev | ≥ 3.4 | | Kompilacja i uruchamianie testów.
|===
[NOTE]
@ -254,6 +255,9 @@ Lista popularnych opcji:
| ENABLE_PERL | `ON`, `OFF` | ON |
Kompilacja <<scripts_plugins,wtyczki perl>>.
| ENABLE_PHP | `ON`, `OFF` | ON |
Kompilacja <<scripts_plugins,wtyczki PHP>>.
| ENABLE_PYTHON | `ON`, `OFF` | ON |
Kompilacja <<scripts_plugins,wtyczki python>>.
@ -272,7 +276,7 @@ Lista popularnych opcji:
| ENABLE_SCRIPTS | `ON`, `OFF` | ON |
Kompilacja <<scripts_plugins,wtyczek skryptowych>> (Python, Perl, Ruby, Lua,
Tcl, Guile, Javascript).
Tcl, Guile, Javascript, PHP).
| ENABLE_TCL | `ON`, `OFF` | ON |
Kompilacja <<scripts_plugins,wtyczki tcl>>.
@ -552,6 +556,8 @@ Foldery to:
|       autoload/ | skrypry guile automatycznie ładowane przy starcie ^(1)^.
|    javascript/ | Skrypty javascript.
|       autoload/ | Skrypty javascript automatycznie ładowane przy starcie ^(1)^.
|    php/ | Skrypty PHP.
|       autoload/ | Skrypty PHP automatycznie ładowane przy starcie ^(1)^.
|===
[NOTE]
@ -2111,6 +2117,7 @@ Domyślne wtyczki:
| tcl | Wsparcie dla skryptów napisanych w Tcl.
| guile | Wsparcie dla skryptów napisanych w Guile (scheme).
| javascript | Wsparcie dla skryptów napisanych w Javascript.
| php | Wsparcie dla skryptów napisanych w PHP.
| trigger | Zamiana tekstu i wykonywanie komend dla zdarzeń wywołanych przez WeeChat/wtyczki.
| xfer | Przesyłanie plików i bezpośredni chat.
|===
@ -3321,8 +3328,8 @@ include::autogen/user/relay_options.adoc[]
[[scripts_plugins]]
=== Skryptowe
WeeChat posiada 7 wtyczek skryptowych: Python, Perl, Ruby, Lua, Tcl, Guile
(scheme) i Javascript.
WeeChat posiada 8 wtyczek skryptowych: Python, Perl, Ruby, Lua, Tcl, Guile
(scheme), Javascript i PHP.
Wtyczki te potrafią ładować, wykonywać i wyładowywać skrypty w tych językach.
Inna wtyczka nazwana "script" jest managerem skryptów i jest używana do
@ -3373,6 +3380,11 @@ include::autogen/user/guile_commands.adoc[]
include::autogen/user/javascript_commands.adoc[]
[[php_commands]]
==== Komendy wtyczki php
include::autogen/user/php_commands.adoc[]
[[script_options]]
==== Opcje wtyczki script