diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-21 19:40:04 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-21 19:40:04 +0100 |
| commit | 8439f9a17d01d58057ef65e439bdd3fb6475f69f (patch) | |
| tree | c6afc0952a043c79ad5afbab372b78c9726887ce /liberty_plugins | |
| parent | 856ead0e4bc25be5dc6c770fc8da8aade2d83e12 (diff) | |
| download | stock-8439f9a17d01d58057ef65e439bdd3fb6475f69f.tar.gz stock-8439f9a17d01d58057ef65e439bdd3fb6475f69f.tar.bz2 stock-8439f9a17d01d58057ef65e439bdd3fb6475f69f.zip | |
Rename gallery→assembly, image→component throughout class SQL and PHP
Table names: stock_gallery→stock_assembly, stock_image→stock_component,
stock_gallery_image_map→stock_assembly_component_map. Column names:
gallery_id→assembly_id, image_id→component_id, gallery_content_id→assembly_content_id.
Properties: mGalleryId→mAssemblyId, mImageId→mComponentId, mGalleryPath→mAssemblyPath.
Methods: loadImages→loadComponents, loadCurrentImage→loadCurrentComponent,
getImageCount→getComponentCount, getParentGalleries→getParentAssemblies, etc.
Sequences corrected to stock_assembly_id_seq / stock_component_id_seq.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'liberty_plugins')
| -rwxr-xr-x | liberty_plugins/data.carousel.php | 2 | ||||
| -rwxr-xr-x | liberty_plugins/data.gallery.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/liberty_plugins/data.carousel.php b/liberty_plugins/data.carousel.php index 06d497c..cab7c32 100755 --- a/liberty_plugins/data.carousel.php +++ b/liberty_plugins/data.carousel.php @@ -80,7 +80,7 @@ function data_carousel( $pData, $pParams ) { $gallery = new StockComponent(); $listHash = $pParams; $listHash['size'] = 'large'; - $listHash['gallery_id'] = $pParams['id']; + $listHash['assembly_id'] = $pParams['id']; $listHash['max_records'] = 10; $listHash['sort_mode'] = 'item_position_asc'; $images = $gallery->getList( $listHash ); diff --git a/liberty_plugins/data.gallery.php b/liberty_plugins/data.gallery.php index 7eda88d..430a616 100755 --- a/liberty_plugins/data.gallery.php +++ b/liberty_plugins/data.gallery.php @@ -81,7 +81,7 @@ function data_gallery( $pData, $pParams ) { $gallery = new StockComponent(); $listHash = $pParams; $listHash['size'] = 'small'; - $listHash['gallery_id'] = $pParams['id']; + $listHash['assembly_id'] = $pParams['id']; $listHash['max_records'] = 3; $listHash['sort_mode'] = 'random'; $images = $gallery->getList( $listHash ); |
