Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 195 → Rev 196

/trunk/services/bibliotheque/nom/NomDO.php
1,15 → 1,15
<?php
class NomDO {
private $infos;
 
public function __construct(Array $infos) {
$this->infos = $infos;
}
 
public function getTag($tag) {
return $this->infos[$tag];
return isset($this->infos[$tag]) ? $this->infos[$tag] : null;
}
 
public function verifierTag($tag) {
$existe = true;
if ($this->getTag($tag) == null || $this->getTag($tag) == '') {
17,9 → 17,5
}
return $existe;
}
 
public function getNomDetails() {
return $this->getTitle().' by '.$this->getAuthor();
}
}
?>