Location: PHPKode > projects > Neobill > NeoBill0.5.6/util/services.php
<?php
/**
 * services.php
 *
 * This file contains functions useful for the Products and Services Page
 *
 * @package Utilities
 * @author John Diamond <hide@address.com>
 * @copyright John Diamond <hide@address.com>
 * @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
 */

/**
 * Services Stats
 *
 * Returns Web Hosting Service statistics in a hash containing the following keys:
 *   count - Number of web hosting services in the database
 *
 * @return array Stats
 */
function services_stats() {
	$stats['count'] = count_all_HostingServiceDBO();

	return $stats;
}

/**
 * Domain Service Stats
 *
 * Returns Domains Service statistics in a hash containing the following keys:
 *   count - Number of domain services in the database
 *
 * @return array Domain service stats
 */
function domain_services_stats() {
	$stats['count'] = count_all_DomainServiceDBO();

	return $stats;
}

/**
 * Product Stats
 *
 * Returns Product statistics in a hash containing the following keys:
 *   count - Number of domain services in the database
 *
 * @return array Product stats
 */
function products_stats() {
	$stats['count'] = count_all_ProductDBO();

	return $stats;
}

?>
Return current item: Neobill