Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
title/module/my_module/my_module.php
linenumberstrue
<?php
use Blesta\Core\Util\Modules\Registrar;

class Namesilo extends Module implements Registrar
{
	...
	
    public function checkTransferAvailability($domain, $module_row_id = null)
    {
		#
		# TODO: Check if the domain can be transferred
		#
    }

	public function checkAvailability($domain, $module_row_id = null) {
		#
		# TODO: Check if the domain is available
		#
	}

	public function getExpirationDate($domain, $format = 'Y-m-d H:i:s', $module_row_id = null) {
		#
		# TODO: Get the expiration date of the domain
		#
	}

	public function getTlds($module_row_id = null) {
		// Returns a list of the TLDs supported by the module
		return [
			'.com',
			'.net',
			'.org'
		];
	}
	...
}

...