static mixed getObjValue(
object
$obj, [string
$class = 'PObject'], [
$method = "toString"]
)
|
|
객체인지 아닌지 판별해서 PObject 형 객체이면 toString() 메소드로 문자열을 반환하고 일단 자료형이면 그 형태 그대로 리턴한다
Parameters:
|
object |
$obj: |
비교할 객체 |
|
string |
$class: |
비교할 클래스, 기본값 : PObject |
|
|
$method: |
|
API Tags:
| Return: | 객체 값 |
| Access: | public |
static boolean isObject(
object
$obj, [string
$class = 'PObject']
)
|
|
객체 확인
Parameters:
|
object |
$obj: |
비교할 객체 |
|
string |
$class: |
비교할 클래스, 기본값 : PObject |
API Tags:
| Return: | true : 같음, false : 다름 |
| Access: | public |
생성자
API Tags:
Redefined in descendants as:
객체 문자열을 출력
API Tags:
Redefined in descendants as:
boolean equals(
object
$obj
)
|
|
객체 비교 (수정 필요)
Parameters:
API Tags:
| Return: | true : 같음, false : 다름 |
| Access: | public |
API Tags:
Redefined in descendants as:
객체 문자열로 변환
API Tags:
| Return: | 객체의 문자열 값 |
| Access: | public |
Redefined in descendants as:
magic methods 추가 , toString() 의 값을 그대로 리턴한다.
이 메소드를 정의 해놓으면 객체 값을 테스트 할 때
echo $object;
와 같은 형식으로 바로 볼 수 있다는 점.
API Tags:
| Return: | 객체의 문자열 값 |
| Access: | public |