lib/AdapterRpc.php
public function getMemberByUser($user, $vo)
    {
        $member = $this->connector->get('membersManager', 'getMemberByUser', array(
            'user' => $user->getId(),
            'vo' => $vo->getId(),
        ));
        if (is_null($member)) {
            throw new Exception(
                "Member for User with name " . $user->getName() . " and Vo with shortName " .
                $vo->getShortName() . "does not exist in Perun!"
            );
        }
        return new Member($member['id'], $member['voId'], $member['status']);
    }
public function getMemberByUser($user, $vo)
    {
        $member = $this->connector->get('membersManager', 'getMemberByUser', array(
            'user' => $user->getId(),
            'vo' => $vo->getId(),
        ));
        if (is_null($member)) {
            throw new Exception(
                "Member for User with name " . $user->getName() . " and Vo with shortName " .
                $vo->getShortName() . "does not exist in Perun!"
            );
        }
        return new Member($member['id'], $member['voId'], $member['status']);
    }
public function getMemberByUser ( $ user , $ vo ) { $ member = $ this -> connector -> get ( 'membersManager' , 'getMemberByUser' , array ( 'user' => $ user -> getId ( ) , 'vo' => $ vo -> getId ( ) , ) ) ; if ( is_null ( $ member ) ) { throw new Exception ( "Member for User with name " . $ user -> getName ( ) . " and Vo with shortName " . $ vo -> getShortName ( ) . "does not exist in Perun!" ) ; } return new Member ( $ member [ 'id' ] , $ member [ 'voId' ] , $ member [ 'status' ] ) ; }
Returns member by User and Vo
@param User $user
@param Vo $vo
@return Member
Returns member by User and Vo