Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • InfoBoxRepositoryWriter

Interfaces

  • InfoBoxFactoryInterface
  • InfoBoxMessageInterface
  • InfoBoxRepositoryDeleterInterface
  • InfoBoxRepositoryInterface
  • InfoBoxRepositoryReaderInterface
  • InfoBoxRepositoryWriterInterface
  • InfoBoxServiceInterface

Class InfoBoxRepositoryWriter

Class InfoBoxWriter

InfoBoxRepositoryWriter implements InfoBoxRepositoryWriterInterface
Package: InfoBox\Interfaces
Category: System
Located at Services/Core/InfoBox/Repositories/Writer/InfoBoxRepositoryWriter.php

Methods summary

public
# __construct( CI_DB_query_builder $db )

Constructor of the class InfoBoxWriter.

Constructor of the class InfoBoxWriter.

Parameters

$db
Query builder.
public
# write( InfoBoxMessage $message )

Adds a new message.

Adds a new message.

Parameters

$message
Info box message to save.

Implementation of

InfoBoxRepositoryWriterInterface::write()
public
# reactivate( )

Reactivates all messages.

Reactivates all messages.

Implementation of

InfoBoxRepositoryWriterInterface::reactivate()
public
# setStatus( IdType $id, StringType $status )

Updates a message status.

Updates a message status.

Parameters

$id
Message ID.
$status
Message status to set.

Implementation of

InfoBoxRepositoryWriterInterface::setStatus()

Properties summary

protected CI_DB_query_builder $db

Database connection.

Database connection.

#
protected string $infoBoxTable

Name of the table for the info box messages entries.

Name of the table for the info box messages entries.

# 'infobox_messages'
protected string $infoBoxTableDescription

Name of the table for the info box description entries.

Name of the table for the info box description entries.

# 'infobox_messages_description'
protected string $dateTimeFormat

Formatting pattern for date time values.

Formatting pattern for date time values.

# 'Y-m-d H:i:s'
protected LanguageProvider $languageProvider

Language provider.

Language provider.

#
protected string $id_column

Name of the ID column.

Name of the ID column.

# 'infobox_messages_id'
protected integer $reactivationTimeLimit

Info box item reactivation time limit.

Info box item reactivation time limit.

Default value is 604800 which equals 1 week.

# 604800
API documentation generated by ApiGen