HomeHelpTrac

Changeset 7684 for trunk/xmlrpc


Ignore:
Timestamp:
11/25/08 11:36:10 (4 years ago)
Author:
hihi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCProfileView.php

    r7681 r7684  
    33require_once( BX_DIRECTORY_PATH_BASE . 'scripts/BxBaseProfileView.php' ); 
    44 
    5 class BxDolXMLRPCProfileView extends BxBaseProfileView 
     5class BxDolXMLRPCProfileView extends BxBaseProfileGenerator 
    66{ 
    77    function BxDolXMLRPCProfileView($iProfileId) 
    8     { 
    9         BxBaseProfileView::BxBaseProfileView($iProfileId); 
     8    {         
     9        BxBaseProfileGenerator::BxBaseProfileGenerator ($iProfileId); 
    1010    } 
    1111 
     
    4444                $sValue1 = (isset($this->_aProfile['DateOfBirth'])) ? age($this->_aProfile['DateOfBirth']) : _t("_uknown"); 
    4545            } 
    46 /* 
    47             if ($aItem['Name'] == 'Country') { 
    48                 $sFlagName = strtolower($this->_aProfile[ $aItem['Name'] ]); 
    49                 $sValue1 = '<img src="' . $site['flags']  . $sFlagName . '.gif" /> ' . $sValue1; 
    50             } 
    51 */ 
     46 
    5247            if( !$sValue1 ) //if empty, do not draw 
    5348                continue; 
     
    5752            $aStruct['Caption'] = new xmlrpcval (strip_tags(_t($aItem['Caption']))); 
    5853            $aStruct['Type'] = new xmlrpcval ($aItem['Type']); 
    59 //            if ('area' == $aItem['Type']) 
    60 //                $sValue1 = str_replace ("<br />", "\n", $sValue1); 
    6154            $aStruct['Value1'] = new xmlrpcval (strip_tags($sValue1)); 
    6255 
     
    6659                { 
    6760                    $sValue2 = $this->oPF->getViewableValue($aItem, $this->_aCouple[$aItem['Name']]); 
    68 //                    if ('area' == $aItem['Type']) 
    69 //                        $sValue2 = str_replace ("<br />", "\n", $sValue2); 
    7061                    $aStruct['Value1'] = new xmlrpcval (strip_tags($sValue1)); 
    7162                } 
Note: See TracChangeset for help on using the changeset viewer.