public function anonymize() {
        $authorfields = explode(',', user_picture::fields());
        foreach ($authorfields as $field) {
            $prefixedusernamefield = 'author' . $field;
            unset($this->{$prefixedusernamefield});
        }
        $this->anonymous = true;
    }
public function anonymize() {
        $authorfields = explode(',', user_picture::fields());
        foreach ($authorfields as $field) {
            $prefixedusernamefield = 'author' . $field;
            unset($this->{$prefixedusernamefield});
        }
        $this->anonymous = true;
    }
public function anonymize ( ) { $ authorfields = explode ( ',' , user_picture :: fields ( ) ) ; foreach ( $ authorfields as $ field ) { $ prefixedusernamefield = 'author' . $ field ; unset ( $ this -> { $ prefixedusernamefield } ) ; } $ this -> anonymous = true ; }
Unsets all author-related properties so that the renderer does not have access to them

Usually this is called by the contructor but can be called explicitely, too.
Unsets all author - related properties so that the renderer does not have access to them