@@ -20,27 +20,27 @@ |
||
20 | 20 | * @param Book $pbook |
21 | 21 | */ |
22 | 22 | public function __construct($ptitle, $pid, $pcontent, $pcontentType, $plinkArray, $pbook) { |
23 | - parent::__construct ($ptitle, $pid, $pcontent, $pcontentType, $plinkArray); |
|
23 | + parent::__construct($ptitle, $pid, $pcontent, $pcontentType, $plinkArray); |
|
24 | 24 | $this->book = $pbook; |
25 | 25 | $this->localUpdated = $pbook->timestamp; |
26 | 26 | } |
27 | 27 | |
28 | - public function getCoverThumbnail () { |
|
28 | + public function getCoverThumbnail() { |
|
29 | 29 | foreach ($this->linkArray as $link) { |
30 | 30 | /* @var $link LinkNavigation */ |
31 | 31 | |
32 | 32 | if ($link->rel == Link::OPDS_THUMBNAIL_TYPE) |
33 | - return $link->hrefXhtml (); |
|
33 | + return $link->hrefXhtml(); |
|
34 | 34 | } |
35 | 35 | return null; |
36 | 36 | } |
37 | 37 | |
38 | - public function getCover () { |
|
38 | + public function getCover() { |
|
39 | 39 | foreach ($this->linkArray as $link) { |
40 | 40 | /* @var $link LinkNavigation */ |
41 | 41 | |
42 | 42 | if ($link->rel == Link::OPDS_IMAGE_TYPE) |
43 | - return $link->hrefXhtml (); |
|
43 | + return $link->hrefXhtml(); |
|
44 | 44 | } |
45 | 45 | return null; |
46 | 46 | } |
@@ -70,7 +70,7 @@ |
||
70 | 70 | while ($post = $result->fetchObject()) |
71 | 71 | { |
72 | 72 | $entryPContent = str_format(localize("bookword", $post->count), $post->count); |
73 | - $entryPLinkArray = array(new LinkNavigation ($this->getUri($post->id))); |
|
73 | + $entryPLinkArray = array(new LinkNavigation($this->getUri($post->id))); |
|
74 | 74 | |
75 | 75 | $entry = new Entry($post->name, $this->getEntryId($post->id), $entryPContent, $this->datatype, $entryPLinkArray, "", $post->count); |
76 | 76 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $result = $this->getDb()->prepare(str_format("SELECT id, value AS name FROM {0} WHERE id = ?", $this->getTableName())); |
56 | 56 | $result->execute(array($id)); |
57 | 57 | if ($post = $result->fetchObject()) { |
58 | - return new CustomColumn ($id, $post->name, $this); |
|
58 | + return new CustomColumn($id, $post->name, $this); |
|
59 | 59 | } |
60 | 60 | return NULL; |
61 | 61 | } |
@@ -69,9 +69,9 @@ discard block |
||
69 | 69 | $entryArray = array(); |
70 | 70 | while ($post = $result->fetchObject()) { |
71 | 71 | $entryPContent = str_format(localize("bookword", $post->count), $post->count); |
72 | - $entryPLinkArray = array(new LinkNavigation ($this->getUri($post->id))); |
|
72 | + $entryPLinkArray = array(new LinkNavigation($this->getUri($post->id))); |
|
73 | 73 | |
74 | - $entry = new Entry ($post->name, $this->getEntryId($post->id), $entryPContent, $this->datatype, $entryPLinkArray, "", $post->count); |
|
74 | + $entry = new Entry($post->name, $this->getEntryId($post->id), $entryPContent, $this->datatype, $entryPLinkArray, "", $post->count); |
|
75 | 75 | |
76 | 76 | array_push($entryArray, $entry); |
77 | 77 | } |
@@ -8,12 +8,12 @@ |
||
8 | 8 | |
9 | 9 | class PageCustomDetail extends Page |
10 | 10 | { |
11 | - public function InitializeContent () |
|
11 | + public function InitializeContent() |
|
12 | 12 | { |
13 | - $customId = getURLParam ("custom", NULL); |
|
14 | - $custom = CustomColumn::createCustom ($customId, $this->idGet); |
|
15 | - $this->idPage = $custom->getEntryId (); |
|
13 | + $customId = getURLParam("custom", NULL); |
|
14 | + $custom = CustomColumn::createCustom($customId, $this->idGet); |
|
15 | + $this->idPage = $custom->getEntryId(); |
|
16 | 16 | $this->title = $custom->value; |
17 | - list ($this->entryArray, $this->totalNumber) = Book::getBooksByCustom ($custom, $this->idGet, $this->n); |
|
17 | + list ($this->entryArray, $this->totalNumber) = Book::getBooksByCustom($custom, $this->idGet, $this->n); |
|
18 | 18 | } |
19 | 19 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | class PageAllPublishers extends Page |
10 | 10 | { |
11 | - public function InitializeContent () |
|
11 | + public function InitializeContent() |
|
12 | 12 | { |
13 | 13 | $this->title = localize("publishers.title"); |
14 | 14 | $this->entryArray = Publisher::getAllPublishers(); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | $this->activeFacet = $pactiveFacet; |
31 | 31 | } |
32 | 32 | |
33 | - public function hrefXhtml () { |
|
33 | + public function hrefXhtml() { |
|
34 | 34 | return $this->href; |
35 | 35 | } |
36 | 36 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | class PageAllLanguages extends Page |
10 | 10 | { |
11 | - public function InitializeContent () |
|
11 | + public function InitializeContent() |
|
12 | 12 | { |
13 | 13 | $this->title = localize("languages.title"); |
14 | 14 | $this->entryArray = Language::getAllLanguages(); |
@@ -8,8 +8,8 @@ |
||
8 | 8 | |
9 | 9 | class PageAbout extends Page |
10 | 10 | { |
11 | - public function InitializeContent () |
|
11 | + public function InitializeContent() |
|
12 | 12 | { |
13 | - $this->title = localize ("about.title"); |
|
13 | + $this->title = localize("about.title"); |
|
14 | 14 | } |
15 | 15 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $id = $date->format("Y-m-d"); |
50 | 50 | |
51 | 51 | $entryPContent = str_format(localize("bookword", $post->count), $post->count); |
52 | - $entryPLinkArray = array(new LinkNavigation ($this->getUri($id))); |
|
52 | + $entryPLinkArray = array(new LinkNavigation($this->getUri($id))); |
|
53 | 53 | |
54 | 54 | $entry = new Entry($date->format(localize("customcolumn.date.format")), $this->getEntryId($id), $entryPContent, $this->datatype, $entryPLinkArray, "", $post->count); |
55 | 55 |