ars_Import(ctrl, importOption, importBuf, type, name, ...)

Import objects of type type and name name from the importBuf.
On success
Returns 1.
On failure
Returns 0.


        $buf = `cat /tmp/importfile.arx`;
	($a = ars_Import($ctrl, 
                         $buf, "Schema", "HD:HelpDesk", 
			 "Active_Link", "AL-FooBar")) || 
		die "$ars_errstr";

importOption is one of:

When compiling against an API version previous to 4.5, this option has no effect on the import operation but must still be specified. When compiled against an API version greater or equal to 4.5, this option specifies what to do if the object already exists (generate an error, or overwrite the existing object).

The above example will read an AR Export file (text file) into a scalar and will import Schemas and Active Links from that file into the ARSystem. Other object types are:

Note that note all of the above types are available in earlier versions of ARSystem. The above list is valid as of ARSystem v4.5.

It's recommended that if you want to import schema definitions you should use "schema" and not use the other schema_* types.

If you are curious about what non-obvious types are used for, you should read the ARSystem Programmers Manual.

ars_Import was introduced in version 1.3 of ARSperl

<-- Table of Contents

Last changes to this page 7th July 2000 by
© J.C.Murphy, J.W.Murphy 1997