PageRenderTime 552ms queryFilters 17ms Sphinxql 263ms GetByIds 218ms meta 0ms repositoryFilters 33ms languageFilters 4ms sourceFilters 1ms

15,647 results for 'php getopt repo:nosen/jelly2' (552 ms)

Source

Language

Repository

zend.console.getopt.configuration.rst https://github.com/Xerkus/zf2-documentation.git | Unknown | 198 lines
1.. _zend.console.getopt.configuration:
2
5
6.. _zend.console.getopt.configuration.addrules:
7
10
11You can add more option rules in addition to those you specified in the ``Zend\Console\Getopt`` constructor, using
12the ``addRules()`` method. The argument to ``addRules()`` is the same as the first argument to the class
13constructor. It is either a string in the format of the short syntax options specification, or else an associative
14array in the format of a long syntax options specification. See :ref:`Declaring Getopt Rules
15<zend.console.getopt.rules>` for details on the syntax for specifying options.
16
17.. _zend.console.getopt.configuration.addrules.example:
18
155
156- ``Zend\Console\Getopt::CONFIG_RULEMODE`` ("ruleMode") may have values ``Zend\Console\Getopt::MODE_ZEND`` ("zend")
157  and ``Zend\Console\Getopt::MODE_GNU`` ("gnu"). It should not be necessary to use this option unless you extend
zend.console.getopt.fetching.rst https://github.com/gullij/zf2-documentation.git | Unknown | 134 lines
1.. _zend.console.getopt.fetching:
2
5
6After you have declared the options that the ``Zend\Console\Getopt`` object should recognize, and supply arguments
7from the command-line or an array, you can query the object to find out which options were specified by a user in a
10
11The parsing of the data is deferred until the first query you make against the ``Zend\Console\Getopt`` object to
12find out if an option was given, the object performs its parsing. This allows you to use several method calls to
14
15.. _zend.console.getopt.fetching.exceptions:
16
16
17Handling Getopt Exceptions
18--------------------------
20If the user gave any invalid options on the command-line, the parsing function throws a
21``Zend\Console\Getopt\Exception``. You should catch this exception in your application code. You can use the
22``parse()`` method to force the object to parse the arguments. This is useful because you can invoke ``parse()`` in
zend.console.getopt.fetching.rst https://github.com/gullij/zf2-documentation.git | Unknown | 146 lines
1.. EN-Revision: none
2.. _zend.console.getopt.fetching:
3
6
7Après avoir déclaré les options que l'objet ``Zend\Console\Getopt`` doit identifier, et fourni les arguments de
8la ligne de commande ou un tableau, vous pouvez interroger l'objet pour connaître les options indiquées par un
12L'analyse des données est reportée jusqu'à ce que vous invoquiez pour la première fois l'objet
13``Zend\Console\Getopt`` pour découvrir si une option était renseignée, l'objet exécute alors son analyse. Ceci
14permet plusieurs appels de méthode pour configurer les options, arguments, messages d'aide, et les options de
16
17.. _zend.console.getopt.fetching.exceptions:
18
18
19Manipuler les exceptions Getopt
20-------------------------------
zend.console.getopt.fetching.rst https://github.com/gullij/zf2-documentation.git | Unknown | 143 lines
1.. EN-Revision: none
2.. _zend.console.getopt.fetching:
3
6
7Nach dem Erstellen der Optionen welche das ``Zend\Console\Getopt`` Objekt erkennen sollte, und der Übergabe von
8Argumenten von der Kommandozeile oder einem Array, kann das Objekt abgefragt werden um herauszufinden welche
11
12Das Analysieren der Daten wird verzögert, bis zur ersten Abfrage die am ``Zend\Console\Getopt`` Objekt
13durchgeführt wird um herauszufinden ob eine Option angegeben wurde. Das erlaubt die Anwendung einiger
16
17.. _zend.console.getopt.fetching.exceptions:
18
18
19Handhaben von Getopt Ausnahmen
20------------------------------
dynamic-widgets.php https://bitbucket.org/Thane2376/death-edge.ru.git | PHP | 939 lines
61 * Using constants 	PODS_VERSION_FULL > mods/pods_module.php
62 * Using vars				$pod_page_exists > mods/pods_module.php, dynwid_worker.php
63**/
84	// Classes - only PHP5
85  if ( version_compare(PHP_VERSION, DW_MINIMUM_PHP, '>=') ) {
86  	 require_once(dirname(__FILE__) . '/dynwid_class.php');
562  	// As the DWMessagebox class is not loaded, we can not use it
563  	$php = version_compare(PHP_VERSION, DW_MINIMUM_PHP, '>=');
564  	$wp = version_compare($GLOBALS['wp_version'], DW_MINIMUM_WP, '>=');
609  function dynwid_init() {
610  	$php = version_compare(PHP_VERSION, DW_MINIMUM_PHP, '>=');
611  	$wp = version_compare($GLOBALS['wp_version'], DW_MINIMUM_WP, '>=');
862		if ( array_key_exists($widget_id, $DW->registered_widgets) ) {
863			echo '<a style="text-decoration:none;" title="' . __('Edit Dynamic Widgets Options', DW_L10N_DOMAIN) . '" href="themes.php?page=dynwid-config&action=edit&id=' . $widget_id . '&returnurl=widgets.php' . '">';
864			echo ( $DW->hasOptions($widget_id) ) ? __('Dynamic', DW_L10N_DOMAIN) : __('Static', DW_L10N_DOMAIN);
zend.console.getopt.rules.rst https://github.com/gullij/zf2-documentation.git | Unknown | 92 lines
14Le troisième argument du constructeur peut contenir des options de configuration pour adapter le comportement de
15``Zend\Console\Getopt``. Voir la section :ref:`Ajouter une configuration
16<zend.console.getopt.configuration.config>` pour la référence des options disponibles.
17
18.. _zend.console.getopt.rules.short:
19
22
23``Zend\Console\Getopt`` supporte une syntaxe compacte semblable à cela employée par *GNU* Getopt (voir
24`http://www.gnu.org/software/libc/manual/html_node/Getopt.html`_). Cette syntaxe supporte seulement des drapeaux
28
29.. _zend.console.getopt.rules.short.example:
30
90
91.. _`http://www.gnu.org/software/libc/manual/html_node/Getopt.html`: http://www.gnu.org/software/libc/manual/html_node/Getopt.html
92
zend.console.getopt.rules.rst https://github.com/gullij/zf2-documentation.git | Unknown | 89 lines
13The third argument of the constructor may contain an configuration options to customize the behavior of
14``Zend\Console\Getopt``. See :ref:`Adding Configuration <zend.console.getopt.configuration.config>` for reference
15on the options available.
16
17.. _zend.console.getopt.rules.short:
18
21
22``Zend\Console\Getopt`` supports a compact syntax similar to that used by *GNU* Getopt (see
23`http://www.gnu.org/software/libc/manual/html_node/Getopt.html`_. This syntax supports only single-character flags.
30
31.. code-block:: php
32   :linenos:
87
88.. _`http://www.gnu.org/software/libc/manual/html_node/Getopt.html`: http://www.gnu.org/software/libc/manual/html_node/Getopt.html
89
zend.console.getopt.rules.rst https://github.com/gullij/zf2-documentation.git | Unknown | 94 lines
15Das dritte Argument des Constructors kann Konfigurationsoptionen enthalten um das Verhalten von
16``Zend\Console\Getopt`` anzupassen. Siehe :ref:`Konfiguration hinzufügen
17<zend.console.getopt.configuration.config>` für eine Referenz der möglichen Optionen.
18
19.. _zend.console.getopt.rules.short:
20
23
24``Zend\Console\Getopt`` unterstützt eine kompakte Syntax wie Sie durch *GNU* Getopt verwendet wird (siehe
25`http://www.gnu.org/software/libc/manual/html_node/Getopt.html`_). Diese Syntax unterstützt nur Einzel-Zeichen
29
30.. _zend.console.getopt.rules.short.example:
31
92
93.. _`http://www.gnu.org/software/libc/manual/html_node/Getopt.html`: http://www.gnu.org/software/libc/manual/html_node/Getopt.html
94
zend.console.getopt.rules.rst https://github.com/Xerkus/zf2-documentation.git | Unknown | 91 lines
1.. EN-Revision: none
2.. _zend.console.getopt.rules:
3
6
7Le constructeur de la classe ``Zend\Console\Getopt`` prend un à trois arguments. Le premier argument déclare
8quelles options sont supportées par votre application. Cette classe supporte des formes de syntaxe alternatives
14Le troisième argument du constructeur peut contenir des options de configuration pour adapter le comportement de
15``Zend\Console\Getopt``. Voir la section :ref:`Ajouter une configuration
16<zend.console.getopt.configuration.config>` pour la référence des options disponibles.
17
18.. _zend.console.getopt.rules.short:
19
22
23``Zend\Console\Getopt`` supporte une syntaxe compacte semblable à cela employée par *GNU* Getopt (voir
24http://www.gnu.org/software/libc/manual/html_node/Getopt.html). Cette syntaxe supporte seulement des drapeaux
zend.console.getopt.rules.rst https://github.com/Xerkus/zf2-documentation.git | Unknown | 90 lines
1.. _zend.console.getopt.rules:
2
2
3Declaring Getopt Rules
4======================
5
6The constructor for the ``Zend\Console\Getopt`` class takes from one to three arguments. The first argument
7declares which options are supported by your application. This class supports alternative syntax forms for
13The third argument of the constructor may contain an configuration options to customize the behavior of
14``Zend\Console\Getopt``. See :ref:`Adding Configuration <zend.console.getopt.configuration.config>` for reference
15on the options available.
16
17.. _zend.console.getopt.rules.short:
18
21
22``Zend\Console\Getopt`` supports a compact syntax similar to that used by *GNU* Getopt (see
23http://www.gnu.org/software/libc/manual/html_node/Getopt.html. This syntax supports only single-character flags.
icwp-wpsf-main.php https://github.com/stackgrinder/wp-simple-firewall.git | PHP | 931 lines
326		$this->loadOptionsHandler( 'all', true );
327		$aAvailableOptions = array_merge( $this->m_oPluginMainOptions->getOptions(), $this->m_oEmailOptions->getOptions() );
328		$sMainOptions = $this->m_oPluginMainOptions->collateAllFormInputsForAllOptions();
793			</style>
794			<form id="IcwpTranslationsNotice" method="post" action="admin.php?page=<?php echo $this->getSubmenuId('firewall'); ?>&<?php echo $sMetaFlag; ?>=1">
795				<input type="hidden" value="<?php echo $sRedirectPage; ?>" name="redirect_page" id="redirect_page">
795				<input type="hidden" value="<?php echo $sRedirectPage; ?>" name="redirect_page" id="redirect_page">
796				<input type="hidden" value="1" name="<?php echo $sMetaFlag; ?>" id="<?php echo $sMetaFlag; ?>">
797				<h4 style="margin:10px 0 3px;">
821			<style>a#fromIcwp { padding: 0 5px; border-bottom: 1px dashed rgba(0,0,0,0.1); color: blue; font-weight: bold; }</style>
822			<form id="IcwpUpdateNotice" method="post" action="admin.php?page=<?php echo $this->getSubmenuId('firewall'); ?>&<?php echo $sMetaFlag; ?>=1">
823				<input type="hidden" value="<?php echo $sRedirectPage; ?>" name="redirect_page" id="redirect_page">
823				<input type="hidden" value="<?php echo $sRedirectPage; ?>" name="redirect_page" id="redirect_page">
824				<input type="hidden" value="1" name="<?php echo $sMetaFlag; ?>" id="<?php echo $sMetaFlag; ?>">
825				<p>
Getopt.php https://github.com/1012403/compa.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 23775 2011-03-01 17:25:24Z ralph $
21 */
244        if (!isset($_SERVER['argv'])) {
245            require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
919                if (empty($flag)) {
920                    require_once 'Zend/Console/Getopt/Exception.php';
921                    throw new Zend_Console_Getopt_Exception(
925                    if (isset($this->_ruleMap[$flag])) {
926                        require_once 'Zend/Console/Getopt/Exception.php';
927                        throw new Zend_Console_Getopt_Exception(
933                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
934                        require_once 'Zend/Console/Getopt/Exception.php';
935                        throw new Zend_Console_Getopt_Exception(
Getopt.php https://github.com/1shooperman/zf-tutorial.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 24593 2012-01-05 20:35:02Z matthew $
21 */
244        if (!isset($_SERVER['argv'])) {
245            require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
919                if (empty($flag)) {
920                    require_once 'Zend/Console/Getopt/Exception.php';
921                    throw new Zend_Console_Getopt_Exception(
925                    if (isset($this->_ruleMap[$flag])) {
926                        require_once 'Zend/Console/Getopt/Exception.php';
927                        throw new Zend_Console_Getopt_Exception(
933                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
934                        require_once 'Zend/Console/Getopt/Exception.php';
935                        throw new Zend_Console_Getopt_Exception(
Getopt.php https://github.com/29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/zf1.git | PHP | 992 lines
244        if (!isset($_SERVER['argv'])) {
245            require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
864                if (preg_match('/\D/', $param)) {
865                    require_once 'Zend/Console/Getopt/Exception.php';
866                    throw new Zend_Console_Getopt_Exception(
941                if (empty($flag)) {
942                    require_once 'Zend/Console/Getopt/Exception.php';
943                    throw new Zend_Console_Getopt_Exception(
947                    if (isset($this->_ruleMap[$flag])) {
948                        require_once 'Zend/Console/Getopt/Exception.php';
949                        throw new Zend_Console_Getopt_Exception(
955                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
956                        require_once 'Zend/Console/Getopt/Exception.php';
957                        throw new Zend_Console_Getopt_Exception(
Getopt.php https://github.com/aaronsteinke/Logit.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 23775 2011-03-01 17:25:24Z ralph $
21 */
244        if (!isset($_SERVER['argv'])) {
245            require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
919                if (empty($flag)) {
920                    require_once 'Zend/Console/Getopt/Exception.php';
921                    throw new Zend_Console_Getopt_Exception(
925                    if (isset($this->_ruleMap[$flag])) {
926                        require_once 'Zend/Console/Getopt/Exception.php';
927                        throw new Zend_Console_Getopt_Exception(
933                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
934                        require_once 'Zend/Console/Getopt/Exception.php';
935                        throw new Zend_Console_Getopt_Exception(
Getopt.php https://github.com/abdullah-rayeen/stuffs.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 24593 2012-01-05 20:35:02Z matthew $
21 */
244        if (!isset($_SERVER['argv'])) {
245            #require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
919                if (empty($flag)) {
920                    #require_once 'Zend/Console/Getopt/Exception.php';
921                    throw new Zend_Console_Getopt_Exception(
925                    if (isset($this->_ruleMap[$flag])) {
926                        #require_once 'Zend/Console/Getopt/Exception.php';
927                        throw new Zend_Console_Getopt_Exception(
933                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
934                        #require_once 'Zend/Console/Getopt/Exception.php';
935                        throw new Zend_Console_Getopt_Exception(
Getopt.php https://github.com/AdaptedPro/business.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 24593 2012-01-05 20:35:02Z matthew $
21 */
244        if (!isset($_SERVER['argv'])) {
245            require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
919                if (empty($flag)) {
920                    require_once 'Zend/Console/Getopt/Exception.php';
921                    throw new Zend_Console_Getopt_Exception(
925                    if (isset($this->_ruleMap[$flag])) {
926                        require_once 'Zend/Console/Getopt/Exception.php';
927                        throw new Zend_Console_Getopt_Exception(
933                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
934                        require_once 'Zend/Console/Getopt/Exception.php';
935                        throw new Zend_Console_Getopt_Exception(
Getopt.php https://github.com/adamj88/Magento-CE-Mirror.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 24593 2012-01-05 20:35:02Z matthew $
21 */
244        if (!isset($_SERVER['argv'])) {
245            #require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
919                if (empty($flag)) {
920                    #require_once 'Zend/Console/Getopt/Exception.php';
921                    throw new Zend_Console_Getopt_Exception(
925                    if (isset($this->_ruleMap[$flag])) {
926                        #require_once 'Zend/Console/Getopt/Exception.php';
927                        throw new Zend_Console_Getopt_Exception(
933                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
934                        #require_once 'Zend/Console/Getopt/Exception.php';
935                        throw new Zend_Console_Getopt_Exception(
Getopt.php https://github.com/adnamsplc/zf.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 23775 2011-03-01 17:25:24Z ralph $
21 */
244        if (!isset($_SERVER['argv'])) {
245            require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
919                if (empty($flag)) {
920                    require_once 'Zend/Console/Getopt/Exception.php';
921                    throw new Zend_Console_Getopt_Exception(
925                    if (isset($this->_ruleMap[$flag])) {
926                        require_once 'Zend/Console/Getopt/Exception.php';
927                        throw new Zend_Console_Getopt_Exception(
933                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
934                        require_once 'Zend/Console/Getopt/Exception.php';
935                        throw new Zend_Console_Getopt_Exception(
Getopt.php https://github.com/Adzhantis/task-Zend-Framework.git | PHP | 970 lines
244        if (!isset($_SERVER['argv'])) {
245            require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
842                if (preg_match('/\D/', $param)) {
843                    require_once 'Zend/Console/Getopt/Exception.php';
844                    throw new Zend_Console_Getopt_Exception(
919                if (empty($flag)) {
920                    require_once 'Zend/Console/Getopt/Exception.php';
921                    throw new Zend_Console_Getopt_Exception(
925                    if (isset($this->_ruleMap[$flag])) {
926                        require_once 'Zend/Console/Getopt/Exception.php';
927                        throw new Zend_Console_Getopt_Exception(
933                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
934                        require_once 'Zend/Console/Getopt/Exception.php';
935                        throw new Zend_Console_Getopt_Exception(
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21