12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- declare (strict_types=1);
- namespace app\dao\diy;
- use app\dao\BaseDao;
- use app\model\diy\PageLink;
- class PageLinkDao extends BaseDao
- {
-
- protected function setModel(): string
- {
- return PageLink::class;
- }
-
- public function getList(array $where, string $field = '*', int $page = 0, int $limit = 0)
- {
- return $this->search($where)->field($field)->when($page && $limit, function ($query) use ($page, $limit) {
- $query->page();
- })->order('sort desc,id asc')->select()->toArray();
- }
- }
|