aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes/BigPipe/Resource.php
AgeCommit message (Collapse)AuthorFilesLines
2021-10-24Fix a bug in the Item constructor parameter listHEADmasterThomas Lange1-1/+1
The id parameter of the Pagelet and Resource constructor doesn't accept NULL values anymore (since 76cdd118d68bda3b7b29b192c7bf3d6e02bd6079). Therefore, allow NULL values by using the parameter type "?string" instead of "string" to allow either string values or NULL.
2021-10-24Rename several properties and method parametersThomas Lange1-6/+6
* Rename "ID" property of the Item class to "id" * Rename "customID" constructor parameter to "id" * Rename "resourceURL" property of the Resource class to "url" * Rename "resourceURL" constructor parameter to "url"
2021-10-24Add parameter and return types for all PHP methodsThomas Lange1-4/+4
2021-10-24Reformat PHP code in "getStructure" methodThomas Lange1-1/+5
2021-10-24Fix constructor parameters for Resource classesThomas Lange1-1/+1
The first parameter for the constructor of the Resource classes should not be optional if the next parameters obviously are non-optional. The optional parameters (if any) must come after the required parameters.
2021-10-24Remove closing tags and ensure LF at end of filesThomas Lange1-1/+0
Remove the unnecessary PHP closing tags and ensure that *all* non-binary files ending with an LF character.
2018-01-26Remove static $count property and use spl_object_hash() insteadThomas Lange1-2/+1
2017-11-23The file permissions have been normalized.Thomas Lange1-0/+0
2017-10-21Code optimization: The method "getStructure" has been added to the abstract ↵Thomas Lange1-0/+7
Item class.
2016-07-10Comment updates: Separate email address for code stuff.Thomas Lange1-1/+1
2016-07-10Each resource has now an ID; Code improvements and comment blocks added.Thomas Lange1-26/+11
2016-06-25Update with new features and code improvements.Thomas Lange1-0/+74
+ New classes have been added: "BigPipe\Resource", "BigPipe\Resource\CSS", "BigPipe\Resource\JS". If you wan't to add a resource to a Pagelet, you can now built a new resource object with the "CSS" or "JS" class (the "Resource" class is abstract and the parent class of "CSS" and "JS") and can add PhaseDoneJS callbacks for this resources with "Resource::addPhaseDoneJS()" similar to "Pagelet::addPhaseDoneJS()". To add the resource to your pagelet: "$Pagelet->addResource($Resource)". Of course, you can still use the two SHORT methods "Pagelet::addCSS()" and "Pagelet::addJS()" which needs only one parameter with the resource URL. + Each resource has now PhaseDoneJS callbacks for 3 phases (Object initializied [INIT], Loading started [LOAD], Loading complete [DONE]). + Check your usage of the PhaseDoneJS callback constants of the Pagelet class: These constants have been renamed. + Debugging mode: Just set BigPipe::debugging(TRUE) and each pagelet and resource will be pass through a function which adds PhaseDoneJS callbacks with debug informations (Look now at the Javascript console and enjoy the beautiful colors which makes the debug informations better readable for your eyes. \(o_o)/). + Several code improvements on almost all files.