public function getName($webserviceId) { $idComponents = vtws_getIdComponents($webserviceId); $entityId = $idComponents[0]; $id = $idComponents[1]; $nameList = vtws_getActorEntityNameById($entityId, array($id)); return $nameList[$id]; }
function vtws_getActorEntityName($name, $idList) { $db = PearDatabase::getInstance(); if (!is_array($idList) && count($idList) == 0) { return array(); } $entity = VtigerWebserviceObject::fromName($db, $name); return vtws_getActorEntityNameById($entity->getEntityId(), $idList); }