This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
infoskjerm/app/models/slide.php
T
olivaq@gmail.com 9bba6da30d created repo
2011-02-01 15:51:10 +01:00

18 lines
353 B
PHP

<?php
class Slide extends AppModel {
var $name = 'Slide';
var $hasMany = 'DisplayTime';
function getEnabledSlides()
{
return $this->find('all', array('conditions'=>array('Slide.enabled'=>1)));
}
function getDisabledSlides()
{
return $this->find('all', array('conditions'=>array('Slide.enabled'=>0),'order'=>array('id'=>'DESC')));
}
}
?>