phpDocumentor php-db-proc
[ class tree: php-db-proc ] [ index: php-db-proc ] [ all elements ]

Class: DBProc

Source Location: /php/db/proc/DBProc.php

Class DBProc

Descendants
Child Class Description
CubridProc Cubrid 프로시저
MssqlProc Mssql 프로시저
OracleProc 오라클 프로시저

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From PObject

PObject::__construct()
생성자
PObject::display()
객체 문자열을 출력
PObject::equals()
객체 비교 (수정 필요)
PObject::getClass()
PObject::getObjValue()
객체인지 아닌지 판별해서 PObject 형 객체이면 toString() 메소드로 문자열을 반환하고 일단 자료형이면 그 형태 그대로 리턴한다
PObject::isObject()
객체 확인
PObject::toString()
객체 문자열로 변환
PObject::__toString()
magic methods 추가 , toString() 의 값을 그대로 리턴한다.

[ Top ]
Property Summary
mixed   $_bind  
mixed   $_name  
mixed   $_option  
mixed   $_result  

[ Top ]
Method Summary
DBProc   __construct()  
void   bind()   바인딩 리스트 설정
void   execute()   프로시저 실행
mixed   get()   파라미터 변수 얻기
void   getBind()  
DBClient   getConnector()  
void   getName()  
void   getOption()  
void   getResult()  
array   gets()   파라미터 리스트 얻어오기
void   name()   프로시저 이름설정
void   set()   파라미터 변수 설정
void   setConnector()  
void   sets()   파라미터 리스트 설정

[ Top ]
Properties
mixed   $_bind = array() [line 19]
API Tags:
Access:  protected


[ Top ]
mixed   $_name [line 17]
API Tags:
Access:  protected


[ Top ]
mixed   $_option = array() [line 18]
API Tags:
Access:  protected


[ Top ]
mixed   $_result [line 20]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 24]

  DBProc __construct( $connector, [ $name = ''], [ $option = array()]  )

Parameters:
   $connector: 
   $name: 
   $option: 

API Tags:
Access:  public


Redefinition of:
PObject::__construct()
생성자

Redefined in descendants as:

[ Top ]
bind  [line 86]

  void bind( string $name, [string $type = ''], [string $output = 'in'], [int $length = -1], [mixed &$value = null], [array $option = array()]  )

바인딩 리스트 설정

Parameters:
string   $name:  바인딩 이름
string   $type:  바인딩될 타입, 데이타베이스 마다 틀림
string   $output:  output 형태, in, out, inout, return
int   $length:  데이타길이, -1은 길이제한 없음
mixed   &$value:  저장될 데이타 또는 output 변수에 저장될 데이타
array   $option:  바인딩 될때 기타 옵션 update : bool, 업데이트 필드 op : 조건제어 , "and", "or"

API Tags:
Access:  public


[ Top ]
execute  [line 125]

  void execute( )

프로시저 실행

이 클래스를 상속하는 클래스는 spExecute 메소드를 통해서 저장프로시저의 실행을 지정할 수 있습니다.


API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
get  [line 133]

  mixed get( string $name  )

파라미터 변수 얻기

Parameters:
string   $name:  파라미터 이름

API Tags:
Return:  spBind에서 설정했던 $value 값을 가지고 옵니다.
Access:  public


[ Top ]
getBind  [line 50]

  void getBind( $key, $subKey  )

Parameters:
   $key: 
   $subKey: 

API Tags:
Access:  public


[ Top ]
getConnector  [line 34]

  DBClient getConnector( )


API Tags:
Access:  public


[ Top ]
getName  [line 42]

  void getName( )


API Tags:
Access:  public


[ Top ]
getOption  [line 46]

  void getOption( [ $key = 'type']  )

Parameters:
   $key: 

API Tags:
Access:  public


[ Top ]
getResult  [line 54]

  void getResult( )


API Tags:
Access:  public


[ Top ]
gets  [line 142]

  array gets( )

파라미터 리스트 얻어오기


API Tags:
Return:  바인딩 이름에 저장된 value 값을 배열로 리턴합니다.
Access:  public


[ Top ]
name  [line 64]

  void name( string $str, [string|array $option = 'proc']  )

프로시저 이름설정

Parameters:
string   $str:  구문 or 프로시저 이름
string|array   $option:  바인딩을 생성할 옵션을 설정한다. type : 바인딩할 구문 타입, proc,sql,insert,update,delete 등으로 지원될 예정이다.

API Tags:
Access:  public


[ Top ]
set  [line 104]

  void set( string $name, mixed $value  )

파라미터 변수 설정

Parameters:
string   $name:  바인딩 이름
mixed   $value:  바인딩 이름에 저장될 데이타

API Tags:
Access:  public


[ Top ]
setConnector  [line 38]

  void setConnector( $connector  )

Parameters:
DBClient   $connector: 

API Tags:
Access:  public


[ Top ]
sets  [line 113]

  void sets( array $arr  )

파라미터 리스트 설정

Parameters:
array   $arr:  바인딩에 저장될 값을 설정 합니다.

API Tags:
Access:  public


[ Top ]

Documentation generated on Fri, 09 Apr 2010 11:57:25 +0900 by phpDocumentor 1.4.3