Item
        
        extends Model
    
    
            
            in package
            
        
    
    
    
        
            Item Model Inherits from the Model class of Laravel
Tags
Table of Contents
- $descr : string
- $id : int
- $img : string
- $liste : mixed
- $liste_id : int
- $nom : string
- $tarif : float
- $timestamps : mixed
- $url : string
- $fillable : mixed
- $hidden : mixed
- $primaryKey : mixed
- $table : mixed
- find() :
- getReservationState() : stdClass|string
- Internal method for toJSON() method of Slim
- liste() : BelongsTo
- Get the associated list of an item
- where() :
Properties
$descr
    public
        string
    $descr
    
    
        
    
$id
    public
        int
    $id
    
    
        
    
$img
    public
        string
    $img
    
    
        
    
$liste
    public
        mixed
    $liste
    
        Goes to liste() method, eloquent relation
$liste_id
    public
        int
    $liste_id
    
    
        
    
$nom
    public
        string
    $nom
    
    
        
    
$tarif
    public
        float
    $tarif
    
    
        
    
$timestamps
    public
        mixed
    $timestamps
     = false
        
        
    
$url
    public
        string
    $url
    
    
        
    
$fillable
    protected
        mixed
    $fillable
     = ['liste_id', 'nom', 'descr', 'img', 'url', 'tarif']
        
        
    
$hidden
    protected
        mixed
    $hidden
     = ['liste', 'liste_id']
        
        
    
$primaryKey
    protected
        mixed
    $primaryKey
     = 'id'
        
        
    
$table
    protected
        mixed
    $table
     = 'item'
        
        
    
Methods
find()
    public
            static    find(int $item_id) : 
        Eloquent method
Parameters
- $item_id : int
Return values
—getReservationState()
Internal method for toJSON() method of Slim
    public
                getReservationState(Container $container, int $access_level[, bool $object = false ]) : stdClass|string
    
        Parameters
- $container : Container
- $access_level : int
- $object : bool = false
- 
                    if true, returns an object, else a string 
Return values
stdClass|string —state of the reservation, object or string
liste()
Get the associated list of an item
    public
                liste() : BelongsTo
    
    
    
        Return values
BelongsTo —liste belongsTo relation
where()
    public
            static    where(string $string, string $string1, string $string2) : 
        Eloquent method
Parameters
- $string : string
- $string1 : string
- $string2 : string