11.09.2018 Views

Aprender a desarrollar un sitio Web con PHP y MySQL

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

{<br />

}<br />

$this->id = $id; //escrito en el atributo de id<br />

public f<strong>un</strong>ction getTitulo()<br />

{<br />

return $this->titulo; //devuelve el título<br />

}<br />

public f<strong>un</strong>ction setTitulo($titulo)<br />

{<br />

$this->titulo = $titulo; //escrito en el atributo título<br />

}<br />

public f<strong>un</strong>ction getDate()<br />

{<br />

return $this->Date; //devuelve la fecha<br />

}<br />

public f<strong>un</strong>ction setDate($date)<br />

{<br />

$this->date = $date; //escrita en el atributo de fecha<br />

}<br />

public f<strong>un</strong>ction getComentario()<br />

{<br />

return $this->comentario; //devuelve el comentario<br />

}<br />

public f<strong>un</strong>ction setComentario($Comentario)<br />

{<br />

$this->comentario = $comentario; //escribe en el atributo<br />

de comentario<br />

}<br />

public f<strong>un</strong>ction getFoto()<br />

{<br />

return $this->foto; //devuelve el nombre de la imagen<br />

}<br />

public f<strong>un</strong>ction setFoto($foto)<br />

{<br />

$this->photo = $imagen; //escrita en el atributo de imagen<br />

}<br />

}<br />

?><br />

La página Manager.class.php es:<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!