Previous Topic: move (Class Management)--Move a ClassNext Topic: destroy (Class Management)--Delete a Class


copy (Class Management)--Copy a Class

Copy a class from one package to another.

Syntax
class copy source destination  
Parameters
source

Name of class that is to be copied

destination

New class name

Examples
class copy /system:NAS sugarcrm/local:NAS

copy class from global catalog to local application catalog

class copy /system:NAS sugarcrm:NAS

copy class from global catalog to application singleton

class copy sugarcrm:NAS /system:NAS

copy application singleton class to global catalog

Notes: Classes can be copied:

a) from one catalog to another,

b) from a catalog to an application singleton,

c) from application singleton to a catalog.