コード例 #1
0
 public function getName($webserviceId)
 {
     $idComponents = vtws_getIdComponents($webserviceId);
     $entityId = $idComponents[0];
     $id = $idComponents[1];
     $nameList = vtws_getActorEntityNameById($entityId, array($id));
     return $nameList[$id];
 }
コード例 #2
0
ファイル: Utils.php プロジェクト: kduqi/corebos
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);
}