View Single Post
  #1  
Old 11-24-2015, 03:05 PM
 
backyardfruit backyardfruit is offline
    
Join Date: Nov 2015
Posts: 1
 

Default Custom Module that Runs Every Hour

I've got a blank new module. How would I go about adding some functionality to get my module to push product information to a third party every hour?

I'm totally new to writing modules for X-Cart. How do I find what functions I can extend/override?

PHP Code:
<?php
namespace XLite\Module\BackyardFruit\Indexing;
 
 
abstract class 
Main extends \XLite\Module\AModule
{
    
/**
     * Author name
     *
     * @return string
     */
    
public static function getAuthorName()
    {
        return 
'backyardfruit';
    }
 
    
/**
     * Module name
     *
     * @return string
     */
    
public static function getModuleName()
    {
        return 
'Indexing Module';
    }
 
    
/**
     * Get module major version
     *
     * @return string
     */
    
public static function getMajorVersion()
    {
        return 
'0.1';
    }
 
    
/**
     * Module version
     *
     * @return string
     */
    
public static function getMinorVersion()
    {
        return 
1;
    }
 
    
/**
     * Module description
     *
     * @return string
     */
    
public static function getDescription()
    {
        return 
'This module will send all products to third party every hour.';
    }
}
__________________
---
X-Cart 5.2.7
Reply With Quote