コード例 #1
0
 public function reactCatalogue()
 {
     $id = Input::get('reactID');
     $isAdded = FALSE;
     if (!$isAdded) {
         $catalogue = Catalogue::find($id);
         $reas = Input::get('reactInactiveCatalogue');
         $reason = DB::table('tblReasonCatalogue')->where('strInactiveCatalogueID', '=', $reas)->delete();
         $catalogue->boolIsActive = 1;
         $catalogue->save();
         return Redirect::to('/utilities/inactiveData?successRec=true');
     } else {
         return Redirect::to('/utilities/inactiveData?successRec=false');
     }
 }
コード例 #2
0
 public static function GetByName($catalogueName)
 {
     return Catalogue::find(array('name' => $catalogueName));
 }