Minor fixes to statement, services and internal things

Many misc updates
This commit is contained in:
Deon George
2011-10-14 16:44:12 +11:00
parent 7876a16413
commit 56c11507f4
71 changed files with 2192 additions and 677 deletions

View File

@@ -15,24 +15,24 @@ class Company {
return new Company;
}
public static function name() {
return Config::sitename();
}
public static function street() {
// @todo Details should be obtained from DB
return 'PO Box 149';
return Config::instance()->so->display('site_address');
}
public static function city() {
// @todo Details should be obtained from DB
return 'Bendigo';
return Config::instance()->so->display('site_city');
}
public static function state() {
// @todo Details should be obtained from DB
return 'VIC';
return Config::instance()->so->display('site_state');
}
public static function pcode() {
// @todo Details should be obtained from DB
return '3550';
return Config::instance()->so->display('site_zip');
}
public static function address($ln='<br/>') {
@@ -40,13 +40,11 @@ class Company {
}
public static function phone() {
// @todo Company phone should be obtained from db
return '03 5410 1135';
return Config::instance()->so->display('site_phone');
}
public static function fax() {
// @todo Details should be obtained from DB
return '03 5410 1145';
return Config::instance()->so->display('site_fax');
}
public static function contacts() {