1 | <?php |
||
11 | class Publisher extends Base { |
||
12 | const ALL_PUBLISHERS_ID = "cops:publishers"; |
||
13 | const PUBLISHERS_COLUMNS = "publishers.id as id, publishers.name as name, count(*) as count"; |
||
14 | const SQL_ALL_PUBLISHERS = "select {0} from publishers, books_publishers_link where publishers.id = publisher group by publishers.id, publishers.name order by publishers.name"; |
||
15 | const SQL_PUBLISHERS_FOR_SEARCH = "select {0} from publishers, books_publishers_link where publishers.id = publisher and upper (publishers.name) like ? group by publishers.id, publishers.name order by publishers.name"; |
||
16 | |||
17 | |||
18 | public $id; |
||
19 | public $name; |
||
20 | |||
21 | 12 | public function __construct($post) { |
|
22 | 12 | $this->id = $post->id; |
|
23 | 12 | $this->name = $post->name; |
|
24 | 12 | } |
|
25 | |||
26 | 10 | public function getUri () { |
|
29 | |||
30 | 7 | public function getEntryId () { |
|
33 | |||
34 | 18 | public static function getCount() { |
|
38 | |||
39 | 5 | public static function getPublisherByBookId ($bookId) { |
|
49 | |||
50 | 1 | public static function getPublisherById ($publisherId) { |
|
59 | |||
60 | 2 | public static function getAllPublishers() { |
|
63 | |||
64 | 23 | public static function getAllPublishersByQuery($query) { |
|
67 | } |
||
68 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.