Commands - OpenGroupware/OpenGroupware.org GitHub Wiki
OGo commands are classes that implement a specific kind of operation, similar to an NSOperation
. They are looked up using the BundleManager.
Running them on the shell
- there is a tool to run commands on the shell
Running in Objective-C
Examples
account = [[self session] activeAccount];
account = [self runCommand:@"person::get",
@"companyId", [account valueForKey:@"companyId"],
nil];
addrs = [self runCommand:@"address::get",
@"companyId", [account valueForKey:@"companyId"],
@"returnType", intObj(LSDBReturnType_ManyObjects),
nil];