summaryrefslogtreecommitdiffstats
path: root/modules/php_musicbrainz/mbUser.php
blob: 8ac6ffeb25cda875ef366ff9e0262a1272feb7ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
    class mbUser {
        private $name;
        private $showNag = false;
        private $types = array();
        
        function mbUser() {
        }
        
        function setName( $name ) { $this->name = $name; }
        function getName() { return $this->name; }
        
        function getShowNag() {
            return $this->showNag;
        }
        
        function setShowNag( $value ) {
            $this->setShowNag = $value;
        }
        
        function addType( $type ) {
            $this->types[] = $type;
        }
        
        function getNumTypes() {
            return count($this->types);
        }
        
        function getType( $i ) {
            return $this->types[$i];
        }
    }
?>