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

Class: sThread_Module

Source Location: /sThread/sThread/Module.php

Class Overview


sThread package의 모듈을 관리하는 Class


Author(s):

Copyright:

  • (c) 2015 OOPS.ORG

Variables

Methods



Class Details

[line 28]
sThread package의 모듈을 관리하는 Class



Tags:

author:  JoungKyun.Kim <http://oops.org>
copyright:  (c) 2015 OOPS.ORG
link:  http://pear.oops.org/package/sThread
license:  BSD


[ Top ]


Class Variables

static $obj =

[line 30]



Tags:

access:  public

Type:   mixed


[ Top ]

static $port =

[line 31]



Tags:

access:  public

Type:   mixed


[ Top ]

static $proto =

[line 32]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method init [line 61]

static void init( )

sThread의 모듈을 등록한다.

get_ini('include_path') 의 경로 하위의 sThread/Moudles 디렉토리에 있는 모듈을 self::$obj 에 등록을 한다.

STHREAD_MODULES라는 환경변수가 있을 경우 이 환경변수에 지정된 디렉토리에 있는 모듈들도 같이 등록을 한다.

self::$port에는 module 이름을 키로 하여 모듈 포트를 저장한다.




Tags:

access:  public


[ Top ]

static method port [line 112]

static int port( string $type)

모듈 이름으로 사용할 포트를 반환



Tags:

access:  public


Parameters:

string   $type   모듈 이름

[ Top ]

static method proto [line 146]

static string proto( int $v)

포트 번호또는 모듈이름에 대한 protocol을 반환



Tags:

access:  public


Parameters:

int   $v   포트 번호 or 모듈 이름

[ Top ]

static method type [line 127]

static string type( int $port)

포트 번호를 입력 받아, 해당 포트에 대한 모듈 이름을 반환



Tags:

access:  public


Parameters:

int   $port   포트 번호

[ Top ]

constructor __construct [line 37]

sThread_Module __construct( )



[ Top ]


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