PageRenderTime 690ms queryFilters 0ms Sphinxql 214ms GetByIds 439ms meta 0ms repositoryFilters 7ms languageFilters 1ms sourceFilters 1ms

15,647 results for 'php getopt' (690 ms)

Source

Language

Repository

Getopt.php https://bitbucket.org/skuda/rsslounge.git | PHP | 971 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 22191 2010-05-17 21:50:14Z jan $
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://bitbucket.org/cclearning/seaeagle3 | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 19765 2009-12-18 21:28:36Z mluiten $
21 */
244        if (!isset($_SERVER['argv'])) {
245            require_once 'Zend/Console/Getopt/Exception.php';
246            if (ini_get('register_argc_argv') == false) {
918                if (empty($flag)) {
919                    require_once 'Zend/Console/Getopt/Exception.php';
920                    throw new Zend_Console_Getopt_Exception(
924                    if (isset($this->_ruleMap[$flag])) {
925                        require_once 'Zend/Console/Getopt/Exception.php';
926                        throw new Zend_Console_Getopt_Exception(
932                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
933                        require_once 'Zend/Console/Getopt/Exception.php';
934                        throw new Zend_Console_Getopt_Exception(
Getopt.php https://bitbucket.org/ilyabazhenov/speakplace | PHP | 971 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://bitbucket.org/nosen/jelly2 | PHP | 971 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://bitbucket.org/masnug/grc276-blog-laravel | PHP | 971 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://bitbucket.org/hkurosawa/jelly2 | PHP | 971 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(
shell.controller.php https://github.com/lewisliud/myqee.git | PHP | 326 lines
129     *
130     * 与getopt()具体相似的功能,区别:在命令行中如果执行 `php index.php default test -a=1 -b=c` 这样的命令时,通过getopt()会获取参数失败,而这个方法可以正确获得相应的参数
131     *
132     * **示例:**<br/>
133     * 在默认项目Shell控制器中加入一个test控制器文件 ( `projects/default/controller_shell/test.controller.php` ) 内容为:
134     *
134     *
135     *     <?php
136     *     class Controller_Test extends Controller_Shell
157     *
158     * **通过 `php index.php default test run -f "value for f" -v -a --required value --optional="optional value" --option` 运行以上脚本会输出**
159     *
169     *
170     * @link   http://cn.php.net/getopt
171     * @param  string $options 但字符参数,只接受[a-zA-Z0-9]的参数,比如 -a, -h, -v=myvalue, -4 这样
Getopt.php https://github.com/AppStateLibrary/omeka.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/ardha2008/humhub.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/ardyaryan/git_projects.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(
Getopt.php https://github.com/arieldaud/pedidos.localhost.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/arvindjha304/myproject1.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 22191 2010-05-17 21:50:14Z jan $
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/ashish3x3/media-asset-management-system.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 22485 2010-06-25 22:54:25Z ramon $
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/asmshaon/formactive.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 22191 2010-05-17 21:50:14Z jan $
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/asmshaon/formactive.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 22191 2010-05-17 21:50:14Z jan $
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/AtelierIT/Bonaparte.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 22191 2010-05-17 21:50:14Z jan $
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/AurumGallente/Socialauth-with-zend-framework.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 22191 2010-05-17 21:50:14Z jan $
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/azhangGuidance/magento.git | PHP | 970 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 22191 2010-05-17 21:50:14Z jan $
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/azat-archive/zend-framework-1x.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/bacaphe/magento2.git | PHP | 972 lines
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Getopt.php 22191 2010-05-17 21:50:14Z jan $
21 */
246        if (!isset($_SERVER['argv'])) {
247            #require_once 'Zend/Console/Getopt/Exception.php';
248            if (ini_get('register_argc_argv') == false) {
921                if (empty($flag)) {
922                    #require_once 'Zend/Console/Getopt/Exception.php';
923                    throw new Zend_Console_Getopt_Exception(
927                    if (isset($this->_ruleMap[$flag])) {
928                        #require_once 'Zend/Console/Getopt/Exception.php';
929                        throw new Zend_Console_Getopt_Exception(
935                    if (isset($this->_rules[$flag]) || isset($this->_ruleMap[$flag])) {
936                        #require_once 'Zend/Console/Getopt/Exception.php';
937                        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