oGetopt
[ class tree: oGetopt ] [ index: oGetopt ] [ all elements ]

Class: oGetopt

Source Location: /oGetopt/oGetopt.php

Class Overview

ePrint
   |
   --oGetopt

Base classes for oops getopt


Variables

Methods



Class Details

[line 36]
Base classes for oops getopt



[ Top ]


Class Variables

static $longopt =

[line 55]

long 옵션 매핑 테이블



Tags:

access:  public

Type:   stdClass


[ Top ]

static $optarg =

[line 45]

현재 옵션 값



Tags:

access:  public

Type:   string


[ Top ]

static $optcmd =

[line 50]

옵션이 아닌 명령행 인자가 할당되는 배열



Tags:

access:  public

Type:   array


[ Top ]

static $optcno =

[line 60]

옵션이 아닌 명령행 인자의 수



Tags:

access:  public

Type:   integer


[ Top ]



Class Methods


static method exec [line 132]

static string exec( integer $argc, array $argv, string $optstrs)

getopt 실행



Tags:

return:  

short option을 반환.

false를 반환할 경우, getopt 수행이 완료 되었음을 의미. 잘못된 옵션이 있을 경우, 에러 메시지 출력 후 null 반환.

access:  public


Parameters:

integer   $argc   명령행 인자 수
array   $argv   명령행 인자 배열
string   $optstrs   옵션 형식. 'man 3 getopt' 참조

[ Top ]

static method init [line 105]

static void init( )

인자의 순서를 초기화



Tags:

access:  public


[ Top ]

constructor __construct [line 86]

void __construct( )



Tags:

access:  public


[ Top ]


Documentation generated on Tue, 14 May 2019 02:00:42 +0900 by phpDocumentor 1.4.4