Advertisement
Guest User

PrestashopModuleTest

a guest
Sep 3rd, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.87 KB | None | 0 0
  1. <?php
  2.  
  3. if( !defined( '_PS_VERSION_' ) )
  4.     exit;
  5.  
  6. class Chrw extends Module{
  7.    
  8.     public function __construct(){
  9.        
  10.         $this->name = 'chrw';
  11.         $this->tab = 'front_office_features';
  12.         $this->version = '1.0.0';
  13.         $this->author = 'Nome Cognome';
  14.         $this->need_instance = 1;
  15.         $this->ps_versions_compliancy = array( 'min' => '1.6' );
  16.         $this->bootstrap = true;
  17.        
  18.         parent::__construct();
  19.        
  20.         $this->displayName = $this->l( 'CHRW Module' );
  21.         $this->description = $this->l( 'Modulo di prova' );
  22.        
  23.         if( !Configuration::get( 'CHRW') )
  24.             $this->warning = $this->l( 'No name provid' );
  25.        
  26.     }//__construct
  27.    
  28.     public function install() {
  29.        
  30.         return ( parent::install()
  31.             AND $this->registerHook('displayFooter')
  32.         );
  33.        
  34.     }//install
  35.    
  36.     public function hookDisplayFooter( $params ) {
  37.        
  38.         var_dump( 'debug' );
  39.    
  40.     }//hookDisplayFooter
  41.    
  42. }//Chrw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement