phpDocumentor php-ui-winbinder
[ class tree: php-ui-winbinder ] [ index: php-ui-winbinder ] [ all elements ]

Class: WBObject

Source Location: /php/ui/winbinder/WBObject.php

Class WBObject

Descendants
Child Class Description
WBTreeNode WBTreeNode
WBAccelItem AccelItem 클래스
WBComponent WBComponent
WBImage WBImage 클래스
WBMenuItem WBMenuItem
WBTimer WBTimer
WBToolBarItem WBToolBarItem

[ 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 ]
Method Summary
WBObject   __construct()   WBObject 생성자
void   addEvent()   사용자 이벤트 추가
void   fire()   이벤트 실행 출발점
void   fireEvent()   이벤트 실행
mixed   getOption()   $key 에 맞는 값 가져오기
array   getOptionList()   option list
void   initEvent()  
void   on()   addEvent() 와 같음
void   setEvent()   기본 이벤트에 해당하는 callback 함수 설정
void   setOption()   option 설정
void   setOptionList()   options 설정
mixed   __get()   $key 에 맞는 값 가져오기
void   __isset()   옵션 설정 여부 체크
void   __set()   option value 설정하기
void   __unset()   option 메모리 해제

[ Top ]
Methods
Constructor __construct  [line 26]

  WBObject __construct( [array $options = array()]  )

WBObject 생성자

내부적으로 id 속성이 지정되어 있지 않으면 id를 자동으로 생성해서 등록한다.

Parameters:
array   $options:  WBObject 에 설정될 옵션 리스트

API Tags:
Access:  public


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

Redefined in descendants as:

[ Top ]
addEvent  [line 118]

  void addEvent( string $event, string|array $function  )

사용자 이벤트 추가

Parameters:
string   $event:  이벤트 이름
string|array   $function:  callback 함수

API Tags:
Access:  public


[ Top ]
fire  [line 227]

  void fire( $eo  )

이벤트 실행 출발점

각 타입에 맞는 이벤트 재지정

Parameters:
   $eo: 

API Tags:
Access:  protected


Redefined in descendants as:

[ Top ]
fireEvent  [line 195]

  void fireEvent( )

이벤트 실행

  1.  $com->fireEvent('click'$eventObject);


API Tags:
Access:  public


[ Top ]
getOption  [line 89]

  mixed getOption( string $key  )

$key 에 맞는 값 가져오기

Parameters:
string   $key:  option key

API Tags:
Return:  option value
Access:  public


[ Top ]
getOptionList  [line 98]

  array getOptionList( )

option list


API Tags:
Access:  public


[ Top ]
initEvent  [line 44]

  void initEvent( )


API Tags:
Access:  protected


Redefined in descendants as:

[ Top ]
on  [line 128]

  void on( string $event, string|array $function  )

addEvent() 와 같음

Parameters:
string   $event:  이벤트 이름
string|array   $function:  callback 함수

API Tags:
Access:  public


[ Top ]
setEvent  [line 108]

  void setEvent( string $event, string|array $function  )

기본 이벤트에 해당하는 callback 함수 설정

Parameters:
string   $event:  이벤트 이름
string|array   $function:  callback 함수

API Tags:
Access:  public


[ Top ]
setOption  [line 68]

  void setOption( string $key, mixed $value  )

option 설정

Parameters:
string   $key:  option key
mixed   $value:  option value

API Tags:
Access:  public


[ Top ]
setOptionList  [line 77]

  void setOptionList( [array $options = array()]  )

options 설정

Parameters:
array   $options:  options

API Tags:
Access:  public


[ Top ]
__get  [line 156]

  mixed __get( string $key  )

$key 에 맞는 값 가져오기

  1. echo $obj->class;

Parameters:
string   $key:  option key

API Tags:
Return:  option value
Access:  public


[ Top ]
__isset  [line 176]

  void __isset( string $key  )

옵션 설정 여부 체크

  1.  if (isset($obj->class)) {
  2.     echo 'class 옵션이 설정되어 있음';
  3.  }

Parameters:
string   $key:  option key

API Tags:
Access:  public


[ Top ]
__set  [line 140]

  void __set( string $key, mixed $value  )

option value 설정하기

  1. $obj->class AppWindow;

Parameters:
string   $key:  option key
mixed   $value:  option value

API Tags:
Access:  public


[ Top ]
__unset  [line 185]

  void __unset( string $key  )

option 메모리 해제

Parameters:
string   $key:  option key

API Tags:
Access:  public


[ Top ]

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