Sindbad~EG File Manager

Current Path : /home/numerotech/public_html/livemt2023.aios-scientificcommittee.org/app/models/
Upload File :
Current File : //home/numerotech/public_html/livemt2023.aios-scientificcommittee.org/app/models/Awards.php

<?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