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
2011-02-01 16:17:03 +01:00

32 lines
494 B
PHP

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