Exemple #1
0
 public function __construct(array $params = array())
 {
     $params['collection'] = Billrun_Factory::db()->rates;
     parent::__construct($params);
     $this->search_key = "key";
     if (isset($params['showprefix'])) {
         $this->showprefix = $params['showprefix'];
         if ($this->size > 50 && $this->showprefix) {
             $this->size = 50;
         }
     } else {
         $this->showprefix = false;
     }
 }
Exemple #2
0
 public function __construct(array $params = array())
 {
     $params['collection'] = Billrun_Factory::db()->plans;
     parent::__construct($params);
     $this->search_key = "name";
 }