Sindbad~EG File Manager
<?php
class Awards extends Eloquent {
protected $primaryKey = 'award_id';
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'awards';
/**
* Sridhar On 9 Mar 2017
*
* FP get Awards details
* example : Awards::usp_get_awards(4520,null,'FP,EP')
*/
public Static function usp_get_awards($user_id,$category_id,$abs_type)
{
try
{
$user_id = !is_null($user_id) ? "'" . $user_id ."'": "null";
$category_id = !is_null($category_id) ? "'" . $category_id ."'": "null";
$abs_type = !is_null($abs_type) ? "'" . $abs_type ."'":"null";
$result = DB::select("call usp_get_awards($user_id,$category_id,$abs_type)");
//$result = DB::select("call usp_get_awards(3,81,'FP,EP')");
return $result;
} catch (Exception $e)
{
Log::error('Models: Awards -> usp_get_awards '.$e->getMessage());
return [];
}
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists