This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/application/classes/company.php
2011-05-03 09:49:04 +10:00

51 lines
1.0 KiB
PHP

<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class is for access company informaiton.
*
* @package OSB
* @subpackage Page
* @category Helpers
* @author Deon George
* @copyright (c) 2010 Deon George
* @license http://dev.leenooks.net/license.html
*/
class Company {
public static function instance() {
return new Company;
}
public static function address($ln='<br/>') {
// @todo Company address should be calculated
return implode($ln,array('PO Box 149','Bendigo, VIC 3550'));
}
public static function contacts() {
// @todo Company phone should be calculated
return 'Tel: 03 5410 1135';
}
public static function render() {
echo static::name();
echo static::address();
echo static::contacts();
}
/**
* Return the HTML to render the company address
*/
public function __toString() {
try {
return static::render();
}
// Display the exception message
catch (Exception $e) {
Kohana::exception_handler($e);
return '';
}
}
}
?>