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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-01-14 09:22:33 +01:00
|
|
|
* @return bool
|
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());
|
|
|
|
}
|
|
|
|
}
|