コード例 #1
0
ファイル: Invoice.php プロジェクト: firemankurt/eggs
 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', ''));
 }
コード例 #2
0
ファイル: Sale.php プロジェクト: firemankurt/eggs
 public function getDescriptionOptions()
 {
     $desc = explode("\n", Settings::get('products'));
     return array_combine($desc, $desc);
 }