Sample template. Will be ignored
user. 파일 보기 프로젝트 열기: atk4/atk4 1 사용 예제들프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$even_css_class | Used CSS class for even rows | ||
$odd_css_class | Used CSS class for odd rows | ||
$row_t | Item ($item_tag) template | ||
$sep_html | Separator | ||
$total_rows | integer | After rendering will contain data row count | |
$totals | array | boolean | Will contain accumulated totals for all fields | |
$totals_t | Template | Will be initialized to "totals" template when _addTotals() is called |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$container_tag | Template tag for container | ||
$item_tag | Template tag for item | ||
$odd_even | Is current odd or even row? | ||
$totals_type | string | Should be changed using addTotals and addGrandTotals methods only |
메소드 | 설명 | |
---|---|---|
addGrandTotals ( array $fields = UNDEFINED ) | Enable totals calculation for specified array of fields. | |
addTotals ( array $fields = UNDEFINED ) | Enable totals calculation for specified array of fields. | |
defaultTemplate ( ) : array | Default template. | |
formatRow ( ) | Format lister row. | |
formatTotalsRow ( ) | Additional formatting for Totals row. | |
init ( ) | Initialization. | |
removeTotals ( ) | Disable totals calculation. | |
render ( ) | Render lister. | |
renderDataRow ( ) | Render data row. | |
renderRows ( ) | Render lister rows. | |
renderSeparator ( ) | ||
renderTotalsRow ( ) | Render Totals row. | |
updateGrandTotals ( ) | Calculate grand totals of all rows. | |
updateTotals ( ) | Add current rendered row values to totals. |
메소드 | 설명 | |
---|---|---|
_addTotals ( array $fields = UNDEFINED, string $type = null ) | Private method to enable / disable totals calculation for specified array of fields. |
protected _addTotals ( array $fields = UNDEFINED, string $type = null ) | ||
$fields | array | optional array of fieldnames |
$type | string | type of totals calculation (null|onRender|onRequest) |
public addGrandTotals ( array $fields = UNDEFINED ) | ||
$fields | array | optional array of fieldnames |
public updateGrandTotals ( ) |
public int $total_rows | ||
리턴 | integer |
public Template $totals_t | ||
리턴 | Template |
protected string $totals_type | ||
리턴 | string |