Esempio n. 1
0
 /**
  * [createItem description]
  * @return [type] [description]
  */
 public function createItem()
 {
     $this->channel();
     $item = new Item();
     $index = 'index_' . md5(microtime());
     $this->items[$index] = $item;
     $item->setIndex($index);
     return $item;
 }
Esempio n. 2
0
 /**
  * @return \LukeSnowden\GoogleShoppingFeed\Item
  */
 public function createItem()
 {
     $this->channel();
     $item = new Item();
     $index = 'index_' . sha1(uniqid('GoogleShoppingFeed\\Item', true) . microtime());
     $this->items[$index] = $item;
     $item->setIndex($index);
     return $item;
 }