示例#1
0
 public function getLucene($rows)
 {
     $arrProtocol = array();
     foreach ($rows as $row) {
         $wallpaper = new WallpaperProtocol();
         $wallpaper->setVercode($this->_nVercode);
         $wallpaper->setProduct($this->_product);
         $wallpaper->setWallpaper($row, $this->_nChannel);
         $strUrl = $row['id_' . $this->_nWidth . '_' . $this->_nHeight];
         $strMidUrl = $row['id_' . $this->_nWidth . '_' . $this->_nHeight];
         $strSmallUrl = $row['id_' . $this->_nWidth . '_' . $this->_nHeight];
         $wallpaper->setWallpaperUrl($strUrl, $strMidUrl, $strSmallUrl);
         array_push($arrProtocol, $wallpaper);
     }
     return $arrProtocol;
 }