Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • 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
    • Orders
    • Serializers
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Interfaces
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • 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
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • InfoBoxWriter

Interfaces

  • InfoBoxDeleterInterface
  • InfoBoxMessageInterface
  • InfoBoxReaderInterface
  • InfoBoxServiceInterface
  • InfoBoxWriterInterface

Class InfoBoxWriter

Class InfoBoxWriter

InfoBoxWriter implements InfoBoxWriterInterface
Package: InfoBox\Interfaces
Category: System
Located at Services/Core/InfoBox/Writer/InfoBoxWriter.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

InfoBoxWriterInterface::write()
public
# reactivate( )

Reactivates all messages.

Reactivates all messages.

Implementation of

InfoBoxWriterInterface::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

InfoBoxWriterInterface::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. Default value is 604800 which equals 1 week.

Info box item reactivation time limit. Default value is 604800 which equals 1 week.

# 604800
API documentation generated by ApiGen