first commit
This commit is contained in:
24
admin/sections.photos.php
Normal file
24
admin/sections.photos.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
$main_class = 'SectionsPhotos';
|
||||
|
||||
class SectionsPhotos extends BaseAdminPhotos
|
||||
{
|
||||
use DatabaseCommunication;
|
||||
use \KupShop\ContentBundle\Util\BlocksTrait;
|
||||
|
||||
protected $relation_table_name = 'photos_sections_relation';
|
||||
protected $photo_type = 4;
|
||||
protected $tablefield = 'id_section';
|
||||
protected $photo_nametype = 'Section';
|
||||
protected $photo_admin_name = 'section_additional';
|
||||
protected $copy_from = 'z sekce';
|
||||
protected $search_field = 'section';
|
||||
|
||||
public function handleMovePhoto()
|
||||
{
|
||||
parent::handleMovePhoto();
|
||||
|
||||
$this->updateBlocksPhotosPositions($this->getID(), 'sections', 'id_section');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user