ePages 6.11.0 - DE_EPAGES/WebInterfacePoolDB/API/ASPoolDB.pm

Package DE_EPAGES::WebInterfacePoolDB::API::ASPoolDB

provides access to the ASPoolDB database

@EXPORT_OK
RunOnASPoolDB

Functions

RunOnASPoolDB

RunOnASPoolDB

Connects to the ASPoolDB database, executes a function and then disconnects from the database. Provides a reference to an object of type DE_EPAGES::WebInterfacePoolDB::API::Object::ASPoolDB as first parameter to the function.

Syntax
$Result = RunOnASPoolDB( $Sub );
@Result = RunOnASPoolDB( $Sub );
Example
$aPools = RunOnASPoolDB( sub {
    my $ASPoolDB = shift;
    return $ASPoolDB->getAllPools;
});
Input
$Sub (ref.code)
code to execute
Return
$Result (scalar)
return value of $Sub in scalar context
@Result (array)
return values of $Sub in array context