1 | <?php |
||
17 | class ArtistMapper extends BaseMapper { |
||
18 | |||
19 | public function __construct(IDBConnection $db){ |
||
22 | |||
23 | /** |
||
24 | * @param string $condition |
||
25 | */ |
||
26 | private function makeSelectQuery($condition=null){ |
||
31 | |||
32 | /** |
||
33 | * @param string $userId |
||
34 | * @return Artist[] |
||
35 | */ |
||
36 | public function findAll($userId){ |
||
41 | |||
42 | /** |
||
43 | * @param integer[] $artistIds |
||
44 | * @param string $userId |
||
45 | * @return Artist[] |
||
46 | */ |
||
47 | public function findMultipleById($artistIds, $userId){ |
||
55 | |||
56 | /** |
||
57 | * @param string|null $artistName |
||
58 | * @param string $userId |
||
59 | * @param bool $fuzzy |
||
60 | */ |
||
61 | protected function makeFindByNameSqlAndParams($artistName, $userId, $fuzzy = false) { |
||
78 | |||
79 | /** |
||
80 | * @param string|null $artistName |
||
81 | * @param string $userId |
||
82 | * @param bool $fuzzy |
||
83 | * @return Artist |
||
84 | */ |
||
85 | public function findByName($artistName, $userId, $fuzzy = false){ |
||
89 | |||
90 | /** |
||
91 | * @param string|null $artistName |
||
92 | * @param string $userId |
||
93 | * @param bool $fuzzy |
||
94 | * @return Artist[] |
||
95 | */ |
||
96 | public function findAllByName($artistName, $userId, $fuzzy = false){ |
||
100 | |||
101 | public function findUniqueEntity(Artist $artist){ |
||
107 | } |
||
108 |