Changeset 15211 for trunk/xmlrpc/BxDolXMLRPCProfileView.php
- Timestamp:
- 06/07/11 23:41:51 (12 months ago)
- File:
-
- 1 edited
-
trunk/xmlrpc/BxDolXMLRPCProfileView.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc/BxDolXMLRPCProfileView.php
r14920 r15211 6 6 { 7 7 function BxDolXMLRPCProfileView($iProfileId) 8 { 8 { 9 9 BxBaseProfileGenerator::BxBaseProfileGenerator ((int)$iProfileId); 10 10 } 11 11 12 function getProfileInfoExtra() 12 function getProfileInfoExtra() 13 13 { 14 14 $aRet = array(); … … 23 23 } 24 24 25 function getProfileInfoBlock($sCaption, $sContent) 25 function getProfileInfoBlock($sCaption, $sContent) 26 26 { 27 27 global $site; … … 36 36 37 37 $aRet = array (); 38 foreach( $aItems as $aItem ) { 38 foreach( $aItems as $aItem ) { 39 39 40 40 $sValue1 = $this->oPF->getViewableValue( $aItem, $this->_aProfile[ $aItem['Name'] ] ); 41 41 42 if ($aItem['Name'] == 'Age') 42 if ($aItem['Name'] == 'Age') 43 43 { 44 44 $sValue1 = (isset($this->_aProfile['DateOfBirth'])) ? age($this->_aProfile['DateOfBirth']) : _t("_uknown"); … … 54 54 $aStruct['Value1'] = new xmlrpcval (strip_tags($sValue1)); 55 55 56 if ($this->bCouple) 56 if ($this->bCouple) 57 57 { 58 if (!in_array( $aItem['Name'], $this->aCoupleMutualItems)) 58 if (!in_array( $aItem['Name'], $this->aCoupleMutualItems)) 59 59 { 60 60 $sValue2 = $this->oPF->getViewableValue($aItem, $this->_aCouple[$aItem['Name']]); 61 61 $aStruct['Value1'] = new xmlrpcval (strip_tags($sValue1)); 62 62 } 63 } 63 } 64 64 65 65 $aRet[] = new xmlrpcval ($aStruct, "struct"); 66 66 } 67 67 68 68 return new xmlrpcval (array ( 69 69 'Info' => new xmlrpcval ($aRet, "array"), 70 70 'Title' => new xmlrpcval (_t($sCaption)), 71 71 ), "struct"); 72 } 72 } 73 73 } 74 74
Note: See TracChangeset
for help on using the changeset viewer.