Module Configuration

Config

Example of a Config class that stores the ModuleName configuration.

<?php
namespace Redaxscript\Modules\ModuleName;

use Redaxscript\Module;

/**
 * children class to store module configuration
 *
 * @since 3.0.0
 *
 * @package Redaxscript
 * @category Modules
 * @author Author Name
 */

class Config extends Module\Module
{
	/**
	 * array of config
	 *
	 * @var array
	 */

	protected $_configArray =
	[
	];
}

Module

Example of a ModuleName class that extends from the Config class.

<?php
namespace Redaxscript\Modules\ModuleName;

/**
 * long module description
 *
 * @since 3.0.0
 *
 * @package Redaxscript
 * @category Modules
 * @author Author Name
 */

class ModuleName extends Config
{
	/**
	 * array of the module
	 *
	 * @var array
	 */

	protected static $_moduleArray =
	[
		'name' => 'Module Name',
		'alias' => 'ModuleName',
		'author' => 'Author Name',
		'description' => 'Long module description',
		'version' => '3.0.0',
		'status' => 1,
		'access' => null
	];
}
Edit on GitHub