PHP 클래스 QListControl, qcodo

This object is the foundation for the ListBox, CheckBoxList, RadioButtonList and TreeNav.
상속: extends QControl
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$objItemsArray QListItem[]

공개 메소드들

메소드 설명
AddItem ( mixed $mixListItemOrName, string $strValue = null, boolean $blnSelected = null, string $strItemGroup = null, string $strOverrideParameters = null ) : QListItem Allows you to add a QListItem to the QListControl at the end of the private objItemsArray.
AddItemAt ( integer $intIndex, QListItem $objListItem ) Allows you to add a QListItem to this QListControl at a specific location in the current item array
AddItems ( array $mixItemArray, mixed $mixSelectedValues = null, string $strItemGroup = null, string $strOverrideParameters = null ) Allows you to add an array of key/value pairs to the ListControl. Convenient especially for adding a list from a type table, e.g. by passing in SomeType::$NameArray. The list of seleted values can either be an array of values, or just a single value.
CountItems ( ) : integer Returns the count of items in this QListControl
GetAllItems ( ) : QListItem[] This will return an array of ALL the QQListItems associated with this QListControl.
GetItem ( $intIndex ) Gets the ListItem at a specific location in objItemsArray
RemoveAllItems ( ) Removes all the items in objItemsArray
RemoveItem ( $intIndex ) Removes a specific ListItem at a specific location in objItemsArray
__get ( $strName )
__set ( $strName, $mixValue )

메소드 상세

AddItem() 공개 메소드

Allows you to add a QListItem to the QListControl at the end of the private objItemsArray.
public AddItem ( mixed $mixListItemOrName, string $strValue = null, boolean $blnSelected = null, string $strItemGroup = null, string $strOverrideParameters = null ) : QListItem
$mixListItemOrName mixed
$strValue string
$blnSelected boolean
$strItemGroup string
$strOverrideParameters string
리턴 QListItem

AddItemAt() 공개 메소드

Allows you to add a QListItem to this QListControl at a specific location in the current item array
public AddItemAt ( integer $intIndex, QListItem $objListItem )
$intIndex integer the index of the location to add the new item to
$objListItem QListItem the item to add

AddItems() 공개 메소드

Allows you to add an array of key/value pairs to the ListControl. Convenient especially for adding a list from a type table, e.g. by passing in SomeType::$NameArray. The list of seleted values can either be an array of values, or just a single value.
public AddItems ( array $mixItemArray, mixed $mixSelectedValues = null, string $strItemGroup = null, string $strOverrideParameters = null )
$mixItemArray array name/value pairs of QListItems to add to this QListControl
$mixSelectedValues mixed can be an array of selected values, or just an atomic value, that is selected (optional)
$strItemGroup string
$strOverrideParameters string

CountItems() 공개 메소드

Returns the count of items in this QListControl
public CountItems ( ) : integer
리턴 integer

GetAllItems() 공개 메소드

Please note that while each individual item can be altered, altering the array, itself, will not affect any change on the QListControl. So existing QQListItems may be modified, but to add / remove items from the QListControl, you should use AddItem() and RemoveItem().
public GetAllItems ( ) : QListItem[]
리턴 QListItem[]

GetItem() 공개 메소드

Gets the ListItem at a specific location in objItemsArray
public GetItem ( $intIndex )

RemoveAllItems() 공개 메소드

Removes all the items in objItemsArray
public RemoveAllItems ( )

RemoveItem() 공개 메소드

Removes a specific ListItem at a specific location in objItemsArray
public RemoveItem ( $intIndex )

__get() 공개 메소드

public __get ( $strName )

__set() 공개 메소드

public __set ( $strName, $mixValue )

프로퍼티 상세

$objItemsArray 보호되어 있는 프로퍼티

protected QListItem[] $objItemsArray
리턴 QListItem[]