On a successful import this method returns a PersistentResource object representing the
newly imported persistent resource and automatically publishes it to the configured
publication target.
public importResource ( string | resource $source, string $collectionName = ResourceManager::DEFAULT_PERSISTENT_COLLECTION_NAME, string $forcedPersistenceObjectIdentifier = null ) : |
||
$source | string | resource | A URI (can therefore also be a path and filename) or a PHP resource stream(!) pointing to the PersistentResource to import |
$collectionName | string | Name of the collection this new resource should be added to. By default the standard collection for persistent resources is used. |
$forcedPersistenceObjectIdentifier | string | INTERNAL: Force the object identifier for this resource to the given UUID |
리턴 | A resource object representing the imported resource |