Cheetah
modules
cheetah
photos
classes
ChPhotosPageAlbumsOwner.php
Go to the documentation of this file.
1
<?
php
2
8
require_once(CH_DIRECTORY_PATH_CLASSES .
'ChWsbFilesPageAlbumsOwner.php'
);
9
10
class
ChPhotosPageAlbumsOwner
extends
ChWsbFilesPageAlbumsOwner
11
{
12
function
__construct
(&$oShared, $aParams = array())
13
{
14
parent::__construct(
'ch_photos_albums_owner'
, $oShared, $aParams);
15
}
16
17
function
getBlockCode_ProfilePhotos
()
18
{
19
list(
$sParamName
,
$sParamValue
, $sParamValue1, $sParamValue2, $sParamValue3) =
$this->aAddParams
;
20
if
(
$sParamValue
!=
'owner'
)
21
return
''
;
22
23
$oSearch = $this->
getSearchObject
();
24
$oSearch->aCurrent[
'restriction'
][
'album'
] = array(
25
'value'
=>
''
,
'field'
=>
'Uri'
,
'operator'
=>
'='
,
'paramName'
=>
'albumUri'
,
'table'
=>
'sys_albums'
26
);
27
28
$oSearch->aCurrent[
'restriction'
][
'album_owner'
] = array(
29
'value'
=>
''
,
'field'
=>
'Owner'
,
'operator'
=>
'='
,
'paramName'
=>
'albumOwner'
,
'table'
=>
'sys_albums'
30
);
31
32
$sUri =
ChWsbAlbums::getAbumUri
($this->oConfig->getGlParam(
'profile_album_name'
), $this->iOwnerId);
33
$aParams = array(
'album'
=> $sUri,
'owner'
=> $this->iOwnerId);
34
$aCustom = array(
35
'per_page'
=> $this->oConfig->getGlParam(
'number_top'
),
36
'simple_paginate'
=> FALSE
37
);
38
$aHtml = $oSearch->getBrowseBlock($aParams, $aCustom);
39
return
array($aHtml[
'code'
], $aHtml[
'menu_top'
], $aHtml[
'menu_bottom'
],
''
);
40
}
41
}
ChPhotosPageAlbumsOwner
Definition:
ChPhotosPageAlbumsOwner.php:11
ChPhotosPageAlbumsOwner\__construct
__construct(&$oShared, $aParams=array())
Definition:
ChPhotosPageAlbumsOwner.php:12
php
$sParamValue
$sParamValue
Definition:
actions.inc.php:16
ChPhotosPageAlbumsOwner\getBlockCode_ProfilePhotos
getBlockCode_ProfilePhotos()
Definition:
ChPhotosPageAlbumsOwner.php:17
$sParamName
$sParamName
Definition:
actions.inc.php:15
ChWsbFilesPageAlbumsOwner
Definition:
ChWsbFilesPageAlbumsOwner.php:12
ChWsbFilesPageAlbumsOwner\getSearchObject
getSearchObject()
Definition:
ChWsbFilesPageAlbumsOwner.php:96
ChWsbAlbums\getAbumUri
static getAbumUri($sName, $iUserId)
Definition:
ChWsbAlbums.php:50
ChWsbFilesPageAlbumsOwner\$aAddParams
$aAddParams
Definition:
ChWsbFilesPageAlbumsOwner.php:19
Generated by
1.8.20