Download the PHP package redgoose/paginate without Composer
On this page you can find all versions of the php package redgoose/paginate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download redgoose/paginate
More information about redgoose/paginate
Files in redgoose/paginate
Download redgoose/paginate
More information about redgoose/paginate
Files in redgoose/paginate
Vendor redgoose
Package paginate
Short Description paginate navigation class
License MIT
Homepage https://github.com/redgoose-dev/paginate
Package paginate
Short Description paginate navigation class
License MIT
Homepage https://github.com/redgoose-dev/paginate
Keywords navigationpaginate
Please rate this library. Is it a good library?
Informations about the package paginate
paginate
[1][2][3]...
형식으로 된 페이지 네비게이션을 만들어주는 도구입니다.
한번 실행으로 쉽게 페이지네이션 엘리먼트를 만들거나 객체를 만들어서 사용할 수 있습니다.
Install
다음과 같이 composer
를 통하여 패키지를 설치합니다.
composer
를 사용하지 않는다면 github
에서 소스를 다운로드 후에 /src/Paginate.php
로 사용합니다.
Usage
with composer
without composer
소스를 다운로드하고 직접 연결할때 사용하는 방법입니다.
create instance
new
키워드를 통하여 인스턴스 객체를 만들어서 사용할 수 있습니다.
Options
인스턴스 객체를 만들때 사용하는 옵션들입니다.
객체를 만드는 예제소스와 같이 object
타입의 객체값은 다음과 같습니다.
Name | Type | Default | Description |
---|---|---|---|
total | int | 0 | 데이터의 총 갯수 |
page | int | 1 | 현재 페이지의 번호 |
size | int | 10 | 한페이지에서 출력되는 데이터 갯수 |
scale | int | 10 | 총 페이지 갯수 |
params | array | null | 파라메터로 만들어지는 주소 뒤에붙는 &foo=bar 형식으로 된 url |
Methods
create instance
섹션에서 만든 $paginate
객체를 통하여 메서드를 사용할 수 있습니다.
update()
인스턴스 객체를 만들때의 설정값을 변경할 수 있습니다.
$pref
값은 Options
섹션과 같은 값을 사용합니다.
createElements()
네비게이션 엘리먼트를 만들어줍니다.
Name | Type | Default | Description |
---|---|---|---|
$classNames | array | [] | 엘리먼트 클래스 이름. 배열의 첫번째 값은 대표 이름으로 사용됩니다. |
$path | string | null | 링크 prefix |
createObject()
네비게이션 객체를 만들어줍니다.
Name | Type | Default | Description |
---|---|---|---|
$path | string | null | 링크 prefix |
객체를 만들면 다음과 같은 모습으로 객체를 리턴합니다.
All versions of paginate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2.0
The package redgoose/paginate contains the following files
Loading the files please wait ....