Compare Revisions
Last modification
- Rev 193 2014-01-05 12:58:20
- Author: PointedEars
- Log message:
Seri-o-meter: Uses ORM
| /trunk/media/video/series/application/views/IndexView.php |
| 56,8 → 56,35 |
| * @param string $s |
| * @return string |
| */ |
| function _ ($s) |
| public function _ ($s) |
| { |
| return $this->_translator->translate($s, $this->_textDomain, $this->_language); |
| } |
| |
| public function getCoverage ($seen) |
| { |
| if (!is_array($seen)) |
| { |
| return ''; |
| } |
| |
| return implode(', ', |
| array_map( |
| function ($e) { |
| if (is_array($e)) |
| { |
| if ($e[1] === $e[0] + 1) |
| { |
| return implode(', ', $e); |
| } |
| |
| return $e[0] . '–' . $e[1]; |
| } |
| |
| return $e; |
| }, |
| $seen |
| ) |
| ); |
| } |
| } |