SproutCMS

This is the code documentation for the SproutCMS project

class LocaleController

For things related to Locales

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-15
**/
class NewClassName extends LocaleController {
    
    /**
    * Extracts a prefix for use with address fields from $_GET['prefix']
    * 
    * If the get param is invalid, it is ignored
    **/
    protected function getPrefix () {
        // Method code goes here
    }
    
    /**
    * Outputs fields for an address which is not mandatory
    **/
    public function getAddressFields (string $country) {
        // Method code goes here
    }
    
    /**
    * Outputs fields for an address which is mandatory
    **/
    public function getAddressFieldsRequired (string $country) {
        // Method code goes here
    }
    
}
?>