3
* ServicesHostingServicesPage.class.php
5
* This file contains the definition for the ServicesHostingServicesPage class
8
* @author John Diamond <jdiamond@solid-state.org>
9
* @copyright John Diamond <jdiamond@solid-state.org>
10
* @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
13
// Include the parent class
14
require BASE_PATH . "include/SolidStatePage.class.php";
17
* ServicesHostingServicesPage
19
* Display all of the hosting services offered by the provider
22
* @author John Diamond <jdiamond@solid-state.org>
24
class ServicesHostingServicesPage extends SolidStatePage
29
* Actions handled by this page:
30
* web_hosting_action (form)
32
* @param string $action_name Action
34
public function action( $action_name )
36
switch( $action_name )
38
case "web_hosting_action":
39
if( isset( $this->post['add'] ) )
42
$this->goto( "services_new_hosting" );
46
case "search_hosting_services":
47
$this->searchTable( "hosting_services", "hosting_services", $this->post );
50
case "hosting_services":
51
if( $this->post['remove'] )
53
$this->deleteService();
58
// No matching action, refer to base class
59
parent::action( $action_name );
64
* Delete Hosting Service
66
protected function deleteService()
68
foreach( $this->post['hosting_services'] as $serviceDBO )
70
delete_HostingServiceDBO( $serviceDBO );
73
$this->setMessage( array( "type" => "[HOSTING_SERVICES_DELETED]" ) );
b'\\ No newline at end of file'