PHP 클래스 Prado\Web\UI\ActiveControls\TActiveRepeater

TActiveRepeater represents a data bound and updatable grid control which is the active counterpart to the original {@link TRepeater} control. This component can be used in the same way as the regular datagrid, the only difference is that the active repeater uses callbacks instead of postbacks for interaction. Please refer to the original documentation of the regular counterparts for usage.
부터: 3.1.9
저자: LANDWEHR Computer und Software GmbH ([email protected])
상속: extends Prado\Web\UI\WebControls\TRepeater, implements Prado\Web\UI\ActiveControls\IActiveControl, implements Prado\Web\UI\ISurroundable
파일 보기 프로젝트 열기: pradosoft/prado

보호된 프로퍼티들

프로퍼티 타입 설명
$_surroundingTag the tag used to render the surrounding container

공개 메소드들

메소드 설명
__construct ( ) Creates a new callback control, sets the adapter to TActiveControlAdapter.
getActiveControl ( ) : TBaseActiveControl
getSurroundingTag ( ) : string Gets the tag used to render the surrounding container. Defaults to 'div'.
getSurroundingTagID ( ) : string Returns the id of the surrounding container.
render ( $writer ) Renders the repeater.
setDataSource ( $value ) Sets the data source object associated with the repeater control.
setSurroundingTag ( string $value ) Sets the tag used to render the surrounding container.

비공개 메소드들

메소드 설명
renderPager ( ) Loops through all {@link TActivePager} on the page and registers the ones which are set to paginate the repeater for rendering. This is to ensure that the connected pagers are also rendered if the data source changed.
renderRepeater ( $writer ) Renders the repeater by writing a {@link getSurroundingTag()} with the container id obtained from {@link getSurroundingTagID()} which will be called by the replacement method of the client script to update it's content.

메소드 상세

__construct() 공개 메소드

Creates a new callback control, sets the adapter to TActiveControlAdapter.
public __construct ( )

getActiveControl() 공개 메소드

public getActiveControl ( ) : TBaseActiveControl
리턴 TBaseActiveControl standard active control options.

getSurroundingTag() 공개 메소드

Gets the tag used to render the surrounding container. Defaults to 'div'.
public getSurroundingTag ( ) : string
리턴 string container tag

getSurroundingTagID() 공개 메소드

Returns the id of the surrounding container.
public getSurroundingTagID ( ) : string
리턴 string container id

render() 공개 메소드

If the repeater did not pass the prerender phase yet, it will register itself for rendering later. Else it will call the {@link renderRepeater()} method which will do the rendering of the repeater.
public render ( $writer )

setDataSource() 공개 메소드

In addition, the render method of all connected pagers is called so they get updated when the data source is changed. Also the repeater registers itself for rendering in order to get it's content replaced on client side.
public setDataSource ( $value )

setSurroundingTag() 공개 메소드

Sets the tag used to render the surrounding container.
public setSurroundingTag ( string $value )
$value string container tag

프로퍼티 상세

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

the tag used to render the surrounding container
protected $_surroundingTag