for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @package Skeleton module
* @author Iurii Makukh <[email protected]>
* @copyright Copyright (c) 2015, Iurii Makukh
* @license https://www.gnu.org/licenses/gpl.html GNU/GPLv3
*/
namespace gplcart\modules\skeleton;
* Main class for Skeleton module
class Main
{
* Implements hook "route.list"
* @param array $routes
public function hookRouteList(array &$routes)
$routes['admin/tool/skeleton'] = array(
'menu' => array('admin' => 'Skeleton'),
'handlers' => array(
'controller' => array('gplcart\\modules\\skeleton\\controllers\\Skeleton', 'editSkeleton')
)
);
}
* Implements hook "job.handlers"
* @param array $handlers
public function hookJobHandlers(array &$handlers)
$handlers['skeleton'] = array(
'process' => array('gplcart\\modules\\skeleton\\handlers\\Extract', 'process')
),
* Implements hook "cron.run.after"
public function hookCronRunAfter()
gplcart_file_empty(gplcart_file_private_module('skeleton'), array('zip'), 24 * 60 * 60);