Go to file
Sam Minnee 6ef5785fc5
FIX: pre-cache loop content within SSViewer.
SSViewer iterates on Iterators that it receives twice: first to get the
total number of items, then to actually render each item.

This necessitates a rewind. In order to make more use of generators,
which are not rewindable, I’d like to remove the need for a rewind.

I’ve done this by caching the content of the iterator as an array
within SSViewer_Scope.

Although this means a bit of memory usage, there are no cases in which
code will get to this point without iterating on all items, which would
use the memory anyway. It would only create onerous impacts in cases
where you are iterating on very long iterators, which would mean you’re
rendering a very large page anyway, and probably have other performance
issues.
2022-09-15 13:29:00 +12:00
_config API Remove support for PDO (#10499) 2022-09-15 13:13:48 +12:00
.github MNT Only run cron on silverstripe account 2022-07-28 15:18:16 +12:00
.tx remove js transifex 2017-04-28 14:59:42 +12:00
client NEW: Improved task runner UI. (#9540) 2020-08-26 11:11:13 +12:00
lang NEW Search across multiple searchable fields by default (#10382) 2022-08-01 12:19:02 +12:00
src FIX: pre-cache loop content within SSViewer. 2022-09-15 13:29:00 +12:00
templates NEW: Improved task runner UI. (#9540) 2020-08-26 11:11:13 +12:00
tests NEW: ORM’ Query is a generator-based IteratorAggregate 2022-09-15 13:28:56 +12:00
thirdparty ENH PHP 8.1 compatibility 2022-04-14 13:12:59 +12:00
_config.php Bump deprecation to 4.0 in preparation for rc and stable tags 2017-08-29 15:02:36 +12:00
_register_database.php API Remove support for PDO (#10499) 2022-09-15 13:13:48 +12:00
.editorconfig Update composer.json 2017-10-12 11:53:12 +13:00
.gitattributes MNT Move docs to new repository (#10394) 2022-07-12 12:46:13 +12:00
.gitignore Ignore assets dir that can be created on dev/build 2018-09-29 22:52:08 +01:00
.upgrade.yml API Remove support for PDO (#10499) 2022-09-15 13:13:48 +12:00
cli-script.php NEW NullDatabase (#10016) 2022-02-04 10:07:27 +13:00
composer.json API Update translation to use symfony 6 2022-09-08 11:52:34 +12:00
CONTRIBUTING.md MNT Move docs to new repository (#10394) 2022-07-12 12:46:13 +12:00
LICENSE Create licence file so that GitHub (and humans) can more easily find it 2018-02-12 11:21:03 +00:00
phpcs.xml.dist MNT Travis shared config 2020-12-22 11:43:54 +13:00
phpunit.xml.dist API Upgrade SapphireTest to work with phpunit 9 (#10028) 2021-10-27 15:39:47 +13:00
README.md MNT Standardise modules 2022-08-01 10:05:19 +12:00
sake Add check for existence of 'which' command before proceeding with the script 2019-11-26 11:24:44 +00:00
silverstripe_version API CHANGE silverstripe_version file now contains the plain version number, rather than an SVN path 2012-02-01 18:42:21 +01:00
SUPPORT.md MNT Move docs to new repository (#10394) 2022-07-12 12:46:13 +12:00

Silverstripe Framework

CI Silverstripe supported module

PHP framework forming the base for the Silverstripe CMS (https://silverstripe.org). Requires a silverstripe-installer base project. Typically used alongside the cms module.

Installation

See installation on different platforms, and installation from source.

Bugtracker

Bugs are tracked on github.com. Please read our issue reporting guidelines.

Development and Contribution

If you would like to make changes to the Silverstripe core codebase, we have an extensive guide to contributing code.

Attribution