Skip to content

reference:U addPage

Aaron Junker edited this page Apr 24, 2021 · 7 revisions

Function $U->addPage(string $content, string $name, string $code, int $authorID, string $date, int $online):bool

Adds a content page

Arguments

$content

Kind of the content.

$name

Name of the new page.

$code

The code of the page.

$authorID

Id of the author of the page.

$date

The date of creation of the page.

$online

1 if online, 0 if offline.

Return value

True if page adding has succeeded and False if page adding couldn't finish.

Example

$U->addPage("blog", "Test", "<p>test</p>", 1, date("Y-m-d"), 1);
Clone this wiki locally