<?php
/**
* PendingOrdersPage.class.php
*
* This file contains the definition for the Pending Orders Page class
*
* @package Pages
* @author John Diamond <hide@address.com>
* @copyright John Diamond <hide@address.com>
* @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
*/
// Include the parent class
require BASE_PATH . "include/SolidStatePage.class.php";
/**
* PendingOrdersPage
*
* Display all pending orders.
*
* @package Pages
* @author John Diamond <hide@address.com>
*/
class PendingOrdersPage extends SolidStatePage {
/**
* Action
*
* Actions handled by this page:
* browse_accounts_action (form)
*
* @param string $action_name Action
*/
function action( $action_name ) {
switch ( $action_name ) {
default:
// No matching action, refer to base class
parent::action( $action_name );
}
}
/**
* Initialize Inactive Accounts Page
*/
public function init() {
parent::init();
// Tell the orders table widget to only show "pending" orders
$widget = $this->forms['pending_orders']->getField( "orders" )->getWidget();
$widget->setStatus( "Pending" );
}
}
?>