Cheetah
modules
cheetah
files
classes
ChFilesTemplate.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChWsbFilesTemplate'
);
9
ch_import
(
'ChTemplVotingView'
);
10
11
class
ChFilesTemplate
extends
ChWsbFilesTemplate
12
{
16
function
__construct
(&$oConfig, &
$oDb
)
17
{
18
parent::__construct($oConfig,
$oDb
);
19
}
20
21
function
getFileViewArea
(
$aInfo
)
22
{
23
}
24
25
function
getBasicFileInfoForm
(&
$aInfo
, $sUrlPref =
''
)
26
{
27
$aForm
= parent::getBasicFileInfoForm(
$aInfo
, $sUrlPref);
28
29
if
(!
empty
(
$aInfo
[
'albumCaption'
]) && !
empty
(
$aInfo
[
'albumUri'
]))
30
$aForm
[
'album'
] = array(
31
'type'
=>
'value'
,
32
'value'
=>
getLink
(
$aInfo
[
'albumCaption'
], $sUrlPref .
'browse/album/'
.
$aInfo
[
'albumUri'
] .
'/owner/'
.
getUsername
(
$aInfo
[
'medProfId'
])),
33
'caption'
=>
_t
(
'_ch_files_album'
)
34
);
35
36
return
$aForm
;
37
}
38
}
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
ChWsbFilesTemplate
Definition:
ChWsbFilesTemplate.php:13
php
$aInfo
$aInfo
Definition:
constants.inc.php:21
ChFilesTemplate
Definition:
ChFilesTemplate.php:12
$oDb
global $oDb
Definition:
db.inc.php:39
getUsername
getUsername( $ID='')
Definition:
profiles.inc.php:443
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition:
languages.inc.php:509
ChFilesTemplate\__construct
__construct(&$oConfig, &$oDb)
Definition:
ChFilesTemplate.php:16
ChFilesTemplate\getFileViewArea
getFileViewArea($aInfo)
Definition:
ChFilesTemplate.php:21
$aForm
$aForm
Definition:
forgot.php:43
ChFilesTemplate\getBasicFileInfoForm
getBasicFileInfoForm(&$aInfo, $sUrlPref='')
Definition:
ChFilesTemplate.php:25
empty
Attr AllowedRel this is empty
Definition:
Attr.AllowedRel.txt:7
getLink
getLink($sString, $sUrl)
Definition:
utils.inc.php:1433
Generated by
1.8.20