Mysql __construct(
[
$option = ''], [
$type = 'product']
)
|
|
생성자
Parameters:
API Tags:
Redefinition of:
- DBClient::__construct()
Redefined in descendants as:
구현안됨
API Tags:
Information Tags:
Redefinition of:
- DBClient::bind()
- prepare된 구문을 바인딩 한다.
Redefined in descendants as:
commit
mssql은 자동으로 commit을 하기 때문에 자동commit 을 하지 않을려면 반드시 begin() 메소드를 먼저 실행해야한다.
API Tags:
Redefinition of:
- DBClient::commit()
- commit
에러 메세지 리턴
API Tags:
| Return: | 에러 메세지 |
| Access: | public |
Redefinition of:
- DBClient::error()
- 에러 리턴
Redefined in descendants as:
string escape(
string
$str
)
|
|
문자열 escape
Parameters:
|
string |
$str: |
escape 될 문자열 |
API Tags:
| Return: | escape 된 문자열 |
| Access: | public |
Redefinition of:
- DBClient::escape()
- 각각 DB별 문자열 escape
Redefined in descendants as:
구현안됨
API Tags:
Information Tags:
Redefinition of:
- DBClient::execute()
- prepare된 구문을 실행한다.
Redefined in descendants as:
array fetch(
resource
$result
)
|
|
실행된 select 쿼리에 대해서 fetch 를 통해 한 행(row)을 리턴한다.
리턴되는 값은 array('필드' => 'ㅁㅁㅁ', ...); 형태를 가진다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
API Tags:
| Return: | row 데이타 |
| Access: | public |
Redefinition of:
- DBClient::fetch()
- 레코드 가져오기
Redefined in descendants as:
메모리 해제
Parameters:
API Tags:
Redefinition of:
- DBClient::free()
- 메모리 해제
Redefined in descendants as:
string getClientEncoding(
)
|
|
클라이언트 인코딩을 얻어온다.
API Tags:
| Return: | 인코딩값, ex) utf8, euckr, latin1, ... |
| Access: | public |
int getFieldCount(
resource
$result
)
|
|
쿼리의 결과로 나온 필드의 개수를 리턴한다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
API Tags:
| Return: | 필드개수 |
| Access: | public |
Redefinition of:
- DBClient::getFieldCount()
- 필드 개수 가지고 오기
Redefined in descendants as:
string getFieldName(
resource
$result, int
$i
)
|
|
정해진 위치의 필드 이름을 얻어온다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
|
int |
$i: |
필드 위치, 처음은 0 |
API Tags:
| Return: | 필드이름 |
| Access: | public |
Redefinition of:
- DBClient::getFieldName()
- 필드 이름 가지고 오기
Redefined in descendants as:
string getFieldType(
resource
$result, int
$i
)
|
|
정해진 위치의 필드 타입을 얻어온다.
Parameters:
|
resource |
$result: |
select 결과로 나온 resource |
|
int |
$i: |
필드 위치, 처음은 0 |
API Tags:
| Return: | 필드타입 |
| Access: | public |
Redefinition of:
- DBClient::getFieldType()
- 필드 타입 가지고 오기
Redefined in descendants as:
Redefined in descendants as:
DBData getPageData(
string
$query, [int
$page = 1], [int
$count = 10], string
$baseClass
)
|
|
select 쿼리에 대해서 페이징된 DBData를 리턴한다.
Parameters:
|
string |
$query: |
select 쿼리 |
|
int |
$page: |
현재 페이지 |
|
int |
$count: |
페이지당 리스트 개수 |
|
string |
$baseClass: |
DBData 를 상속한 클래스 , 기본값 DBData |
Redefinition of:
- DBClient::getPageData()
- paging 된 DBData 얻어오기
string getTypeString(
string
$type, mixed
$value, [boolean
$is_null = false]
)
|
|
필드 타입(자료형)별 DB에 입력될 수 있는 문자열 얻어오기
Parameters:
|
string |
$type: |
타입문자열 |
|
mixed |
$value: |
입력값 |
|
boolean |
$is_null: |
널을 체크할 것인지 여부 , true 널체크, false 널 체크 안함 |
API Tags:
| Return: | 변환된 문자열 |
| Access: | public |
Redefinition of:
- DBClient::getTypeString()
- 필드 타입(자료형)별 DB에 입력될 수 있는 문자열 얻어오기
구현안됨
API Tags:
Information Tags:
Redefinition of:
- DBClient::prepare()
- prepare
Redefined in descendants as:
resource query(
string
$sql
)
|
|
일반 쿼리 실행
Parameters:
API Tags:
| Return: | 실행 resource |
| Access: | public |
Redefinition of:
- DBClient::query()
- 쿼리 실행하기
Redefined in descendants as:
기본 속성 이외의 다른속성 실행할 때
API Tags:
| See: | runOption() |
| Access: | public |
Redefinition of:
- DBClient::runOption()
- 옵션 실행
커서 이동
Parameters:
|
int |
$count: |
이동시킬 상대위치, 사직행은 0 |
API Tags:
Redefinition of:
- DBClient::seek()
- result set 이동
Redefined in descendants as:
void selectDB(
$db_name
)
|
|
DB 선택하기
Parameters:
API Tags:
Redefined in descendants as:
void setEncoding(
[$encoding
$encoding = "utf8"]
)
|
|
서버 인코딩을 설정한다.
Parameters:
|
$encoding |
$encoding: |
string 인코딩타입, 기본값 utf8, 한글은 euckr |
API Tags:
database 연결 생성
API Tags:
| Return: | 연결 resource |
| Access: | protected |
Redefinition of:
- DBClient::_connect()
- 연결 리소스 리턴
Redefined in descendants as: