- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
<?php
class ListWidget extends Widget
{
public $itemsPerPage = 10;
private static $allowedItemsPerPage = array(10);
// ...
private function getTotalPages()
{
$this->itemsPerPage = in_array($this->itemsPerPage, self::$allowedItemsPerPage) ? $this->itemsPerPage : 10;
// ...
}
}
Fike 14.07.2014 23:43 # 0
ftr 14.07.2014 23:52 # 0
Fike 15.07.2014 00:34 # +2