SproutCMS

This is the code documentation for the SproutCMS project

class EmailShareController

- No description yet -

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-15
**/
class NewClassName extends EmailShareController {
    
    /**
    * Form to share
    **/
    public function share () {
        // Method code goes here
    }
    
    /**
    * Send a shared email
    **/
    public function submit () {
        // Method code goes here
    }
    
    /**
    * Thank you page
    **/
    public function thanks () {
        // Method code goes here
    }
    
    /**
    * Constructor
    **/
    public function __construct () {
        // Method code goes here
    }
    
    /**
    * Validate that a given URL is absolute and for this site
    * 
    * Allows for subdomains of the current site, so example.com can share a link to app.example.com
    * This is a ends-with chec, so example.com cannot share example.com.au
    **/
    private function validateUrl (string $url) {
        // Method code goes here
    }
    
}
?>