original_string: protected function setDataCollectionFront($type)
      {
          $collection_id = $this->getStore("data.collection_$type");
  
          if (!empty($collection_id)) {
              $conditions = array('collection_id' => $collection_id);
              $options = array('imagestyle' => $this->configTheme("image_style_collection_$type"));
              $items = $this->getCollectionItems($conditions, array_filter($options), $this->collection_item);
              $this->setData("collection_$type", $this->getWidgetCollection($items));
          }
      }
code: protected function setDataCollectionFront($type)
      {
          $collection_id = $this->getStore("data.collection_$type");
  
          if (!empty($collection_id)) {
              $conditions = array('collection_id' => $collection_id);
              $options = array('imagestyle' => $this->configTheme("image_style_collection_$type"));
              $items = $this->getCollectionItems($conditions, array_filter($options), $this->collection_item);
              $this->setData("collection_$type", $this->getWidgetCollection($items));
          }
      }
code_tokens: protected function setDataCollectionFront ( $ type ) { $ collection_id = $ this -> getStore ( "data.collection_$type" ) ; if ( ! empty ( $ collection_id ) ) { $ conditions = array ( 'collection_id' => $ collection_id ) ; $ options = array ( 'imagestyle' => $ this -> configTheme ( "image_style_collection_$type" ) ) ; $ items = $ this -> getCollectionItems ( $ conditions , array_filter ( $ options ) , $ this -> collection_item ) ; $ this -> setData ( "collection_$type" , $ this -> getWidgetCollection ( $ items ) ) ; } }
docstring: Adds a collection block
  @param string $type
docstring_tokens: Adds a collection block