2022 April Release

Interface CooContent Permanent link for this heading

This interface describes methods available when working with contents.

Methods Permanent link for this heading

Return Type

Signature

boolean

Compare(
  content content)

content

Copy()

string

GetContent(
  transaction transaction,
  integer flags,
  integer codepage)

datetime

GetDate()

string

GetFile(
  optional string name,
  optional boolean generatetemp)

string

GetFileEx(
  optional transaction transaction,
  optional string name,
  optional integer flags)

string

GetHash()

integer

GetID()

integer

GetSize()

boolean

IsModified()

void

SetContent(
  transaction transaction,
  integer flags,
  integer codepage,
  string content)

void

SetFile(
  optional string name,
  optional boolean removeonrelease)

void

Split()

Methods Permanent link for this heading


Compare Permanent link for this heading

Compares a content with another content.

boolean Compare(
  content content)

Name

Description

content


Copy Permanent link for this heading

Copies a content.

content Copy()


GetContent Permanent link for this heading

Retrieves the content of a content as string.

string GetContent(
  transaction transaction,
  integer flags,
  integer codepage)

Name

Description

transaction

flags

codepage

Possible flags: COOGC_ACP, COOGC_UTF7, COOGC_UTF8

GetDate Permanent link for this heading

Retrieves the modification date of the content.

datetime GetDate()


GetFile Permanent link for this heading

Retrieves a file name containing the content.

string GetFile(
  optional string name,
  optional boolean generatetemp)

Name

Description

name

generatetemp


GetFileEx Permanent link for this heading

Retrieves a file name containing the content.

string GetFileEx(
  optional transaction transaction,
  optional string name,
  optional integer flags)

Name

Description

transaction

name

flags


GetHash Permanent link for this heading

Retrieves the hash of the content.

string GetHash()


GetID Permanent link for this heading

Retrieves the identification number of the content.

integer GetID()


GetSize Permanent link for this heading

Retrieves the size of the content.

integer GetSize()


IsModified Permanent link for this heading

Tests whether the content is modified.

boolean IsModified()


SetContent Permanent link for this heading

Sets the content of a content with a string.

void SetContent(
  transaction transaction,
  integer flags,
  integer codepage,
  string content)

Name

Description

transaction

flags

codepage

Possible flags: COOGC_ACP, COOGC_UTF7, COOGC_UTF8

content


SetFile Permanent link for this heading

Sets a file containing the content.

void SetFile(
  optional string name,
  optional boolean removeonrelease)

Name

Description

name

removeonrelease


Split Permanent link for this heading

Splits a content.

void Split()