Cheetah
modules
cheetah
photos
classes
ChPhotosRate.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChWsbFilesRate'
);
9
10
require_once(
'ChPhotosSearch.php'
);
11
12
class
ChPhotosRate
extends
ChWsbFilesRate
13
{
14
function
__construct
()
15
{
16
$oMedia
=
new
ChPhotosSearch
();
17
parent::__construct(
'ch_photos'
,
$oMedia
);
18
}
19
20
function
getRateFile
(&$aData)
21
{
22
$aImg = $this->oMedia->serviceGetPhotoArray($aData[0][
'id'
],
'file'
);
23
$iImgWidth = (int)
getParam
($this->sType .
'_file_width'
);
24
25
$aFile = array(
26
'fileBody'
=> $aImg[
'file'
],
27
'infoWidth'
=> $iImgWidth > 0 ? $iImgWidth + 2:
''
28
);
29
30
return
$this->oMedia->oTemplate->parseHtmlByName(
'rate_object_file.html'
, $aFile);
31
}
32
}
ChPhotosSearch
Definition:
ChPhotosSearch.php:11
ChPhotosRate
Definition:
ChPhotosRate.php:13
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
ChPhotosRate\getRateFile
getRateFile(&$aData)
Definition:
ChPhotosRate.php:20
php
getParam
getParam($sParamName, $bUseCache=true)
Definition:
db.inc.php:130
ChWsbFilesRate
Definition:
ChWsbFilesRate.php:11
ChPhotosRate\__construct
__construct()
Definition:
ChPhotosRate.php:14
ChWsbFilesRate\$oMedia
$oMedia
Definition:
ChWsbFilesRate.php:12
Generated by
1.8.20