aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes/BigPipe/Item.php
AgeCommit message (Collapse)AuthorFilesLines
2021-10-24Rename several properties and method parametersThomas Lange1-2/+2
* 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-2/+2
2021-10-24Declare some BigPipe PHP library methods as voidThomas Lange1-2/+2
Class BigPipe\BigPipe: * addPhaseDoneJS Class BigPipe\Pagelet: * addHTML * addResource * addJSCode * addDependency * setTagName * setPlaceholderHTML
2021-10-24Rename misleading parameter "callback" to "code"Thomas Lange1-2/+2
Rename the second parameter for the "addPhaseDoneJS" method of the Item class from the misleading name "callback" to "code" because that method doesn't expect a real JS (or PHP) callback but rather simple JS code.
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-28Remove superflous function calls from two methodsThomas Lange1-1/+1
This commit removes the superflous function calls "removeLineBreaksAndTabs" from the "Pagelet::getStructure()" and "Item::addPhaseDoneJS()" method. If it bothers you when some properties of the JSON-encoded pagelet object contain line breaks and tabs (visible as "\r", "\n" and "\t"), then you'll need to remove them before you pass the string of javascript code to the corresponding methods: * $Pagelet->addJSCode(removeLineBreaksAndTabs($javascript_code)); * $Pagelet->addPhaseDoneJS(0, removeLineBreaksAndTabs($javascript_code));
2017-10-21Code optimization: The method "getStructure" has been added to the abstract ↵Thomas Lange1-0/+5
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-0/+38