!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/proyectos/toba_referencia/php/rest/personas/deportes/   drwxrwxr-x
Free 13.78 GB of 61.93 GB (22.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     recurso_deportes.php (1.08 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once("modelo/modelo_persona.php");

use 
SIUToba\rest\lib\rest_hidratador;
use 
SIUToba\rest\rest;


/**
 * @description Operaciones sobre Deportes de las personas
 */
class recurso_deportes implements SIUToba\rest\lib\modelable
{

    public static function 
_get_modelos()
    {
        return 
$models = array(
            
'Deporte' => array(
                
'deporte'    => array(    'type' => 'integer'),
                
'dia'        => array(    'type' => 'string'
                                        
'_mapeo' => 'dia_semana'),
                
'hora_inicio'    =>    array('type' => 'string'),
                
'hora_fin'    =>    array('type' => 'string')
            )

        );
    }

     
/**
     * Se consume en GET /personas/{id}/deportes
     * @summary Retorna todos los deportes que practica la persona.
     * @responses 200 array {"$ref":"Deporte"}
     * @responses 404 No se pudo encontrar a la persona
     */
    
function get_list($id_persona)
    {
        
//si estuviese en el padre, se llamaria como get_deportes_list
        
$deportes modelo_persona::get_deportes($id_persona);
        
$deportes_vista rest_hidratador::hidratar(current($this->_get_modelos()), $deportes);
        
rest::response()->get($deportes_vista);
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5097 ]--