Skip to content

Commit

Permalink
Update copyright and docblock strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Knoppe committed Nov 3, 2015
1 parent 92d287a commit 65f661c
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 13 deletions.
40 changes: 36 additions & 4 deletions src/app/code/community/Guidance/Cachebuster/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* NOTICE OF LICENSE
*
* Copyright 2012 Guidance Solutions
* Copyright 2015 Gordon Knoppe
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,24 +19,49 @@
* @author Gordon Knoppe
* @category Guidance
* @package Cachebuster
* @copyright Copyright (c) 2012 Guidance Solutions (http://www.guidance.com)
* @copyright Copyright (c) 2015 Gordon Knoppe
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
*/

class Guidance_Cachebuster_Helper_Data extends Mage_Core_Helper_Data
{

/**
* Configuration path for module status
*/
const XML_PATH_IS_ENABLED = 'system/guidance_cachebuster/is_enabled';

/**
* Configuration path for supported file extensions
*/
const XML_PATH_FILE_EXTENSIONS = 'system/guidance_cachebuster/file_extensions';

/**
* Configuration path for URL keys
*/
const XML_PATH_FILE_URL_KEYS = 'system/guidance_cachebuster/url_keys';

protected $_fileExtensions;
/**
* File extensions cache
*
* @var array
*/
protected $_fileExtensions = array();

/**
* Check if module is enabled
*
* @return mixed
*/
public function isEnabled()
{
return Mage::getStoreConfig(self::XML_PATH_IS_ENABLED);
}

/**
* Get enabled file extensions
*
* @return array
*/
public function enabledFileExtensions()
{
if (is_null($this->_fileExtensions)) {
Expand All @@ -47,6 +72,8 @@ public function enabledFileExtensions()
}

/**
* Get configured string parser instance
*
* @return Guidance_Cachebuster_Model_Parser
*/
public function getParser()
Expand All @@ -72,6 +99,11 @@ public function getParser()
return $parser;
}

/**
* Get configured URL keys
*
* @return mixed
*/
protected function _getUrlKeys()
{
$urls = Mage::getStoreConfig(self::XML_PATH_FILE_URL_KEYS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* NOTICE OF LICENSE
*
* Copyright 2012 Guidance Solutions
* Copyright 2015 Gordon Knoppe
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,7 +19,7 @@
* @author Gordon Knoppe
* @category Guidance
* @package Cachebuster
* @copyright Copyright (c) 2012 Guidance Solutions (http://www.guidance.com)
* @copyright Copyright (c) 2015 Gordon Knoppe
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
*/

Expand Down
8 changes: 7 additions & 1 deletion src/app/code/community/Guidance/Cachebuster/Model/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ class Guidance_Cachebuster_Model_Parser
/** @var array */
protected $_maps = array();

/** @var array */
/**
* File extensions cache
*
* @var array
*/
protected $_fileExtensions = array();

/**
Expand Down Expand Up @@ -121,6 +125,8 @@ protected function _sanitizeUrl($url)
}

/**
* Parse URLs in given string
*
* @param string $html
* @return array
*/
Expand Down
4 changes: 2 additions & 2 deletions src/app/code/community/Guidance/Cachebuster/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* NOTICE OF LICENSE
*
* Copyright 2012 Guidance Solutions
* Copyright 2015 Gordon Knoppe
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,7 +20,7 @@
* @author Gordon Knoppe
* @category Guidance
* @package Cachebuster
* @copyright Copyright (c) 2012 Guidance Solutions (http://www.guidance.com)
* @copyright Copyright (c) 2015 Gordon Knoppe
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
*/
-->
Expand Down
4 changes: 2 additions & 2 deletions src/app/code/community/Guidance/Cachebuster/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* NOTICE OF LICENSE
*
* Copyright 2012 Guidance Solutions
* Copyright 2015 Gordon Knoppe
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,7 +20,7 @@
* @author Gordon Knoppe
* @category Guidance
* @package Cachebuster
* @copyright Copyright (c) 2012 Guidance Solutions (http://www.guidance.com)
* @copyright Copyright (c) 2015 Gordon Knoppe
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
*/
-->
Expand Down
4 changes: 2 additions & 2 deletions src/app/etc/modules/Guidance_Cachebuster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* NOTICE OF LICENSE
*
* Copyright 2012 Guidance Solutions
* Copyright 2015 Gordon Knoppe
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,7 +20,7 @@
* @author Gordon Knoppe
* @category Guidance
* @package Cachebuster
* @copyright Copyright (c) 2012 Guidance Solutions (http://www.guidance.com)
* @copyright Copyright (c) 2015 Gordon Knoppe
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
*/
-->
Expand Down

0 comments on commit 65f661c

Please sign in to comment.