Esempio n. 1
0
 protected function onForm()
 {
     if (!($sale = $this->getSale())) {
         return null;
     }
     $peep = isset($sale->peep_id) ? $sale->peep_id : 0;
     $this->peeplist = $this->page['peeplist'] = Peep::selector($peep, array('class' => 'form-control custom-select', 'id' => 'Form-field-sale-category_id'));
     $this->sale = $this->page['sale'] = $sale;
     list($this->page['defProduct']) = explode("\n", Settings::get('products', ''));
 }
Esempio n. 2
0
 public function getDescriptionOptions()
 {
     $desc = explode("\n", Settings::get('products'));
     return array_combine($desc, $desc);
 }