compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (13)

View Page History
{zone-template-instance:ZFPROP:Proposal Zone Template}
{zone-data:component-name}
Zend_Service_Buscape Zend\Service\Buscape
{zone-data}


{zone-data:dependencies}
* Zend_\Exception
* Zend\Service
{zone-data}

{zone-data:operation}
The component is instantiated with a mind-link that ...

{zone-data}

{zone-data:milestones}

* Milestone 1: \[DONE\] Finish the proposal
* Milestone 2: Proposal review
* Milestone 3: Update proposal
* Milestone 24: Unit tests, work, and are checked into SVN.
* Milestone 35: Initial documentation exists.

{zone-data}
{code}
{card}
{card:label=UC 1: Find list of products}
{card:label=UC 2: Find list of offers}
{code:type=php}
<?php
$finder = $service->getFinder(Buscape::FIND_PRODUCT);
$productList = $finder->search('TV');
$offerFinder = $service->getFinder(Buscape::FIND_OFFER);
$offerLists = array();
foreach($productList as $product)
$offerLists[] = $offerFinder->search($product);
{code}
{card}
class Buscape extends Abstract{
const FIND_PRODUCT = 1;
const FIND_OFFER = 2;
public function __construct(array $options = array()){}