Skip to content

Commit

Permalink
subiendo la clase imagen
Browse files Browse the repository at this point in the history
  • Loading branch information
ariel26 committed Feb 17, 2016
1 parent 9dd8fd2 commit 222a94c
Showing 1 changed file with 123 additions and 0 deletions.
123 changes: 123 additions & 0 deletions scripts/imagen/imagen.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?php

/**
* Este archivo representa a la clase imagen y contiene las variables y funciones necesarias para manipular dichas variables.
*
* @package RepBiologia
* @since RepBiologia 1.0
*/

class Imagen{

var $ruta; // ruta desde donde se cargara la imagen
var $rut_alumno; // rut del alumno que subio la imagen
var $descripcion_breve; // descripcion sobre la imagen subida
var $tipo_tenido; // teñido utlizado en la muestra de la imagen
var $preparacion; // define el tipo de preparacion de la muestra de la imagen
var $aumento; // define el aumento utilizado al tomar
var $ruta_dibujo; // ruta desde donde se carga el dibujo asociado a la imagen
var $fecha; // fecha en que fue subida la imagen al repositorio

function Imagen( $ruta, $rut_alumno, $descripcion_breve, $tipo_tenido, $preparacion, $aumento, $ruta_dibujo, $fecha)
{
$this->ruta = $ruta;
$this->rut_alumno = $rut_alumno;
$this->descripcion_breve = $descripcion_breve;
$this->tipo_tenido = $tipo_tenido;
$this->preparacion = $preparacion;
$this->aumento = $aumento;
$this->ruta_dibujo = $ruta_dibujo;
$this->fecha = $fecha;
}


// Aqui inician las funciones get, que nos permiten retornar el valor correspondiente a cada variable del objeto Imagen
function get_ruta()
{
return $this->ruta;
}

function get_rut()
{
return $this->rut_alumno;
}

function get_descripcion()
{
return $this->descripcion_breve;
}

function get_tenido()
{
return $this->tipo_tenido;
}

function get_preparacion()
{
return $this->preparacion;
}

function get_aumento()
{
return $this->aumento;
}

function get_ruta_dibujo()
{
return $this->ruta_dibujo;
}

function get_fecha()
{
return $this->fecha;
}

// fin de las funciones get

// Aqui inician las funciones set, en caso de ser necesario modificar alguna de las variables del objeto Imagen por si solos

function set_ruta( $ruta )
{
$this->ruta = $ruta;
}

function set_rut( $rut_alumno )
{
$this->rut_alumno = $rut_alumno;
}

function set_descripcion( $descripcion_breve )
{
$this->descripcion_breve = $descripcion_breve;
}

function set_tenido( $tipo_tenido )
{
$this->tipo_tenido = $tipo_tenido;
}

function set_preparacion( $preparacion )
{
$this->preparacion = $preparacion;
}

function set_aumento( $aumento )
{
$this->aumento = $aumento;
}

function set_ruta_dibujo( $ruta_dibujo )
{
$this->ruta_dibujo = $ruta_dibujo;
}

function set_fecha( $fecha )
{
$this->fecha = $fecha;
}

// fin de las funciones set
}

?>

0 comments on commit 222a94c

Please sign in to comment.