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/resource.php
T
olivaq@gmail.com 9bba6da30d created repo
2011-02-01 15:51:10 +01:00

31 lines
503 B
PHP

<?php
class Resource extends AppModel
{
var $name = 'Resource';
function getPath()
{
return WWW_ROOT . 'slides/res_' . $this->id;
}
function getUrl()
{
return Router::url('/resources/get/' . $this->id);
}
function getThumbnail()
{
return WWW_ROOT . 'thumbnails/res_' . $this->id . '.png';
}
function getThumbnailUrl()
{
return Router::url('/resources/thumbnail/' . $this->id);
}
function getSlideshow()
{
return Router::url('/resources/slideshow/' . $this->id);
}
}