The Image_Content trait provides methods for managing an image repository, handling teaser images, and processing image-related operations in a content management system.

Main Methods

repository_overview()

Loads and displays the repository overview.

teaser_selector(type=false,type = false, entityId = false, $has_article = true)

Handles the selection of teaser images for entities.

type
mixed

The type of entity.

entityId
mixed

The ID of the entity.

has_article
boolean

Whether the entity has an associated article.

repo_module(moduletype=image,module_type = 'image', item_id = false, $module_id = false)

Manages images for specific modules.

module_type
string

The type of module, defaulting to ‘image’.

item_id
mixed

The ID of the item associated with the module.

module_id
mixed

The ID of the module.

loadRepoViewWithData($data = array())

Loads the repository view with filtered data.

repoFilter(data,data, number = null, $lastElem = null)

Filters repository data based on various criteria.

deletePreviousModuleImages()

Deletes previously associated module images.

updateModuleImages()

Updates images associated with a module.

get_repo_image()

Retrieves a specific repository image.

image_categories()

Manages image categories.

crop_image()

Handles image cropping operations.

Utility Methods

get_repo_data($data = array())

Retrieves repository data including categories and images.

Key Features

  • Teaser image selection for entities
  • Module-specific image management
  • Image filtering based on various criteria (date, category, tags, etc.)
  • Image cropping functionality
  • Category management for images