2012-09-05 11:43:50 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class ControllerExtension extends Extension {
|
|
|
|
|
2012-11-09 23:20:03 +01:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public static $google_analytics_code = null;
|
2012-09-05 11:43:50 +02:00
|
|
|
|
|
|
|
/**
|
2012-11-09 23:20:03 +01:00
|
|
|
* @return string
|
2012-09-05 11:43:50 +02:00
|
|
|
*/
|
2012-11-09 23:20:03 +01:00
|
|
|
public function getGoogleAnalyticsCode() {
|
2012-09-05 11:43:50 +02:00
|
|
|
return self::$google_analytics_code;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2012-11-09 23:20:03 +01:00
|
|
|
* @return boolean
|
2012-09-05 11:43:50 +02:00
|
|
|
*/
|
2012-11-09 23:20:03 +01:00
|
|
|
public function IsDev() {
|
2012-09-05 11:43:50 +02:00
|
|
|
return (Director::isDev());
|
|
|
|
}
|
|
|
|
}
|