Esempio n. 1
0
 /**
  *	Returns information about main avatar. Return NULL if no main avatar.
  *
  *	@param		owner	rm_Guid_iObject		Owner
  *	@return		hash
  */
 public function getMainAvatarInfo(rm_Guid_iObject $owner)
 {
     $key = getOwnerType($owner) . '-' . $owner->guidId();
     if ($info = M('Cache')->get($this->_avatarCacheNs, $key)) {
         return $info;
     }
     if ($info === array()) {
         return NULL;
     }
     if (isNull($avatar = M('ServiceAvatar')->getService($owner)->getMainAvatar())) {
         M('Cache')->put($this->_avatarCacheNs, $key, array());
         return NULL;
     }
     $p = $avatar->props();
     $info = array('dev' => $p['file_device_id'], 'path' => $p['file_device_path']);
     M('Cache')->put($this->_avatarCacheNs, $key, $info);
     return $info;
 }
Esempio n. 2
0
     getItemlistwithstrength();
     break;
 case "getKeyItemlistWithStrength":
     getKeyItemlistWithStrength();
     break;
 case "getClStockSource":
     getClStockSource();
     break;
 case "getAmcChangeReason":
     getAmcChangeReason();
     break;
 case "getServiceArea":
     getServiceArea();
     break;
 case "getOwnerType":
     getOwnerType();
     break;
 case "getItemGroupFrequency":
     getItemGroupFrequency();
     break;
 case "getRegionByCId":
     getRegionByCId();
     break;
 case "getStockOutReason":
     getStockOutReason();
     break;
 case "getOrderQtyChangeReason":
     getOrderQtyChangeReason();
     break;
 default:
     echo "{failure:true}";