NAME
Kernel::System::CustomPage::Content – Custom page content management.
DESCRIPTION
CustomPageContent functions.
PUBLIC INTERFACE
CustomPageContentAdd()
Add new Custom page.
my $CustomPageContentID = $CustomPageContentObject->CustomPageContentAdd(
CustomPageID => integer, # (required) Custom Page ID
Title => 'string', # (required) Title
Content => 'string', # (required) Content
Language => 'string', # (required) Language
UserID => 1, # (required) UserID
);
Returns: $CustomPageContentID = 1;
CustomPageContentUpdate()
Update existing Custom page.
my $Success = $CustomPageContentObject->CustomPageContentUpdate(
CustomPageContentID => integer, # (required) Custom Page Content ID
CustomPageID => integer, # (required) Custom Page ID
Title => 'string', # (required) Title
Content => 'string', # (required) Content
Language => 'string', # (required) Language
UserID => 1, # (required) UserID
);
Returns: $Success = 1;
CustomPageContentGet()
Get Custom page content.
my %CustomPageContent = $CustomPageContentObject->CustomPageContentGet(
CustomPageContentID => 1,
);
Returns: %CustomPageContent = ( CustomPageContentID => 123, CustomPageID => 123, Title => 'Title', Content => 'Content', Language => 'en, CreateTime => 1232341, CreateBy => 1, ChangeTime => 1232341, ChangeBy => 1, );
CustomPageContentList()
Returns list of Custom pages.
my @CustomPages = $CustomPageContentObject->CustomPageContentList(
CustomPageID => 1, # (required) CustomPageID
);
Returns: @CustomPages = ( { CustomPageContentID => 123, CustomPageID => 123, Title => 'Custom page title', Content => 'Custom page content', Language => 'en', CreateTime => 123516513, CreateBy => 1, ChangeTime => 123516513, ChangeBy => 1, }, … );
CustomPageContentDelete()
Delete Custom page.
my $Success = $CustomPageContentObject->CustomPageContentDelete(
CustomPageContentID => 1, # (required) CustomPageID
);
Returns: $Success = 1;