public function getPreviousPayloadAuthTokensByContactClient($contactClientId, $operationId = null, $test = false)
    {
        $result = [];
        $q      = $this->getEntityManager()->getConnection()->createQueryBuilder();
        $q->select('a.operation, a.type, a.field, a.val')
            ->from(MAUTIC_TABLE_PREFIX.'contactclient_auth', 'a')
            ->where(
                $q->expr()->eq('a.contactclient_id', (int) $contactClientId),
                $q->expr()->eq('a.test', (int) $test)
            );

        if ($operationId) {
            $q->andWhere(
                $q->expr()->eq('a.operation', (int) $operationId)
            );
        }

        foreach ($q->execute()->fetchAll() as $row) {
            $token          = 'payload.operations.'.$row['operation'].'.response.'.$row['type'].'.'.$row['field'];
            $result[$token] = $row['val'];
        }

        return $result;
    }
public function getPreviousPayloadAuthTokensByContactClient($contactClientId, $operationId = null, $test = false)
    {
        $result = [];
        $q      = $this->getEntityManager()->getConnection()->createQueryBuilder();
        $q->select('a.operation, a.type, a.field, a.val')
            ->from(MAUTIC_TABLE_PREFIX.'contactclient_auth', 'a')
            ->where(
                $q->expr()->eq('a.contactclient_id', (int) $contactClientId),
                $q->expr()->eq('a.test', (int) $test)
            );

        if ($operationId) {
            $q->andWhere(
                $q->expr()->eq('a.operation', (int) $operationId)
            );
        }

        foreach ($q->execute()->fetchAll() as $row) {
            $token          = 'payload.operations.'.$row['operation'].'.response.'.$row['type'].'.'.$row['field'];
            $result[$token] = $row['val'];
        }

        return $result;
    }
public function getPreviousPayloadAuthTokensByContactClient ( $ contactClientId , $ operationId = null , $ test = false ) { $ result = [ ] ; $ q = $ this -> getEntityManager ( ) -> getConnection ( ) -> createQueryBuilder ( ) ; $ q -> select ( 'a.operation, a.type, a.field, a.val' ) -> from ( MAUTIC_TABLE_PREFIX . 'contactclient_auth' , 'a' ) -> where ( $ q -> expr ( ) -> eq ( 'a.contactclient_id' , ( int ) $ contactClientId ) , $ q -> expr ( ) -> eq ( 'a.test' , ( int ) $ test ) ) ; if ( $ operationId ) { $ q -> andWhere ( $ q -> expr ( ) -> eq ( 'a.operation' , ( int ) $ operationId ) ) ; } foreach ( $ q -> execute ( ) -> fetchAll ( ) as $ row ) { $ token = 'payload.operations.' . $ row [ 'operation' ] . '.response.' . $ row [ 'type' ] . '.' . $ row [ 'field' ] ; $ result [ $ token ] = $ row [ 'val' ] ; } return $ result ; }
Gets all token key-value pairs for a contactClient that were previously captured by succesful
auth requests and persisted for re-use.

@param      $contactClientId
@param      $operationId
@param bool $test

@return array
Gets all token key - value pairs for a contactClient that were previously captured by succesful auth requests and persisted for re - use .