HomeHelpTrac

Ignore:
Timestamp:
07/15/09 05:07:42 (3 years ago)
Author:
Alexander Trofimov
Message:

XMLRPC media queries for albuns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCUtil.php

    r10863 r11418  
    9191    { 
    9292        $aRet = array (); 
    93         $aSexSql = getProfileInfo( $iId ); //db_arr( $sSexSql ); 
     93        $aSexSql = getProfileInfo($iId); //db_arr( $sSexSql ); 
    9494        $aRet['title'] = new xmlrpcval($aSexSql['Headline']); 
    9595        $aRet['thumb'] = new xmlrpcval(BxDolXMLRPCUtil::getThumbLink($iId));//$sFileName); 
     
    9898        $aRet['country'] = new xmlrpcval($aSexSql['Country']); 
    9999        $aRet['city'] = new xmlrpcval($aSexSql['City']); 
     100 
     101        bx_import('BxDolAlbums'); 
     102 
     103        $o = new BxDolAlbums ('bx_photos', $iId); 
     104        $aRet['countPhotos'] = new xmlrpcval($o->getAlbumList (array('owner' => $iId, 'status' => ''))); 
     105 
     106        $o = new BxDolAlbums ('bx_videos', $iId); 
     107        $aRet['countVideos'] = new xmlrpcval($o->getAlbumList (array('owner' => $iId, 'status' => ''))); 
     108 
     109        $o = new BxDolAlbums ('bx_sounds', $iId); 
     110        $aRet['countSounds'] = new xmlrpcval($o->getAlbumList (array('owner' => $iId, 'status' => ''))); 
    100111 
    101112        return $aRet; 
Note: See TracChangeset for help on using the changeset viewer.