Added invoice reminder details and other misc fixes
This commit is contained in:
@@ -64,17 +64,20 @@ class Config extends Kohana_Config {
|
||||
return Company::instance()->country();
|
||||
}
|
||||
|
||||
/**
|
||||
* Show a date using a site configured format
|
||||
*/
|
||||
public static function date($date) {
|
||||
return is_null($date) ? '' : date(Company::instance()->date_format(),$date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show a date using a site configured format
|
||||
* Show a date using a site configured format
|
||||
* @note We need this function here, since we call static:: methods, which need to resolve to the child class.
|
||||
*/
|
||||
public static function datetime($date) {
|
||||
return sprintf('%s %s',static::date($date),static::time($date));
|
||||
}
|
||||
*/
|
||||
public static function datetime($date) {
|
||||
return sprintf('%s %s',static::date($date),static::time($date));
|
||||
}
|
||||
|
||||
public static function language() {
|
||||
return Company::instance()->language();
|
||||
@@ -138,6 +141,9 @@ class Config extends Kohana_Config {
|
||||
return array_key_exists(strtolower($module),static::modules()) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Work out our site ID for multiehosting
|
||||
*/
|
||||
public static function siteid($format=FALSE) {
|
||||
return Company::instance()->site($format);
|
||||
}
|
||||
@@ -173,6 +179,9 @@ class Config extends Kohana_Config {
|
||||
return 'theme/'.(URL::admin_url() ? Kohana::$config->load('config')->theme_admin : Kohana::$config->load('config')->theme);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show a date using a site configured format
|
||||
*/
|
||||
public static function time($date) {
|
||||
return date(Company::instance()->time_format(),($date ? $date : time()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user