| 123456789101112131415161718 |
- <?php
-
- class P2P_List {
-
- public $items;
- public $current_page = 1;
- public $total_pages = 0;
-
- function __construct( $items, $item_type ) {
- if ( is_numeric( reset( $items ) ) ) {
- // Don't wrap when we just have a list of ids
- $this->items = $items;
- } else {
- $this->items = _p2p_wrap( $items, $item_type );
- }
- }
- }
|