PHP Класс Horde_Push, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Gunnar Wrobel ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
addContent ( string | resource $content, string $mime_type = 'text/plain', array $params = [] ) : Horde_Push Add content to this element.
addRecipient ( Horde_Push_Recipient $recipient ) : Horde_Push Add a recipient for this element.
addReference ( string $reference ) : Horde_Push Add a URL reference for this element.
addTag ( string $tag ) : Horde_Push Add a tag for this element.
getContent ( ) : array Return the contents for this element.
getMimeTypes ( ) : array Return the contents by MIME type for this element.
getReferences ( ) : array Retrieve the URL references for this element.
getStringContent ( integer $index ) : string Return the content at the given index as a string.
getSummary ( ) : string Return the summary for this content element.
getTags ( ) : array Retrieve the tags for this element.
hasReferences ( ) : boolean Indicate if this element has URL references.
hasTags ( ) : boolean Indicate if this element has tags.
push ( array $options = [] ) : Horde_Push Push the content to the recipients.
setSummary ( string $summary ) : Horde_Push Set the summary for this content element.

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

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

Add content to this element.
public addContent ( string | resource $content, string $mime_type = 'text/plain', array $params = [] ) : Horde_Push
$content string | resource The UTF-8 encoded content.
$mime_type string The MIME type of the content.
$params array Content specific parameters.
Результат Horde_Push This content element.

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

Add a recipient for this element.
public addRecipient ( Horde_Push_Recipient $recipient ) : Horde_Push
$recipient Horde_Push_Recipient The recipient.
Результат Horde_Push This content element.

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

Add a URL reference for this element.
public addReference ( string $reference ) : Horde_Push
$reference string The link.
Результат Horde_Push This content element.

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

Add a tag for this element.
public addTag ( string $tag ) : Horde_Push
$tag string The tag.
Результат Horde_Push This content element.

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

Return the contents for this element.
public getContent ( ) : array
Результат array The content list.

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

Return the contents by MIME type for this element.
public getMimeTypes ( ) : array
Результат array The content list ordered by MIME type.

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

Retrieve the URL references for this element.
public getReferences ( ) : array
Результат array The URL references.

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

Return the content at the given index as a string.
public getStringContent ( integer $index ) : string
$index integer Index of the content part.
Результат string The content.

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

Return the summary for this content element.
public getSummary ( ) : string
Результат string The summary.

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

Retrieve the tags for this element.
public getTags ( ) : array
Результат array The tags.

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

Indicate if this element has URL references.
public hasReferences ( ) : boolean
Результат boolean True, if there have been links added to the element.

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

Indicate if this element has tags.
public hasTags ( ) : boolean
Результат boolean True, if there have been tags added to the element.

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

Push the content to the recipients.
public push ( array $options = [] ) : Horde_Push
$options array Additional options.
Результат Horde_Push This content element.

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

Set the summary for this content element.
public setSummary ( string $summary ) : Horde_Push
$summary string The summary.
Результат Horde_Push This content element.