/** Gets the objects corresponding to the items
* Calls useClass method on $requestHandler, and getDomainDir
* if $this->domainDir is not initialized
* @param Array $requestData with data like $_REQUEST
* @return Array of PntObject
* @throws PntError
*/
function ($requestData) {
$markedObjects = array();
$markedOids = $this->($requestData);
$cnv = $this->requestHandler->();
foreach ($markedOids as $oid) {
$pos = strPos($oid, '*');
$clsName = subStr($oid, 0, $pos);
$id = $cnv->( subStr($oid, $pos+1) );
$this->requestHandler->($clsName, $this->($clsName));
$clsDes = PntClassDescriptor::getInstance($clsName);
$cnv->($clsDes->('id'));
$obj = $clsDes->($cnv->($id));
if ($cnv->error)
throw new PntError("$oid conversion: ". $cnv->error);
if ($obj)
$markedObjects[] = $obj;
}
return $markedObjects;
}
|