Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 186 → Rev 193

/trunk/media/video/series/application/controllers/IndexController.php
1,7 → 1,7
<?php
 
require_once 'application/views/IndexView.php';
// require_once 'application/models/mappers/SeriesMapper.php';
require_once 'application/models/mappers/SeriesMapper.php';
 
class IndexController extends \PointedEars\PHPX\Controller
{
23,6 → 23,38
$min_series = null;
 
$data = array(
'urns' => array(
'wiki' => 'http://de.wikipedia.org/wiki/'
)
);
 
$serien = SeriesMapper::getInstance()->getList($serien);
 
foreach ($serien as $key => &$serie)
{
if ($serie->total > 0)
{
if (!$serie->ignore && $serie->percentage < $min_percentage)
{
$min_percentage = $serie->percentage;
$min_series = $key;
}
}
}
 
$this->assign('serien', $serien);
$this->assign('min_series', $min_series);
$this->render();
}
 
private function oldIndexAction ()
{
require_once 'data.inc';
 
$min_percentage = 100;
$min_series = null;
 
$data = array(
'urns' => array(
'wiki' => 'http://de.wikipedia.org/wiki/'
),