Product.php |
|
|---|---|
|
This class parses and returns values from Usage:
|
class Product { |
|
Returns the parsed INI data from |
public static function get_info () {
if (! isset ($GLOBALS['elefant_product_info'])) {
$GLOBALS['elefant_product_info'] = parse_ini_file ('conf/product.php');
}
return $GLOBALS['elefant_product_info'];
} |
|
Returns the |
public static function name () {
$info = Product::get_info ();
return $info['name'];
} |
|
Returns the |
public static function website () {
$info = Product::get_info ();
return $info['website'];
} |
|
Returns the |
public static function logo_login () {
$info = Product::get_info ();
return $info['logo_login'];
} |
|
Returns the |
public static function logo_toolbar () {
$info = Product::get_info ();
return $info['logo_toolbar'];
} |
|
Returns the |
public static function stylesheet () {
$info = Product::get_info ();
return $info['stylesheet'];
}
}
?>
|