コード例 #1
0
ファイル: Update.php プロジェクト: Aliqhuart/puzzle-wp
 protected function onGet(\Controllers\Request $input)
 {
     $id = $this->input->get('id');
     $this->data['module'] = Module::find($id);
     if (!$this->data['module']) {
         return $this->redirect($this->plugin->modules_url());
     }
     return parent::onGet($input);
 }
コード例 #2
0
ファイル: All.php プロジェクト: Aliqhuart/puzzle-wp
 protected function onGet(\Controllers\Request $input)
 {
     $this->data['orders'] = Order::orderBy('status', 'desc')->orderBy('created_at', 'asc')->paginate(25, ['*'], 'subpage');
     return parent::onGet($input);
 }
コード例 #3
0
ファイル: Create.php プロジェクト: Aliqhuart/puzzle-wp
 protected function onGet(\Controllers\Request $input)
 {
     $this->data['orders'] = Order::all();
     return parent::onGet($input);
 }
コード例 #4
0
ファイル: Create.php プロジェクト: Aliqhuart/puzzle-wp
 protected function onGet(\Controllers\Request $input)
 {
     $this->data['modules'] = Module::all();
     return parent::onGet($input);
 }
コード例 #5
0
ファイル: All.php プロジェクト: Aliqhuart/puzzle-wp
 protected function onGet(\Controllers\Request $input)
 {
     $this->data['modules'] = Module::orderBy('name')->paginate(10, ['*'], 'subpage');
     return parent::onGet($input);
 }
コード例 #6
0
ファイル: Create.php プロジェクト: Aliqhuart/puzzle-wp
 protected function onGet(\Controllers\Request $input)
 {
     $this->data['soil_types'] = Soil::all();
     return parent::onGet($input);
 }
コード例 #7
0
ファイル: All.php プロジェクト: Aliqhuart/puzzle-wp
 protected function onGet(\Controllers\Request $input)
 {
     $this->data['plants'] = Plant::orderBy('name')->paginate(25, ['*'], 'subpage');
     return parent::onGet($input);
 }
コード例 #8
0
ファイル: SoilTypes.php プロジェクト: Aliqhuart/puzzle-wp
 protected function onGet(\Illuminate\Http\Request $input)
 {
     $this->data['soil_types'] = Soil::orderBy('name')->paginate(25, ['*'], 'subpage');
     return parent::onGet($input);
 }