cheque module
This commit is contained in:
@@ -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()
|
||||
|
||||
BIN
local/modules/Cheque/images/cheque.png
Normal file
BIN
local/modules/Cheque/images/cheque.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
Reference in New Issue
Block a user