Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6324301
commit 161db9a
Showing
13 changed files
with
1,921 additions
and
2,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,59 @@ | ||
<?php | ||
/** | ||
* Google config class file. | ||
* | ||
* setup the google helper. | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.dogmatic.co.za | ||
* @package google | ||
* @subpackage google.setup | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
*/ | ||
class GoogleConfig | ||
{ | ||
/** | ||
* Current version: http://github.com/dogmatic/cakephp_google_plugin | ||
* @access public | ||
* @var string | ||
*/ | ||
public $version = '0.1'; | ||
/** | ||
* Google config class file. | ||
* | ||
* setup the google helper. | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.dogmatic.co.za | ||
* @package google | ||
* @subpackage google.setup | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
*/ | ||
class GoogleConfig { | ||
/** | ||
* Current version: http://github.com/dogmatic/cakephp_google_plugin | ||
* | ||
* @access public | ||
* @var string | ||
*/ | ||
public $version = '0.1'; | ||
|
||
/** | ||
* Settings | ||
* @access public | ||
* @var array | ||
*/ | ||
public $settings = array(); | ||
/** | ||
* Settings | ||
* | ||
* @access public | ||
* @var array | ||
*/ | ||
public $settings = array(); | ||
|
||
/** | ||
* Singleton Instance | ||
* @access private | ||
* @var array | ||
* @static | ||
*/ | ||
private static $__instance; | ||
/** | ||
* Singleton Instance | ||
* | ||
* @access private | ||
* @var array | ||
* @static | ||
*/ | ||
private static $__instance; | ||
|
||
/** | ||
* @access private | ||
* @return void | ||
*/ | ||
function __construct() | ||
{ | ||
/** | ||
* analytics setup | ||
*/ | ||
$analytics = array( | ||
'profile_id' => 'xxxxxxxx-x' | ||
); | ||
Configure::write( 'Google.Analytics', $analytics ); | ||
} | ||
} | ||
/** | ||
* | ||
* @access private | ||
* @return void | ||
*/ | ||
function __construct() { | ||
/** | ||
* analytics setup | ||
*/ | ||
$analytics = array( | ||
'profile_id' => 'xxxxxxxx-x' | ||
); | ||
Configure::write('Google.Analytics', $analytics); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,35 @@ | ||
<?php | ||
App::import( | ||
array( | ||
'type' => 'File', | ||
'name' => 'Google.GoogleConfig', | ||
'file' => 'config'. DS .'setup.php' | ||
) | ||
); | ||
App::import( | ||
array( | ||
'type' => 'File', | ||
'name' => 'Google.GoogleConfig', | ||
'file' => 'config' . DS . 'setup.php' | ||
) | ||
); | ||
|
||
/** | ||
* Google App Controller class file. | ||
* | ||
* the google_appcontroller file, extends AppController | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.dogmatic.co.za | ||
* @package google | ||
* @subpackage google.controllers.google_app_controller | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
*/ | ||
class GoogleAppController extends AppController | ||
{ | ||
function beforeFilter() | ||
{ | ||
parent::beforeFilter(); | ||
/** | ||
* Google App Controller class file. | ||
* | ||
* the google_appcontroller file, extends AppController | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.dogmatic.co.za | ||
* @package google | ||
* @subpackage google.controllers.google_app_controller | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
*/ | ||
class GoogleAppController extends AppController { | ||
function beforeFilter() { | ||
parent::beforeFilter(); | ||
|
||
$GoogleConfig = new GoogleConfig(); | ||
} | ||
} | ||
|
||
$GoogleConfig = new GoogleConfig(); | ||
} | ||
} | ||
?> |
Oops, something went wrong.