public function allOfType($value, $status = 'ACTIVE')
    {
        $ids = [];
        foreach ($this->data->user_identifier as $identifier) {
            if ($identifier->id_type->value == $value && (is_null($status) || $identifier->status == $status)) {
                $ids[] = $identifier->value;
            }
        }

        return $ids;
    }
public function allOfType($value, $status = 'ACTIVE')
    {
        $ids = [];
        foreach ($this->data->user_identifier as $identifier) {
            if ($identifier->id_type->value == $value && (is_null($status) || $identifier->status == $status)) {
                $ids[] = $identifier->value;
            }
        }

        return $ids;
    }
public function allOfType ( $ value , $ status = 'ACTIVE' ) { $ ids = [ ] ; foreach ( $ this -> data -> user_identifier as $ identifier ) { if ( $ identifier -> id_type -> value == $ value && ( is_null ( $ status ) || $ identifier -> status == $ status ) ) { $ ids [ ] = $ identifier -> value ; } } return $ ids ; }
Get all active user identifiers of a given type, like 'BARCODE' or 'UNIV_ID'.

@param string $value
@param string $status

@return array
Get all active user identifiers of a given type like BARCODE or UNIV_ID .