C# Класс DD4T.Templates.Base.Utils.BinaryPublisher

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
engine Engine
log TemplatingLogger
package Package

Открытые методы

Метод Описание
BinaryPublisher ( Package package, Engine engine ) : System
BinaryPublisher ( Package package, Engine engine, string targetStructureGroup ) : System
PublishBinariesInRichTextField ( string xhtml, BuildProperties buildProperties ) : string
PublishMultimediaComponent ( string uri, BuildProperties buildProperties ) : string

Защищенные методы

Метод Описание
GetECLUrl ( string uri ) : string
GetReferencePath ( System.Item item, string uri ) : string

Return the reference path for the binary which has just been published. This path is stored in the XML which is published to the broker, and may be used in the presentation engine to retrieve the binary. In this implementation, the reference path is the same as the publish path, but the method can be overridden to implement other logic. It could (for example) return the path to the binary through a CDN.

PublishItem ( System.Item item, TcmUri itemUri ) : void

Приватные методы

Метод Описание
ConstructFileName ( Component mmComp, string variantId ) : string

Описание методов

BinaryPublisher() публичный Метод

public BinaryPublisher ( Package package, Engine engine ) : System
package Package
engine Engine
Результат System

BinaryPublisher() публичный Метод

public BinaryPublisher ( Package package, Engine engine, string targetStructureGroup ) : System
package Package
engine Engine
targetStructureGroup string
Результат System

GetECLUrl() защищенный Метод

protected GetECLUrl ( string uri ) : string
uri string
Результат string

GetReferencePath() защищенный Метод

Return the reference path for the binary which has just been published. This path is stored in the XML which is published to the broker, and may be used in the presentation engine to retrieve the binary. In this implementation, the reference path is the same as the publish path, but the method can be overridden to implement other logic. It could (for example) return the path to the binary through a CDN.
protected GetReferencePath ( System.Item item, string uri ) : string
item System.Item The templating Item containing the multimedia component (including the publish path)
uri string The uri of the multimedia component
Результат string

PublishBinariesInRichTextField() публичный Метод

public PublishBinariesInRichTextField ( string xhtml, BuildProperties buildProperties ) : string
xhtml string
buildProperties BuildProperties
Результат string

PublishItem() защищенный Метод

protected PublishItem ( System.Item item, TcmUri itemUri ) : void
item System.Item
itemUri TcmUri
Результат void

PublishMultimediaComponent() публичный Метод

public PublishMultimediaComponent ( string uri, BuildProperties buildProperties ) : string
uri string
buildProperties BuildProperties
Результат string

Описание свойств

engine защищенное свойство

protected Engine engine
Результат Engine

log защищенное свойство

protected TemplatingLogger log
Результат TemplatingLogger

package защищенное свойство

protected Package package
Результат Package