public function generate($cache)
	{
		$item = new Item;
		$item->results = $this->element->generate($cache);
		$item->name = 'item'.$this->id;
		$item->template = $this->template;
		$item->cssid = $this->cssId;
		$item->cssclass = $this->cssClass;

		return $item;
	}
public function generate($cache)
	{
		$item = new Item;
		$item->results = $this->element->generate($cache);
		$item->name = 'item'.$this->id;
		$item->template = $this->template;
		$item->cssid = $this->cssId;
		$item->cssclass = $this->cssClass;

		return $item;
	}
public function generate ( $ cache ) { $ item = new Item ; $ item -> results = $ this -> element -> generate ( $ cache ) ; $ item -> name = 'item' . $ this -> id ; $ item -> template = $ this -> template ; $ item -> cssid = $ this -> cssId ; $ item -> cssclass = $ this -> cssClass ; return $ item ; }
Item generation.

To provide a secured layer between a full item representation and a presented Item,
a new (temporary) Item is generated containing only necessary information for
presentation.

@param array|object|null  $cache  provides available cached information of an Item.

@return object $item.
Item generation .