Cheetah
ChPhotosMemberInfo.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbMemberInfo');
9 
14 {
19  public function __construct($aObject)
20  {
21  parent::__construct($aObject);
22  }
23 
27  public function get ($aData)
28  {
29  switch ($this->_sObject) {
30  case 'ch_photos_thumb_2x':
31  return ChWsbService::call('photos', 'profile_photo', array($aData['ID'], 'browse'), 'Search');
32 
33  case 'ch_photos_thumb':
34  case 'ch_photos_icon_2x':
35  return ChWsbService::call('photos', 'profile_photo', array($aData['ID'], 'thumb'), 'Search');
36 
37  case 'ch_photos_icon':
38  return ChWsbService::call('photos', 'profile_photo', array($aData['ID'], 'icon'), 'Search');
39  }
40 
41  return parent::get($aData);
42  }
43 
44  public function isAvatarSearchAllowed ()
45  {
46  return false;
47  }
48 
50  {
51  return true;
52  }
53 }
ChPhotosMemberInfo\isSetAvatarFromDefaultAlbumOnly
isSetAvatarFromDefaultAlbumOnly()
Definition: ChPhotosMemberInfo.php:49
ChPhotosMemberInfo\__construct
__construct($aObject)
Definition: ChPhotosMemberInfo.php:19
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
ChPhotosMemberInfo\isAvatarSearchAllowed
isAvatarSearchAllowed()
Definition: ChPhotosMemberInfo.php:44
ChPhotosMemberInfo
Definition: ChPhotosMemberInfo.php:14
ChWsbMemberInfo
Definition: ChWsbMemberInfo.php:20
ChWsbService\call
static call($mixed, $sMethod, $aParams=array(), $sClass='Module')
Definition: ChWsbService.php:32