Esempio n. 1
0
 /**
  *	Returns icon for a person
  *
  *	@return void
  **/
 public function statusIcon()
 {
     if ($this->id() == -2) {
         return 'present';
     }
     if ($this->id() == -1) {
         return 'all_family';
     }
     if ($this->is_panelist == 1) {
         return $this->user()->statusIcon();
     }
     if ($this->is_animal) {
         return $this->_animalIcon();
     }
     if ($this->age() < C('user.adult-age')) {
         return 'baby';
     }
     if ($this->_mapper->anketaAnswered($this->id())) {
         return 'family';
     }
     return 'family_noank';
 }