diff options
| author | Christian Fowler <spider@viovio.com> | 2007-05-30 21:32:50 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2007-05-30 21:32:50 +0000 |
| commit | 143e39195f3544744d103b020e7985aae37cd72d (patch) | |
| tree | 52a8750c6e711d0c79bd5fc4169ae5f265fb4e3d /BitUser.php | |
| parent | 01d0bfff15caf0bed8c6d810ca0344ccdeff44a7 (diff) | |
| download | users-143e39195f3544744d103b020e7985aae37cd72d.tar.gz users-143e39195f3544744d103b020e7985aae37cd72d.tar.bz2 users-143e39195f3544744d103b020e7985aae37cd72d.zip | |
add initial getThumbnailUrl implementation override from LibContent
Diffstat (limited to 'BitUser.php')
| -rw-r--r-- | BitUser.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/BitUser.php b/BitUser.php index b02c1b4..8d41a9a 100644 --- a/BitUser.php +++ b/BitUser.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.136 2007/05/22 08:48:26 lsces Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.137 2007/05/30 21:32:50 spiderr Exp $ * * Lib for user administration, groups and permissions * This lib uses pear so the constructor requieres @@ -12,7 +12,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: BitUser.php,v 1.136 2007/05/22 08:48:26 lsces Exp $ + * $Id: BitUser.php,v 1.137 2007/05/30 21:32:50 spiderr Exp $ * @package users */ @@ -40,7 +40,7 @@ define("ACCOUNT_DISABLED", -6); * Class that holds all information for a given user * * @author spider <spider@steelsun.com> - * @version $Revision: 1.136 $ + * @version $Revision: 1.137 $ * @package users * @subpackage BitUser */ @@ -1170,6 +1170,16 @@ class BitUser extends LibertyAttachable { // ============= image and file functions + function getThumbnailUrl( $pSize='small', $pInfoHash=NULL ) { + $ret = ''; + if( $pInfoHash ) { + // do some stuff if we are passed a hash-o-crap, not implemented currently + } elseif( $this->isValid() ) { + $ret = $this->getField( 'avatar_url' ); + } + return $ret; + } + function storePortrait( &$pStorageHash, $pGenerateAvatar=FALSE ) { if( $this->isValid() && count( $pStorageHash ) ) { |
