Pagefiles::add()

Add a new Pagefile item or filename

If give a filename (string) it will create the new Pagefile item from it and add it.

Usage

$pagefiles->add($item);

Arguments

NameType(s)Description
$itemPagefile string

If item is a string (filename) it will create the new Pagefile item from it and add it.

Return value

$this

Object instance it was called from (method supports fluent interface).


Pagefiles methods and properties

API reference based on ProcessWire core version 3.0.252