DBProc __construct(
$connector, [
$name = ''], [
$option = array()]
)
|
|
Parameters:
|
|
$connector: |
|
|
|
$name: |
|
|
|
$option: |
|
API Tags:
Redefinition of:
- PObject::__construct()
- 생성자
Redefined in descendants as:
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:
프로시저 실행
이 클래스를 상속하는 클래스는 spExecute 메소드를 통해서 저장프로시저의 실행을 지정할 수 있습니다.
API Tags:
Redefined in descendants as:
mixed get(
string
$name
)
|
|
파라미터 변수 얻기
Parameters:
API Tags:
| Return: | spBind에서 설정했던 $value 값을 가지고 옵니다. |
| Access: | public |
void getBind(
$key,
$subKey
)
|
|
Parameters:
API Tags:
void getOption(
[
$key = 'type']
)
|
|
Parameters:
API Tags:
파라미터 리스트 얻어오기
API Tags:
| Return: | 바인딩 이름에 저장된 value 값을 배열로 리턴합니다. |
| Access: | public |
void name(
string
$str, [string|array
$option = 'proc']
)
|
|
프로시저 이름설정
Parameters:
|
string |
$str: |
구문 or 프로시저 이름 |
|
string|array |
$option: |
바인딩을 생성할 옵션을 설정한다. type : 바인딩할 구문 타입, proc,sql,insert,update,delete 등으로 지원될 예정이다. |
API Tags:
void set(
string
$name, mixed
$value
)
|
|
파라미터 변수 설정
Parameters:
|
string |
$name: |
바인딩 이름 |
|
mixed |
$value: |
바인딩 이름에 저장될 데이타 |
API Tags:
void setConnector(
$connector
)
|
|
Parameters:
API Tags:
파라미터 리스트 설정
Parameters:
|
array |
$arr: |
바인딩에 저장될 값을 설정 합니다. |
API Tags: