Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:pagination

This is an old revision of the document!


Pagination

Layer: Core · Source: lib/core/Pagination.php:16 (lines 16–123)


class Pagination

Pagination class

digunakan untuk paging

Docblock Metadata

^ Tag ^ Value ^
| ''@category'' | Core Class |
| ''@author'' | Lukmanul Hakim @lokomedia |

Inheritance

No parent, interface or trait. This is a root type.

Constants (0)

None.

Properties (0)

None declared.

Methods (4)

^ Visibility ^ Method ^ Summary ^ Line ^
| public | ''getPosition()'' | Method untuk mengecek posisi data | 24 |
| public | ''totalPage()'' | Method untuk menghitung total | 45 |
| public | ''navPage()'' | (undocumented) | 52 |
| protected | ''setErrorPage()'' | (undocumented) | 105 |

getPosition()

public function getPosition($limit)

lines 24–34 (11)

Method untuk mengecek posisi data

dan halaman/order

^ Parameter ^ Type ^ Default ^ Description ^
| ''$limit'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — number

totalPage()

public function totalPage($totalData, $limit)

lines 45–48 (4)

Method untuk menghitung total

halaman/order

^ Parameter ^ Type ^ Default ^ Description ^
| ''$totalData'' | ''(untyped)'' | //required// | //none// |
| ''$limit'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — number

navPage()

public function navPage($activePage, $totalPage)

lines 52–103 (52)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$activePage'' | ''(untyped)'' | //required// | //none// |
| ''$totalPage'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

setErrorPage()

protected function setErrorPage()

lines 105–122 (18)

Takes no parameters.

Returns: (none declared)


This page is generated from source by 'tools/gendoc'. Edits will be overwritten.

scriptlog/lib/core/pagination.1790413762.txt.gz · Last modified: by admin