cheque module

This commit is contained in:
Etienne Roudeix
2013-09-18 16:23:10 +02:00
parent 45106f24bd
commit b8c2bdc8df
4 changed files with 19 additions and 17 deletions

View File

@@ -58,13 +58,13 @@ class Cheque extends BaseModule implements PaymentModuleInterface
// TODO: Implement pay() method.
}
/**
* YOU HAVE TO IMPLEMENT HERE ABSTRACT METHODD FROM BaseModule Class
* Like install and destroy
*/
public function install()
{
// TODO: Implement install() method.
/* insert the images from image folder if first module activation */
$module = $this->getModuleModel();
if(ModuleImageQuery::create()->filterByModule($module)->count() == 0) {
$this->deployImageFolder($module, sprintf('%s/images', __DIR__));
}
}
public function destroy()

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -45,10 +45,8 @@ class FakeCBTest extends BaseModuleTestor
public function testInstall()
{
$fakeCB = new FakeCB();
//$fakeCB = new FakeCB();
$fakeCB->install();
$out = true;
//$fakeCB->install();
}
}

View File

@@ -267,17 +267,21 @@
{loop type="payment" name="payments" force_return="true"}
{loop type="image" name="paymentspicture" source="module" source_id=$ID force_return="true" width="100" height="72"}
<li>
<div class="radio">
<label for="payment_<?php echo $key; ?>">
<input type="radio" name="payment" id="payment_<?php echo $key; ?>" value="<?php echo $value; ?>">
<img src="img/payment/<?php echo $value; ?>.png">
<label for="payment_{$ID}">
<input type="radio" name="payment" id="payment_{$ID}" value="test">
<img src="{$IMAGE_URL}">
</label>
</div>
</li>
{/loop}
{/loop}
</div>
</div>