From dc0b1a382b5f980cffe87e9965e659d07107026e Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sun, 10 Jul 2016 11:24:33 +0200 Subject: Each resource has now an ID; Code improvements and comment blocks added. --- include/classes/BigPipe/Resource/CSS.php | 11 +++++++++-- include/classes/BigPipe/Resource/JS.php | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'include/classes/BigPipe/Resource') diff --git a/include/classes/BigPipe/Resource/CSS.php b/include/classes/BigPipe/Resource/CSS.php index 71d2244..b02f1cb 100644 --- a/include/classes/BigPipe/Resource/CSS.php +++ b/include/classes/BigPipe/Resource/CSS.php @@ -1,4 +1,11 @@ ] # +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# +# # +# [More information coming soon] # +# # +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# namespace BigPipe\Resource; class CSS extends \BigPipe\Resource { @@ -6,8 +13,8 @@ class CSS extends \BigPipe\Resource { #=============================================================================== # Build resource #=============================================================================== - public function __construct($resourceURL) { - parent::__construct(parent::TYPE_STYLESHEET, $resourceURL); + public function __construct($customID = NULL, $resourceURL) { + parent::__construct($customID, parent::TYPE_STYLESHEET, $resourceURL); } #=============================================================================== diff --git a/include/classes/BigPipe/Resource/JS.php b/include/classes/BigPipe/Resource/JS.php index f9e109b..e79bd8b 100644 --- a/include/classes/BigPipe/Resource/JS.php +++ b/include/classes/BigPipe/Resource/JS.php @@ -1,4 +1,11 @@ ] # +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# +# # +# [More information coming soon] # +# # +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# namespace BigPipe\Resource; class JS extends \BigPipe\Resource { @@ -6,8 +13,8 @@ class JS extends \BigPipe\Resource { #=============================================================================== # Build resource #=============================================================================== - public function __construct($resourceURL) { - parent::__construct(parent::TYPE_JAVASCRIPT, $resourceURL); + public function __construct($customID = NULL, $resourceURL) { + parent::__construct($customID, parent::TYPE_JAVASCRIPT, $resourceURL); } #=============================================================================== -- cgit v1.2.3