1 <?php
2
3 namespace PLus\Orders\Repositories\Lists;
4
5
6 /**
7 * Description of DocumenttypeRepository
8 *
9 * @author Petr
10 */
11 class DocumenttypeRepository extends \PLus\Orders\Repositories\Repository {
12
13
14 function getPairData(){
15 return $this->getTable()->select('id, name')->order('name ASC')->fetchPairs('id', 'name');
16 }
17
18
19 function getGridSelection(){
20 return $this->getTable()->select('id,name')->order('name ASC');
21 }
22
23 }
24