All pastes #2052282 Raw Edit

Mine

public text v1 · immutable
#2052282 ·published 2011-04-30 16:56 UTC
rendered paste body
<?php
include_once 'Databasequerys.class.php';



class evento{
  var $id_evento;
  var $id_usuario;
  var $fecha_creacion; // Objeto de tipo evento
  var $publicado;
  var $hora_creacion;
  var $fecha_evento;
  var $hora_evento;
 


    function setEvento($id_evento,$id_usuario,$fecha_creacion, $publicado, $hora_creacion, $fecha_evento, $hora_evento){
        $this->id_evento = $id_evento;
        $this->id_usuario = $id_usuario;
        $this->fecha_creacion = $fecha_creacion;
        $this->publicado = $publicado;
        $this->hora_creacion = $hora_creacion;
        $this->fecha_evento = $fecha_evento;
        $this->hora_evento = $hora_evento;
       
    }

    /*Getters*/
    function getIdEvento(){
        return $this->id_evento;
    }
    function getIdUsuario(){
        return $this->id_usuario;
    }
    function getFecha_creacion(){
        return $this->fecha_creacion;
    }

    function getPublicado(){
        return $this->publicado;
    }

    function getHora_creacion(){
        return $this->hora_creacion;
    }

    function getFechaEvento(){
        return $this->fecha_evento;
    }

    function getHora_evento(){
        return $this->hora_evento;
    }

    function getAllEventos($idUsuario){
        $query = new DataBaseQuerys();
        $arrayEventos = $query->getAllEventosBBDD($idUsuario);
        
    }  



}
?>