mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
23 lines
337 B
PHP
23 lines
337 B
PHP
<?php
|
|
|
|
class ControllerExtension extends Extension {
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public static $google_analytics_code = null;
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getGoogleAnalyticsCode() {
|
|
return self::$google_analytics_code;
|
|
}
|
|
|
|
/**
|
|
* @return boolean
|
|
*/
|
|
public function IsDev() {
|
|
return (Director::isDev());
|
|
}
|
|
} |