Пример #1
0
 public function edit($id)
 {
     if (is_null($this->field)) {
         return redirect('fields');
     }
     return view('fields.edit', compact_property($this, 'field'));
 }
Пример #2
0
 public function edit($id)
 {
     if (is_null($this->department)) {
         return redirect('departments');
     }
     return view('departments.edit', compact_property($this, 'department'));
 }
Пример #3
0
 public function edit($id)
 {
     if (is_null($this->workflow)) {
         return redirect('workflows');
     }
     return view('workflows.edit', compact_property($this, 'workflow'));
 }
Пример #4
0
 public function edit($id)
 {
     if (is_null($this->applications)) {
         return redirect('applications');
     }
     return view('applications.edit', compact_property($this, 'applications'));
 }
Пример #5
0
 public function edit($id)
 {
     if (is_null($this->plot)) {
         return redirect('plots');
     }
     return view('plots.edit', compact_property($this, 'plot'));
 }
Пример #6
0
 public function edit($id)
 {
     if (is_null($this->service)) {
         return redirect('services');
     }
     return view('services.edit', compact_property($this, 'service'));
 }
Пример #7
0
 public function edit($id)
 {
     if (is_null($this->domain)) {
         return redirect('domains');
     }
     return view('domains.edit', compact_property($this, 'domain'));
 }
Пример #8
0
 public function edit($id)
 {
     if (is_null($this->rulemessage)) {
         return redirect('rulemessages');
     }
     return view('rulemessages.edit', compact_property($this, 'rulemessage'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     // $this->acProject = $this->acProjectModel->find($id);
     if (is_null($this->acProject)) {
         return Redirect::route('ac_projects.index');
     }
     return view('ac_projects.edit', compact_property($this, 'acProject'));
 }
Пример #10
0
 public function edit($id)
 {
     $this->docket = \App\docket::findorFail($id);
     if (is_null($this->docket)) {
         return redirect('dockets');
     }
     return view('dockets.edit', compact_property($this, 'docket'));
 }
Пример #11
0
 public function edit($id)
 {
     $this->fee = \App\fee::findorFail($id);
     if (is_null($this->fee)) {
         return redirect('fees');
     }
     return view('fees.edit', compact_property($this, 'fee'));
 }
Пример #12
0
 public function edit($id)
 {
     $this->domainForm = \App\DomainForm::findorFail($id);
     if (is_null($this->domainForm)) {
         return redirect('forms');
     }
     return view('forms.edit', compact_property($this, 'domainForm'));
 }
Пример #13
0
 public function testCompactProperties()
 {
     $expectName = "Best movie";
     $expectPrice = "15";
     $myProduct = new AcProduct();
     $myProduct->setName($expectName);
     $myProduct->setPrice($expectPrice);
     $compactedArray = compact_property($myProduct, 'name', 'price');
     $this->assertArrayHasKey('name', $compactedArray);
     $this->assertArrayHasKey('price', $compactedArray);
     $this->assertEquals($expectName, $compactedArray['name']);
     $this->assertEquals($expectPrice, $compactedArray['price']);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $acProjectId
  * @param  int  $id
  * @return Response
  */
 public function edit($acProjectId, $id)
 {
     // $this->acTask = $this->acTaskModel->find($id);
     if (is_null($this->acTask)) {
         return redirect()->route('ac_projects.ac_tasks.index', $acProjectId);
     }
     return view('ac_tasks.edit', compact_property($this, 'acTask'));
 }