summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-21 19:40:04 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-21 19:40:04 +0100
commit8439f9a17d01d58057ef65e439bdd3fb6475f69f (patch)
treec6afc0952a043c79ad5afbab372b78c9726887ce /modules
parent856ead0e4bc25be5dc6c770fc8da8aade2d83e12 (diff)
downloadstock-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 'modules')
-rwxr-xr-xmodules/mod_banner_rand.php2
-rwxr-xr-xmodules/mod_images.php2
-rwxr-xr-xmodules/mod_specials.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/mod_banner_rand.php b/modules/mod_banner_rand.php
index 9afbec1..e083bf1 100755
--- a/modules/mod_banner_rand.php
+++ b/modules/mod_banner_rand.php
@@ -17,7 +17,7 @@ if ( !empty($gBitSmarty->tpl_vars) ) {
$tpls = $gBitSmarty->tpl_vars;
$module_params = $tpls['moduleParams'];
$listHash = $module_params->value;
- $listHash['gallery_id'] = $module_params->value['module_rows'];
+ $listHash['assembly_id'] = $module_params->value['module_rows'];
}
$image = new StockComponent();
diff --git a/modules/mod_images.php b/modules/mod_images.php
index a01f8e4..76814f1 100755
--- a/modules/mod_images.php
+++ b/modules/mod_images.php
@@ -25,7 +25,7 @@ $listHash = $moduleParams->value;
if( !empty( $gContent ) && $gContent->getField( 'content_type_guid' ) == STOCKASSEMBLY_CONTENT_TYPE_GUID ) {
$displayCount = empty( $gContent->mItems ) ? 0 : count( $gContent->mItems );
$thumbCount = $gContent->mInfo['rows_per_page'] * $gContent->mInfo["cols_per_page"];
- $listHash['gallery_id'] = $gContent->mGalleryId;
+ $listHash['assembly_id'] = $gContent->mAssemblyId;
$display = $displayCount >= $thumbCount;
}
diff --git a/modules/mod_specials.php b/modules/mod_specials.php
index fc37db4..6c87ae1 100755
--- a/modules/mod_specials.php
+++ b/modules/mod_specials.php
@@ -21,7 +21,7 @@ $image = new StockComponent();
$display = true;
$listHash = $module_params;
-$listHash['gallery_id'] = 3;
+$listHash['assembly_id'] = 3;
if( $display ) {
$listHash['size'] = 'medium';